Summary: | 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 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | piotr5 |
Component: | [OLD] Development | Assignee: | Bernard Cafarelli <voyageur> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | gentoo, mgorny |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
minimal c++ program to trigger the gcc bug
emerge --info =llvm-3.3-r3 build_llvm-3.3-r3.log.gz |
1) Please post your `emerge --info' output in a comment. 2) Please attach the entire sys-devel/llvm build log to this bug report. 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. Created attachment 373276 [details]
emerge --info =llvm-3.3-r3
Created attachment 373278 [details]
build_llvm-3.3-r3.log.gz
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 *** |
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...