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

Anton Korobeynikov anton at korobeynikov.info
Wed May 5 23:46:31 PDT 2010


Hello

> 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.
The patch is incorrect and the problems you're seeing are caused by
your patch, since sparc != sparc64.
In LLVM sense "sparc" means "sparc with ILP32 architecture model",
llvm does not support anything 64 bit in sparc world.

>   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
Indeed, LLVM assumes that pointer size is 32 bits (since it's 32 bit
sparc), but gcc - definitely not.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the llvm-dev mailing list