Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420163 - x11-misc/lightdm fails to compile if -O3 CFLAG is set
Summary: x11-misc/lightdm fails to compile if -O3 CFLAG is set
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-07 22:47 UTC by andreschwarz
Modified: 2012-06-18 18:08 UTC (History)
0 users

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 andreschwarz 2012-06-07 22:47:21 UTC
Both these packages fails to compile if the -O3 flag is enabled.

this is the output of my cat /etc/paludis/bashrc

[code]CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
LDFLAGS="${LDFLAGS} -Wl,-O1"
MAKEOPTS="-j3"[/code]

After I change CFLAGS to CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" these two packages compile normally.

So, I suggest this variable to be set on the ebuild, so users don't have to change this setting manually.

Reproducible: Always

Steps to Reproduce:
1.enable the -O3 CFLAG.
2.update xorg-server to version 1.11.4 or 1.11.4-r1; lightdm to 1.2.*
Actual Results:  
Compilation fails

Expected Results:  
Successful update of the aforementioned packages; ebuild to explicitly set to use -O2 cflag instead of -O3
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-06-08 12:47:15 UTC
Please do not mix several issues in one bug. xorg-server is bug 402285.
Comment 2 Mike Gilbert gentoo-dev 2012-06-09 23:08:21 UTC
Please attach a build log from a failed build for lightdm.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-12 14:58:08 UTC
1) Please attach the entire build log to this bug report.
2) Please post your `emerge --info' output in a comment.