[LLVMdev] Problem Compiling llvm-gcc 4.2

Robert G. Jakabosky bobby at sharedrealm.com
Sat Feb 2 02:10:03 PST 2008


On Saturday 02, Kinson Chan 陳傑信 wrote:
> That is a Linux box (Debian, with 2.6.23-1 Kernel) and I have already
> tried combinations of --disable-shared and/or --disable-multilib. It
> get stuck at the same point.

>From the make messages it looks like you are compiling on x86_64 linux.  I had 
lots of problems compile llvm-gcc-4.2 from svn on x86_64.  Just today I got 
it to work by diabling bootstrap with "--diable-bootstrap".  It might also be 
needed to compile the 2.1 release version of llvm-gcc-4.2

Here is my configure command:
../llvm-gcc-4.2/configure --prefix=/opt/llvm --enable-llvm=/opt/llvm-top/build.llvm-2.1/ --enable-languages=c,c++ --enable-checking --disable-shared --disable-multilib --disable-bootstrap

That is for a debug build.  I haven't try a relase build yet, but it should 
only require removing the "--enable-checking" option.

Also there is a bug about this problem: 
http://llvm.org/bugs/show_bug.cgi?id=1711

I added comments to that bug and a patch to get the latest svn revision to 
build on Linux x86_64.

I am using Gentoo Linux with kernel 2.6.23 and gcc 4.2.2

-- 
Robert G. Jakabosky




More information about the llvm-dev mailing list