Problem making toolchain

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
uglyoldbob
Member
Member
Posts: 62
Joined: Tue Feb 13, 2007 10:46 am

Problem making toolchain

Post by uglyoldbob »

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.

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
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 have an 80386SX 20MHz 2MB RAM.
It is my testbed platform. Only has the 3.5" and 5.25" floppy drives.
Post Reply