Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395877 - The respecting CFLAGS check always fails - (always) false positive
Summary: The respecting CFLAGS check always fails - (always) false positive
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 395831
  Show dependency tree
 
Reported: 2011-12-24 08:36 UTC by Justin Lecher (RETIRED)
Modified: 2011-12-24 12:42 UTC (History)
0 users

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


Attachments
/var/log/portage/build/app-portage/portage-utils-0.9:20111224-083631.log (portage-utils-0.9:20111224-083631.log,9.84 KB, text/plain)
2011-12-24 08:37 UTC, Justin Lecher (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2011-12-24 08:36:16 UTC
For me every package is found to be build without respecting the CFLAGS. Simple example are portage-utils. Only q is build so the tracking is easy.

x86_64-pc-linux-gnu-gcc -O2 -pipe -ftracer -march=corei7-avx -mtune=corei7-avx -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -frecord-gcc-switches -g -Wimplicit-function-declaration -std=gnu99 -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common main.c -o q

CFLAGS="-O2 -pipe -ftracer -march=corei7-avx -mtune=corei7-avx -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -frecord-gcc-switches -g -Wimplicit-function-declaration"

For me it seems that all CFLAGS are respected.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2011-12-24 08:37:22 UTC
Created attachment 296833 [details]
/var/log/portage/build/app-portage/portage-utils-0.9:20111224-083631.log

build.log
Comment 2 Zac Medico gentoo-dev 2011-12-24 09:13:15 UTC
The problem is that the binaries can't be stripped until after the CFLAGS check:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=b91754cb94e3f3d2db50768ec7cad47314d806ce
Comment 3 Zac Medico gentoo-dev 2011-12-24 10:15:48 UTC
This fixes false positives for linux kernel modules:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=dfe2afc9549e596a438a322feb35240d52ca26b5
Comment 4 Zac Medico gentoo-dev 2011-12-24 12:42:04 UTC
This is fixed in 2.1.10.43 and 2.2.0_alpha83.