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

Bug 190976

Summary: Hardened gcc-3.4.6-r2 build fails with illegal instruction
Product: Gentoo Linux Reporter: William Keaney <keaneyw>
Component: HardenedAssignee: The Gentoo Linux Hardened Team <hardened>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
Preprocessed sources
emerge --info

Description William Keaney 2007-09-01 16:50:16 UTC
When running an emerge -e system on a freshly unpacked 2007.0 hardened tarball, gcc fails to build citing an illegal instruction.

Reproducible: Always

Steps to Reproduce:
1.Set up a hardened system
2.Emerge gcc
3.Fail

Actual Results:  
/var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc/crtstuff.c: In function `__do_global_dtors_aux':
/var/tmp/portage/sys-devel/gcc-3.4.6-r2/work/gcc-3.4.6/gcc/crtstuff.c:288: internal compiler error: Illegal instruction


Expected Results:  
gcc should finish compiling

I am building this system in a chroot on a non-hardened machine; I originally tried to use distcc to build everything, but turned it off when gcc failed.  Disabling distcc did not change the failure at all.
Comment 1 William Keaney 2007-09-01 16:52:13 UTC
Created attachment 129775 [details]
build.log

This is the build.log from my latest compile attempt.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-09-01 16:55:25 UTC
emerge --info please.
Comment 3 William Keaney 2007-09-01 16:57:37 UTC
Created attachment 129776 [details]
Preprocessed sources

Preprocessed sources.
Comment 4 William Keaney 2007-09-01 17:02:29 UTC
Created attachment 129778 [details]
emerge --info
Comment 5 William Keaney 2007-09-01 17:32:08 UTC
D'oh.  Forgot that, even in a chroot, -march=k6-2 won't work on a pentium-m system.  Closing, invalid.