Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505180 - sys-devel/llvm-3.3 CXXFLAGS=-march=atom with sys-devel/gcc-4.7.3-r1 - .../work/llvm-3.3.src/tools/llvm-readobj/Error.cpp:49:1: internal compiler error: Segmentation fault
Summary: sys-devel/llvm-3.3 CXXFLAGS=-march=atom with sys-devel/gcc-4.7.3-r1 - .../wor...
Status: RESOLVED DUPLICATE of bug 500032
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-20 15:25 UTC by piotr5
Modified: 2014-04-06 21:38 UTC (History)
2 users (show)

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


Attachments
minimal c++ program to trigger the gcc bug (Error.cpp,433 bytes, text/plain)
2014-03-20 15:25 UTC, piotr5
Details
emerge --info =llvm-3.3-r3 (emerge_info_llvm-3.3-r3.txt,5.05 KB, text/plain)
2014-03-22 20:45 UTC, Vlada
Details
build_llvm-3.3-r3.log.gz (build_llvm-3.3-r3.log.gz,59.51 KB, application/gzip)
2014-03-22 21:02 UTC, Vlada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description piotr5 2014-03-20 15:25:31 UTC
Created attachment 373112 [details]
minimal c++ program to trigger the gcc bug

g++ segfaults during compilation of tools/llvm-readobj/Error.cpp
seems to be a bug in the compiler, gcc-4.8.2 doesn't have that problem, so I guess it's fixed upstream (or has been fixed in the total rewrite of gcc). test this bug in your own gcc-version (with the sources attached):

gcc -O -march=atom -c Error.cpp -o Error.o -fexpensive-optimizations -freorder-blocks

solution would be to either make gcc-4.8.2 the standard compiler by removing the ~amd64 mask, or warn 64-bit users about this bug...
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-20 16:11:55 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire sys-devel/llvm build log to this bug report.
Comment 2 Vlada 2014-03-22 20:35:16 UTC
This seems to be a duplicate of Bug 500032, and as Piotr already mentioned, a compiler bug, not llvm. I was able to successfully emerge llvm on my Atom using gcc-4.6.3 and 4.8.2, only 4.7.3-r1 failes.
Comment 3 Vlada 2014-03-22 20:45:40 UTC
Created attachment 373276 [details]
emerge --info =llvm-3.3-r3
Comment 4 Vlada 2014-03-22 21:02:04 UTC
Created attachment 373278 [details]
build_llvm-3.3-r3.log.gz
Comment 5 Bernard Cafarelli gentoo-dev 2014-04-06 21:38:07 UTC
Indeed, this is the same error as in #500032. 

Though thanks a lot Piotr for digging the reduced test case here! I'll move this to the older bug to keep everything in one place, but this should help :)

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