Daniel Berlin
2008-Mar-30 16:23 UTC
[LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps
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. On Sun, Mar 30, 2008 at 12:22 PM, Daniel Berlin <dberlin at dberlin.org> wrote:> It shoudl work fine if you set CC right and use --build --target > > --host == i686-pc-linux-gnu > > > > On Sun, Mar 30, 2008 at 10:40 AM, Joachim Durchholz <jo at durchholz.org> wrote: > > Hi all, > > > > I managed to navigate around all those issues with environment variables > > and such. llvm itself now builds and checks just fine, but I can't get > > llvm-gcc to compile. > > > > Trying to 'make' from .../gcc gives me: > > > > ./xgcc -B./ -B/home/jo/i686-pc-linux-gnu/bin/ > > -isystem /home/jo/i686-pc-linux-gnu/include > > -isystem /home/jo/i686-pc-linux-gnu/sys-include > > -L/home/jo/llvm-gcc-wrk/gcc/../ld -O2 -DIN_GCC -W -Wall > > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > > -Wold-style-definition -isystem ./include -I. -I. > > -I/home/jo/llvm-gcc-src/gcc -I/home/jo/llvm-gcc-src/gcc/. > > -I/home/jo/llvm-gcc-src/gcc/../include > > -I/home/jo/llvm-gcc-src/gcc/../libcpp/include > > -I/home/jo/llvm-gcc-src/gcc/../libdecnumber -I../libdecnumber -g0 > > -finhibit-size-directive -fno-inline-functions -fno-exceptions > > -fno-zero-initialized-in-bss -fno-toplevel-reorder > > -fno-omit-frame-pointer \ > > -c /home/jo/llvm-gcc-src/gcc/crtstuff.c -DCRT_BEGIN \ > > -o crtbegin.o > > /tmp/ccuWW3r0.s: Assembler messages: > > /tmp/ccuWW3r0.s:27: Error: suffix or operands invalid for `push' > > /tmp/ccuWW3r0.s:37: Error: suffix or operands invalid for `call' > > /tmp/ccuWW3r0.s:55: Error: suffix or operands invalid for `push' > > /tmp/ccuWW3r0.s:65: Error: suffix or operands invalid for `call' > > make: *** [crtbegin.o] Error 1 > > > > > > ./xgcc -dumpmachine gives > > i686-pc-linux-gnu > > so this is OK. > > > > The reported lines are: > > 27 pushl %ebp > > 37 call *%edx > > 55 pushl %ebp > > 65 call *%eax > > > > What's wrong? > > > > Regards, > > Jo > > > > P.S.: I'm running with a freshly compiled and PATH-installed llvm > > package with a clean 'make check', and use > > 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 > > > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > >
Joachim Durchholz
2008-Mar-30 17:07 UTC
[LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps
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 -j3Look 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
Tanya Lattner
2008-Mar-30 17:28 UTC
[LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps
On Mar 30, 2008, at 10:07 AM, Joachim Durchholz wrote:> > 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" >This looks likes its missing some stuff. Make sure the configure line is exactly as what is in README.LLVM. -Tanya> Regards, > Jo > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Seemingly Similar Threads
- [LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps
- [LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps
- [LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps
- [LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps
- [LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps