Mail Archives: djgpp/2001/10/15/14:25:07
-: You're supposed to *install* the
-: cross-binutils into a place where the GCC configure step can find
-: them. Either manually, or via 'make install' --- your choice.
I've never built the cross-compiler kit before, so I was following
the makefile provided in cross/ of djcrx203.zip. That makefile builds
both binutils and gcc *before* installing either one, so that's what I
was doing. (The makefile was written for gcc-2.7.2 and binutils-2.7;
maybe things have changed too much since then).
Anyway, after `make install' inside the cross-binutils dir, `make gcc'
still has trouble finding (e.g.) `ar'. For example, in the fragment
below, `as' is found in /home/.../i386-pc-msdosdjgpp/bin/as, but `ar'
is invoked only as `i386-pc-msdosdjgpp-ar', and therefore isn't found.
FWIW the top-level cross-binutils configure was invoked as:
./configure --prefix=/home/jeffw/dos/djgpp/x --host=sparc-sun-solaris2.7 \
--target=i386-pc-msdosdjgpp --norecursion
--
jtw
GNU C version 2.95.3 20010315 (release) (i386-pc-msdosdjgpp) compiled by GNU C version 2.95.3 20010315 (release).
/home/jeffw/dos/djgpp/x/i386-pc-msdosdjgpp/bin/as -o dummy.o /var/tmp/cc6XAuda.s
i386-pc-msdosdjgpp-ar rc libgcc1.null dummy.o
make[2]: i386-pc-msdosdjgpp-ar: Command not found
make[2]: *** [libgcc1.null] Error 127
make[2]: Leaving directory `/home/jeffw/dos/djgpp/x/gcc-2.95.3/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/jeffw/dos/djgpp/x/gcc-2.95.3'
tail -2 ./gcc-2.95.3/make.out | grep "way to make libgcc1.a"
make: *** [gcc] Error 1
- Raw text -