To compile xorg-x11 with clang a trivial patch is needed to rename de define GCCUSESGAS to _GNUC_, it has been tested by the BSD community. Reproducible: Always
What is the upstream status of this patch?
http://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/common/compiler.h#n1355 Not incorporated.
Although the build is successful, I am unable to start X due to an undefined reference to vgaHWFreeHWRec for the intel driver. Which may or may not be related to the following; https://bugs.freedesktop.org/show_bug.cgi?format=multiple&id=41208
Want to confirm that building with gcc instantly works. So next to the patch, something else is needed to get the working modules. Possibly related to -fPIC.
xorg-server-1.16.3-r1 builds fine with clang-3.5.0 and works as expected. Upstream has already incorporated the needed patches to make it build with clang. Please see also bug 427808, which was a similar report with an older version of xorg-server. I think this can be safely closed since this version does exist in tree anymore, and later versions should not pose any problems.
Marking as fixed per comment 5.