[LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps

Joachim Durchholz jo at durchholz.org
Sun Mar 30 10:07:50 PDT 2008


Am Sonntag, den 30.03.2008, 12:23 -0400 schrieb Daniel Berlin:
> To clarify,
> 
> configure --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu
> --target=i686-pc-linux-gnu
> 
> I do this all the time on my 4 core amd64 box and it works fine.

There must be some other difference, as I'm doing exactly that:

> >  >  export LLVM_GCC_SRC=$HOME/llvm-gcc-src
> >  >  export LLVM_GCC_WRK=$HOME/llvm-gcc-wrk
> >  >  export LLVM_CONFIGURE=
> >  >  export LLVM_CONFIGURE="$LLVM_CONFIGURE --prefix=$HOME"
> >  >  export LLVM_CONFIGURE="$LLVM_CONFIGURE --enable-optimized"
> >  >  export LLVM_CONFIGURE="$LLVM_CONFIGURE --build=i686-pc-linux-gnu"
> >  >  export LLVM_CONFIGURE="$LLVM_CONFIGURE --host=i686-pc-linux-gnu"
> >  >  export LLVM_CONFIGURE="$LLVM_CONFIGURE --target=i686-pc-linux-gnu"
> >  >  export CC=gcc-4.2
> >  >  export CXX=g++-4.2
> >  >  cd $LLVM_GCC_WRK
> >  >  $LLVM_GCC_SRC/configure $LLVM_CONFIGURE
> >  >  make -j3

Look at how $LLVM_CONFIGURE is built, the final value is

--prefix=/home/jo --enable-optimized --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu"

Regards,
Jo




More information about the llvm-dev mailing list