Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548274 - x11-base/xorg-server-1.17.1-r1 does not compile with gcc-5
Summary: x11-base/xorg-server-1.17.1-r1 does not compile with gcc-5
Status: RESOLVED DUPLICATE of bug 546744
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-30 18:54 UTC by Martin Väth
Modified: 2015-05-19 04:14 UTC (History)
1 user (show)

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


Attachments
Add option -P to cpp to fix compilation with gcc-5 (xorg-server-gcc-5.patch,429 bytes, patch)
2015-04-30 18:54 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Väth 2015-04-30 18:54:14 UTC
Created attachment 402318 [details, diff]
Add option -P to cpp to fix compilation with gcc-5

As is well-known in gcc-5 upstream, xorg-server is missing option -P to cpp.
Comment 1 Rafał Mużyło 2015-05-01 02:28:10 UTC
...well, I was tempted to immediately close this as a duplicate of bug 546744, but this has a completely different approach...
Comment 2 Martin Väth 2015-05-01 05:32:44 UTC
Damn: I was looking for "xorg-server gcc-5" but not "xorg-server gcc5" when checking for duplicates...

Anyway, unless the fedora patch should go to xorg-server upstream:

Adding -P is the solution which gcc upstream probably has in mind:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64864

And this -P switch should actually be quite portable:
http://www.zsh.org/mla/workers/2015/msg0025
Comment 3 Martin Väth 2015-05-01 13:17:17 UTC
It turned out that my patch causes linker problems later on.
Instead of examinating the issue, it is perhaps easier to use Fedora's patch which seems not to have such problems.

Therefore, I mark the issue as duplicate of bug 546744

*** This bug has been marked as a duplicate of bug 546744 ***