[LLVMdev] Failure to compile llvm-gcc-4.2-2.7 on FreeBSD on sparc machine

Yuri yuri at tsoft.com
Wed May 5 23:02:09 PDT 2010


llvm itself compiles fine.
gcc frontend has the error, see below.

I applied the attached patch, since the name of architecture on FreeBSD 
is sparc64, not sparc. There is also one more replacement sparc -> 
spaarc64 was made in gcc/Makefile in llvm-gcc.

FreeBSD -8.0-STABLE
gcc-4.5.0
sunblade 100

Yuri


gmake[2]: Leaving directory 
`/tmp/llvm-build/2.7/llvm-gcc-4.2-objects/libdecnumber'
gmake[2]: Entering directory `/tmp/llvm-build/2.7/llvm-gcc-4.2-objects/gcc'
/tmp/llvm-build/2.7/llvm-gcc-4.2-objects/./gcc/xgcc 
-B/tmp/llvm-build/2.7/llvm-gcc-4.2-objects/./gcc/ 
-B/usr/local/llvm/2.7/sparc64-unknown-freebsd8.0/bin/ 
-B/usr/local/llvm/2.7/sparc64-unknown-freebsd8.0/lib/ -isystem 
/usr/local/llvm/2.7/sparc64-unknown-freebsd8.0/include -isystem 
/usr/local/llvm/2.7/sparc64-unknown-freebsd8.0/sys-include -O2 -O2 -g 
-O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. 
-I../../llvm-gcc-4.2/gcc -I../../llvm-gcc-4.2/gcc/. 
-I../../llvm-gcc-4.2/gcc/../include -I./../intl 
-I../../llvm-gcc-4.2/gcc/../libcpp/include -I/usr/local/include  
-I../../llvm-gcc-4.2/gcc/../libdecnumber -I../libdecnumber 
-I/tmp/llvm-build/2.7/llvm-gcc-4.2-objects/../llvm-objects/include 
-I/tmp/llvm-build/2.7/llvm/include  -g0 -finhibit-size-directive 
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss 
-fno-toplevel-reorder   \
          -c ../../llvm-gcc-4.2/gcc/crtstuff.c -DCRT_BEGIN \
          -o crtbegin.o
GCC:  <pointer_type 0x41a1b130
    type <void_type 0x41a1b080 void VOID
        align 8 symtab 1 alias set -1
        LLVM: void
        pointer_to_this <pointer_type 0x41a1b130>>
    public unsigned DI
    size <integer_cst 0x41a08b70 type <integer_type 0x41a1a0b0 
bit_size_type> constant invariant 64>
    unit size <integer_cst 0x41a08ba0 type <integer_type 0x41a1a000 long 
unsigned int> constant invariant 8>
    align 64 symtab 0 alias set -1
    pointer_to_this <pointer_type 0x41a2cbb0>>
LLVM: i8* (32 bits)
LLVM type size doesn't match GCC type 
size!../../llvm-gcc-4.2/gcc/crtstuff.c:267: internal compiler error: in 
llvm_set_type, at llvm-types.cpp:89
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs/> for instructions.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: llvm-patch-sparc64.diff
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100505/a0d2b132/attachment.ksh>


More information about the llvm-dev mailing list