[LLVMdev] New llvmgcc4 snapshot

Marco Matthies marco-ml at gmx.net
Mon May 8 20:14:24 PDT 2006


Hi,

i tried compiling llvmgcc4 on x86_64-linux. The two changes i needed to 
apply to llvm and llvmgcc4 are attached. Those two patches tell llvmgcc4 
to use the x86 code-generator for x86_64 and give x86_64-* targets a 
score of 10 for the x86 backend when trying to find appropriate backends.

Now i'm getting stuck during the compile when an assertion is triggered:


make[3]: Leaving directory `/home/mcm/projects/llvm/build-gcc4/gcc'
/home/mcm/projects/llvm/build-gcc4/gcc/xgcc 
-B/home/mcm/projects/llvm/build-gcc4/gcc/ 
-B/home/mcm/projects/llvm/install-gcc4/x86_64-unknown-linux-gnu/bin/ 
-B/home/mcm/projects/llvm/install-gcc4/x86_64-unknown-linux-gnu/lib/ 
-isystem 
/home/mcm/projects/llvm/install-gcc4/x86_64-unknown-linux-gnu/include 
-isystem 
/home/mcm/projects/llvm/install-gcc4/x86_64-unknown-linux-gnu/sys-include 
-O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC 
-g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. 
-I../../2006-05-08-llvm-gcc-4/gcc -I../../2006-05-08-llvm-gcc-4/gcc/. 
-I../../2006-05-08-llvm-gcc-4/gcc/../include 
-I../../2006-05-08-llvm-gcc-4/gcc/../libcpp/include 
-I/home/mcm/projects/llvm/build-release/../llvm-cvs/include 
-I/home/mcm/projects/llvm/build-release/include -DL_mulsc3 
-fvisibility=hidden -DHIDE_EXPORTS -c 
../../2006-05-08-llvm-gcc-4/gcc/libgcc2.c -o libgcc/./_mulsc3.o
cc1: 
/home/mcm/projects/llvm/build-release/../llvm-cvs/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:2826: 
llvm::SDOperand 
<unnamed>::SelectionDAGLegalize::PromoteOp(llvm::SDOperand): Assertion 
`getTypeAction(VT) == Promote && "Caller should expand or legalize 
operands that are not promotable!"' failed.
../../2006-05-08-llvm-gcc-4/gcc/libgcc2.c:1714: 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[2]: *** [libgcc/./_mulsc3.o] Error 1
make[2]: Leaving directory `/home/mcm/projects/llvm/build-gcc4/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/mcm/projects/llvm/build-gcc4/gcc'
make: *** [all-gcc] Error 2


I know x86_64 is unsupported, but does anybody have an idea if i'm doing 
something wrong or is this a bug?

Any help is greatly appreciated,

Marco
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: llvm-gcc4.patch
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060509/1d2b3d18/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: x86.patch
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060509/1d2b3d18/attachment-0001.ksh>


More information about the llvm-dev mailing list