[LLVMbugs] [Bug 2043] New: llvm-gcc4.2 boostrap fails: Assertion 'castIsValid( getOpcode(), S, Ty) && "Illegal BitCast"'

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Feb 15 11:48:14 PST 2008


http://llvm.org/bugs/show_bug.cgi?id=2043

           Summary: llvm-gcc4.2 boostrap fails: Assertion
                    'castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"'
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1410)
 --> (http://llvm.org/bugs/attachment.cgi?id=1410)
preprocessed crtbegin.c causing compiler error

Bootstrap of llvm-gcc4.2 r47164 with llvm r47170 fails.

Compiling the preprocessed source with an earlier llvm-gcc4.2 succeeds.

Compiling with -O0 shows same error, and --disable-llvm-optzns is not accepted.
How can I get to see the bitcode causing this failure?

BTW shouldn't the bugreport url say llvm.org/bugs?

Earlier llvm-gcc that successfully compiles the preprocessed source:
$ ../../install/bin/gcc -v 
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../llvm-gcc4.2/configure
--prefix=/home/edwin/llvm/obj42/../install
--enable-llvm=/home/edwin/llvm/llvm-svn/trunk/ --enable-languages=c,c++ :
(reconfigured) ../llvm-gcc4.2/configure
--prefix=/home/edwin/llvm/obj42/../install
--enable-llvm=/home/edwin/llvm/llvm-svn/trunk/ --enable-languages=c :
(reconfigured) ../llvm-gcc4.2/configure
--prefix=/home/edwin/llvm/obj42/../install
--enable-llvm=/home/edwin/llvm/llvm-svn/trunk/ --enable-languages=c --no-create
--no-recursion
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5546) (LLVM build)

$ uname -a
Linux thunder 2.6.25-rc1-00266-g4ee29f6-dirty #2 SMP PREEMPT Fri Feb 15
19:49:39 EET 2008 i686 GNU/Linux

$ make
 ./xgcc -B./ -B/home/edwin/llvm/obj42/../install/i686-pc-linux-gnu/bin/
-isystem /home/edwin/llvm/obj42/../install/i686-pc-linux-gnu/include -isystem
/home/edwin/llvm/obj42/../install/i686-pc-linux-gnu/sys-include
-L/home/edwin/llvm/obj42/gcc/../ld -O2  -DIN_GCC    -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include  -I. -I. -I../../llvm-gcc4.2/gcc -I../../llvm-gcc4.2/gcc/.
-I../../llvm-gcc4.2/gcc/../include -I../../llvm-gcc4.2/gcc/../libcpp/include 
-I../../llvm-gcc4.2/gcc/../libdecnumber -I../libdecnumber
-I/home/edwin/llvm/llvm-svn/trunk/include
-I/home/edwin/llvm/llvm-svn/trunk//include  -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-toplevel-reorder  -fno-omit-frame-pointer \
          -c ../../llvm-gcc4.2/gcc/crtstuff.c -DCRT_BEGIN \
          -o crtbegin.o
cc1: Instructions.cpp:2260: llvm::BitCastInst::BitCastInst(llvm::Value*, const
llvm::Type*, const std::string&, llvm::Instruction*): Assertion
`castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed.
../../llvm-gcc4.2/gcc/crtstuff.c: In function ‘__do_global_dtors_aux’:
../../llvm-gcc4.2/gcc/crtstuff.c:295: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make: *** [crtbegin.o] Error 1

Invoking compiler on preprocessed output:

$ /home/edwin/llvm/obj42/./gcc/xgcc -B/home/edwin/llvm/obj42/./gcc/
-B/home/edwin/llvm/obj42/../install/i686-pc-linux-gnu/bin/
-B/home/edwin/llvm/obj42/../install/i686-pc-linux-gnu/lib/ -O0 -c x.i
cc1: Instructions.cpp:2260: llvm::BitCastInst::BitCastInst(llvm::Value*, const
llvm::Type*, const std::string&, llvm::Instruction*): Assertion
`castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed.
../../llvm-gcc4.2/gcc/crtstuff.c: In function ‘__do_global_dtors_aux’:
../../llvm-gcc4.2/gcc/crtstuff.c:295: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list