Problem making toolchain
Posted: Sat Nov 24, 2007 1:04 am
I am following along in the wiki for building an OS specific toolchain and I have hit a problem.
I double checked that I modified the appropriate files and autoconf and autoreconf in the right places. I can build the cross-compiler just fine (target i386-elf). My new target is (i386-elf-doors). Here is the related error output from the compile.
I tried editing the makefile by removing the line continuators (and making the statements one line instead of many), but this had no effect (no surprise there though).
The problem seems to be specific to C++. I tried removing the C++ portion of gcc and recompiling , but that did not change anything. I will start a complete rebuild of the toolchain and post the results in the morning.
EDIT: Hmm, just saw the thread on the toolchain. Oh well.
I double checked that I modified the appropriate files and autoconf and autoreconf in the right places. I can build the cross-compiler just fine (target i386-elf). My new target is (i386-elf-doors). Here is the related error output from the compile.
Code: Select all
/home/thomas/tools/build-gcc/./gcc/xgcc -B/home/thomas/tools/build-gcc/./gcc/ -B/home/thomas/doors-os/cross/i386-elf-doors/bin/ -B/home/thomas/doors-os/cross/i386-elf-doors/lib/ -isystem /home/thomas/doors-os/cross/i386-elf-doors/include -isystem /home/thomas/doors-os/cross/i386-elf-doors/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc-4.2.2/gcc -I../../gcc-4.2.2/gcc/. -I../../gcc-4.2.2/gcc/../include -I../../gcc-4.2.2/gcc/../libcpp/include -I../../gcc-4.2.2/gcc/../libdecnumber -I../libdecnumber -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -Dinhibit_libc -fPIC \
-c ../../gcc-4.2.2/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
exec: 2: -o: not found
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/home/thomas/tools/build-gcc/gcc'
make[1]: *** [install-gcc] Error 2
make[1]: Leaving directory `/home/thomas/tools/build-gcc'
make: *** [install] Error 2
The problem seems to be specific to C++. I tried removing the C++ portion of gcc and recompiling , but that did not change anything. I will start a complete rebuild of the toolchain and post the results in the morning.
EDIT: Hmm, just saw the thread on the toolchain. Oh well.