Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483376 - =x11-base/xorg-server-1.14.209 - Compiling with clang needs patch.
Summary: =x11-base/xorg-server-1.14.209 - Compiling with clang needs patch.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: http://unix.derkeiler.com/Mailing-Lis...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2013-09-02 12:01 UTC by Stefan de Konink
Modified: 2015-01-20 09:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan de Konink 2013-09-02 12:01:14 UTC
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
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-09-02 18:11:49 UTC
What is the upstream status of this patch?
Comment 2 Stefan de Konink 2013-09-02 20:17:29 UTC
http://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/common/compiler.h#n1355

Not incorporated.
Comment 3 Stefan de Konink 2013-09-02 22:28:46 UTC
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
Comment 4 Stefan de Konink 2013-09-03 22:56:05 UTC
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.
Comment 5 Fabio Scaccabarozzi 2015-01-19 22:07:29 UTC
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.
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-01-20 09:47:35 UTC
Marking as fixed per comment 5.