Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434864 - sys-devel/gcc-4.7.1 failed to build with -mno-avx
Summary: sys-devel/gcc-4.7.1 failed to build with -mno-avx
Status: RESOLVED DUPLICATE of bug 417271
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-09-13 07:29 UTC by Andrew Aladjev
Modified: 2012-09-13 21:48 UTC (History)
0 users

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


Attachments
emerge info (emerge-info,5.40 KB, text/plain)
2012-09-13 07:29 UTC, Andrew Aladjev
Details
avx.patch (avx.patch,898 bytes, patch)
2012-09-13 07:31 UTC, Andrew Aladjev
Details | Diff
build.log.gz (build.log.gz,358.57 KB, application/x-gzip)
2012-09-13 20:54 UTC, Andrew Aladjev
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***