Anton Korobeynikov
2008-Mar-30 17:51 UTC
[LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps
Hello, Joachim> This assembler was configured for a target of `x86_64-linux-gnu'.Hrm, try to check, how 'as' is invoked by llvm-gcc, you need jut to run the mentioned cmdline 'by hands': ./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 plus, add '-v' option to see, what is really executed. -- With best regards, Anton Korobeynikov. Faculty of Mathematics & Mechanics, Saint Petersburg State University.
Joachim Durchholz
2008-Mar-30 18:53 UTC
[LLVMdev] Compiling llvm-gcc on amd64 with 32 bits: assembler still carps
Am Sonntag, den 30.03.2008, 21:51 +0400 schrieb Anton Korobeynikov:> Hello, Joachim > > > This assembler was configured for a target of `x86_64-linux-gnu'. > Hrm, try to check, how 'as' is invoked by llvm-gcc, you need jut to run > the mentioned cmdline 'by hands': > [...] > plus, add '-v' option to see, what is really executed.This *is* interesting. Turns out it's calling /home/jo/llvm-gcc-wrk/./gcc/as --traditional-format -V -Qy -o crtbegin.o /tmp/ccFNX5fN.s ... but the assembler is reporting GNU assembler version 2.18 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.18 anyway, strange... ... ah, turns out /home/jo/llvm-gcc-wrk/./gcc/as is just a shell script that execs /usr/bin/as, which of course is just the preinstalled 64-bit as. I still don't understand why it isn't getting a --32 or -m32 option, somewhere in the configure-makefile-gcc chain there *should* be something that's responsible for translating --build/host/target to one of these options. Now off to trying Tanya's approach :-) Regards Jo
Apparently Analagous 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