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

Bug 434864

Summary: sys-devel/gcc-4.7.1 failed to build with -mno-avx
Product: Gentoo Linux Reporter: Andrew Aladjev <aladjev.andrew>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge info
avx.patch
build.log.gz

Description Andrew Aladjev 2012-09-13 07:29:16 UTC
building of gcc-4.7.1 will fail because avx is not supported

Reproducible: Always

Steps to Reproduce:
1. I want build gcc-4.7.1 on intel atom 425
2. -mno-avx added to cflags
3. gcc will try to build avx code because of not proper HAVE_AS_AVX detection
Comment 1 Andrew Aladjev 2012-09-13 07:29:33 UTC
Created attachment 323642 [details]
emerge info
Comment 2 Andrew Aladjev 2012-09-13 07:31:20 UTC
Created attachment 323644 [details, diff]
avx.patch

I dont know how to make 100% proper avx detection, but this patch works fine for me
Comment 3 SpanKY gentoo-dev 2012-09-13 17:05:26 UTC
please post the actual build log as an attachment
Comment 4 Andrew Aladjev 2012-09-13 20:54:16 UTC
Created attachment 323710 [details]
build.log.gz

the problem is simple: it started to compile code that it should not compile. for example:

/var/tmp/portage/sys-devel/gcc-4.7.1/work/gcc-4.7.1/libitm/config/x86/x86_avx.cc:83:1: error: ‘_ITM_TYPE_M256’ does not name a type
Comment 5 SpanKY gentoo-dev 2012-09-13 21:48:13 UTC

*** This bug has been marked as a duplicate of bug 417271 ***