| Summary: | x11-misc/lightdm fails to compile if -O3 CFLAG is set | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | andreschwarz |
| Component: | New packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Please do not mix several issues in one bug. xorg-server is bug 402285. Please attach a build log from a failed build for lightdm. 1) Please attach the entire build log to this bug report. 2) Please post your `emerge --info' output in a comment. |
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