Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462774 - x11-apps/xkbcomp broken with GCC 4.8 (cannot compile xkb map)
Summary: x11-apps/xkbcomp broken with GCC 4.8 (cannot compile xkb map)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-23 12:05 UTC by Mike Lothian
Modified: 2013-03-24 06:49 UTC (History)
0 users

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


Attachments
Xorg log (Xorg.0.log.old,15.14 KB, text/plain)
2013-03-23 12:06 UTC, Mike Lothian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lothian 2013-03-23 12:05:12 UTC
GCC complains that the XKB map cannot be compiled and fails to start

This is a regression against GCC 4.7.2

Both are compiled with -O3 -march=native -flto

I'm unsure if this should be filed upstream with GCC or bugs.freedesktop.org

Reproducible: Always

Steps to Reproduce:
1. Compile xkbcomp with gcc 4.8
2. Restart X
3. Watch it not start :-(
Actual Results:  
X doesn't start

Expected Results:  
X should start
Comment 1 Mike Lothian 2013-03-23 12:06:12 UTC
Created attachment 342978 [details]
Xorg log
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2013-03-23 18:34:12 UTC
> Both are compiled with -O3 -march=native -flto

As the giant warning says when you build gcc, LTO is not supported.  Don't use it unless you're able to fix the problems you encounter.  Also, if you're using gcc snapshots you would have had to set I_PROMISE_TO_SUPPLY_PATCHES_WITH_BUGS in make.conf.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2013-03-24 06:19:21 UTC
This isn't an lto bug after all.  You confused me when you said gcc can't compile the xkb map.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2013-03-24 06:49:26 UTC
Arg, yes it is an lto bug.  I forgot to rebuild without -flto after testing last time.  Sorry about the noise.