[LLVMbugs] [Bug 834] NEW: ICE (crash in code generator?) when building PCH
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Jul 18 10:28:24 PDT 2006
http://llvm.org/bugs/show_bug.cgi?id=834
Summary: ICE (crash in code generator?) when building PCH
Product: libraries
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: emil at cs.rmit.edu.au
I'm trying to build llvm (CVS HEAD) and llvm-gcc4 (SVN HEAD) on FreeBSD 6 (and
7, same problem happens)
emil at hurtz:~/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include>
/home/emil/NOBACKUP/llvm/obj/gcc/xgcc -shared-libgcc
-B/home/emil/NOBACKUP/llvm/obj/gcc/ -nostdinc++
-L/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/src
-L/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/src/.libs
-B/home/emil/NOBACKUP/llvm/install//i386-unknown-freebsd6.1/bin/
-B/home/emil/NOBACKUP/llvm/install//i386-unknown-freebsd6.1/lib/ -isystem
/home/emil/NOBACKUP/llvm/install//i386-unknown-freebsd6.1/include -isystem
/home/emil/NOBACKUP/llvm/install//i386-unknown-freebsd6.1/sys-include
-Winvalid-pch -Wno-deprecated -x c++-header -g -O2
-I/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include/i386-unknown-freebsd6.1
-I/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include
-I/home/emil/NOBACKUP/llvm/llvm-gcc4/libstdc++-v3/libsupc++
/home/emil/NOBACKUP/llvm/llvm-gcc4/libstdc++-v3/include/stdc++.h -O0 -g
/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include/valarray:1011:
internal compiler error: Segmentation fault: 11
Based on a backtrace, Chris Lattner said this was a bug in the code generator
and told me to do:
emil at hurtz:~/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include>
/home/emil/NOBACKUP/llvm/obj/gcc/cc1plus -quiet -nostdinc++ -v
-I/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include/i386-unknown-freebsd6.1
-I/home/emil/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include
-I/home/emil/NOBACKUP/llvm/llvm-gcc4/libstdc++-v3/libsupc++ -iprefix
/home/emil/NOBACKUP/llvm/obj/gcc/../lib/gcc/i386-unknown-freebsd6.1/4.0.1/
-isystem /home/emil/NOBACKUP/llvm/obj/gcc/include -isystem
/home/emil/NOBACKUP/llvm/install//i386-unknown-freebsd6.1/include -isystem
/home/emil/NOBACKUP/llvm/install//i386-unknown-freebsd6.1/sys-include
/home/emil/NOBACKUP/llvm/llvm-gcc4/libstdc++-v3/include/stdc++.h -quiet
-dumpbase stdc++.h -auxbase stdc++ -g -g -O2 -O0 -Winvalid-pch -Wno-deprecated
-version -emit-llvm -o ouch.ll
(above completes successfully)
emil at hurtz:~/NOBACKUP/llvm/obj/i386-unknown-freebsd6.1/libstdc++-v3/include> ~/N
OBACKUP/llvm/llvm/Release/bin/bugpoint -run-llc ouch.ll
Read input file : 'ouch.ll'
*** All input ok
Found gcc: /usr/bin/gcc
Initializing execution environment: Running the code generator to test for a cra
sh: <llc>
Error running tool:
/home/emil/NOBACKUP/llvm/llvm/Release/bin/llc -o bugpoint-test-program.bc.llc.
s -f bugpoint-test-program.bc
*** Debugging code generator crash!
Checking to see if we can delete global inits: <llc>
- Removing all global inits hides problem!
*** Attempting to reduce the number of functions in the testcase
Checking for crash with only these functions: _GLOBAL__I__home_emil_NOBACKUP_ll
vm_llvm_gcc4_libstdc___v3_include_stdc__.h_8D2A3925_54889815 _GLOBAL__D__home_em
il_NOBACKUP_llvm_llvm_gcc4_libstdc___v3_include_stdc__.h_8D2A3925_54889815 _Z41_
_static_initialization_and_destruction_0ii
: <llc><crash>
Checking for crash with only these functions: _GLOBAL__D__home_emil_NOBACKUP_ll
vm_llvm_gcc4_libstdc___v3_include_stdc__.h_8D2A3925_54889815 _Z41__static_initia
lization_and_destruction_0ii
: <llc><crash>
Checking for crash with only these functions: _Z41__static_initialization_and_d
estruction_0ii
: <llc><crash>
Emitted bytecode to 'bugpoint-reduced-function.bc'
Checking for crash with only these blocks: entry cond_true cond_true3 cond_false
cond_next cond_false4 cond_next5 cond_true8 cond_true11 cond_false12... <14 tot
al>: <llc><crash>
Checking for crash with only these blocks: cond_next5 cond_true8 cond_true11 ret
urn: <llc><crash>
*** Attempting to reduce testcase by deleting instructions: Simplification Level
#1
Checking instruction '__initialize_p_addr': <llc><crash>
Checking instruction '__priority_addr': <llc><crash>
Checking instruction 'alloca point': <llc><crash>
Checking instruction '': <llc><crash>
Checking instruction '': <llc><crash>
Checking instruction '__initialize_p': <llc><crash>
Checking instruction '': <llc><crash>
*** Attempting to reduce testcase by deleting instructions: Simplification Level
#0
*** Attempting to perform final cleanups:
<llc>
Emitted bytecode to 'bugpoint-reduced-simplified.bc'
I will [try to] attach the produced files.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list