Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 487066

Summary: sys-devel/distcc fails to build with hardened gcc 4.7.3
Product: Gentoo Linux Reporter: Rick Farina (Zero_Chaos) <zerochaos>
Component: New packagesAssignee: Gentoo Cluster Team <cluster>
Status: RESOLVED INVALID    
Severity: normal CC: hardened
Priority: Normal    
Version: autobuilds   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 480112    
Attachments: build.log

Description Rick Farina (Zero_Chaos) gentoo-dev 2013-10-06 05:12:06 UTC
Created attachment 360204 [details]
build.log

works on 4.6.3, fails on 4.7.3
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2013-10-06 05:24:37 UTC
okay, that is just wierd.

I used

gcc -march=native -E -v - </dev/null 2>&1 | grep cc1

to expand what gcc thinks -march=native means for use with distcc.  I figured this why I have all the benefit of -march=native without the drawbacks of using it with distcc

it expands to: 

CFLAGS="-Os -pipe -frecord-gcc-switches -ggdb -march=corei7-avx -mcx16 -msahf -mno-movbe -maes -mpclmul \
       -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mavx -mno-avx2 \
       -msse4.2 -msse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 \
       --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=corei7-avx -fno-strict-overflow -fPIE -fstack-protector-all"


really odd that it fails to build with the expanded version of -march=native but not with -march=native itself.

I will call this invalid unless someone else cares.