[LLVMdev] llvm-gcc x86-64 build problem

John Regehr regehr at cs.utah.edu
Thu Aug 7 20:14:53 PDT 2008


On ubuntu hardy on x86-64, using current svn, llvm builds fine, but I'm 
getting this when building llvm-gcc:

/usr/bin/ld: i386:x86-64 architecture of input file 
`/usr/lib/../lib/crti.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file 
`/usr/lib/../lib/crtn.o' is incompatible with i386 output

Searching the web for these messages turned up a few gcc links (though 
nothing helpful) and nothing mentioning llvm.

I configured llvm like this:

../configure --prefix=/home/regehr --enable-optimized

and llvm-gcc like this:

../configure --prefix=/home/regehr --enable-languages=c,c++ \ 
--enable-llvm=/home/regehr/llvm/build --enable-checking=release

I've been using these configure commands w/o problems on ia32.

Ring a bell for anyone?

Thanks,

John Regehr



More information about the llvm-dev mailing list