This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
building a cross compiler
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Subject: building a cross compiler
- From: Albert Niessner <Albert dot F dot Niessner at jpl dot nasa dot gov>
- Date: Fri, 12 Jan 2001 01:04:32 +0000
- CC: tgl <Thomas dot G dot Lockhart at jpl dot nasa dot gov>
- Organization: Jet Propulsion Laboratory
gcc version = 2.95.2
host = i686-pc-linux-gnu
target = sparc-sun-solaris2
configure line = ../gcc-2.95.2/configure --target=$target
--prefix=/usr/local -v --with-headers=../Solaris-2.6/include
I am attempting to build a cross compiler for the sparc platform and the
make is crashing when it gets to libiberty. I looked through the
configure.in and libiberty/configure.in looking for extra controls and
found none that helped. The specific error make is throwing is:
make[2]: Entering directory
`/export/home/niessner/Scratch/CrossCompiler/build-gcc-sparc/sparc-sun-solaris2/libiberty'
make[2]: *** No targets specified and no makefile found. Stop.
make[2]: Leaving directory
`/export/home/niessner/Scratch/CrossCompiler/build-gcc-sparc/sparc-sun-solaris2/libiberty'
make[1]: *** [../libiberty/libiberty.a] Error 2
make[1]: Leaving directory
`/export/home/niessner/Scratch/CrossCompiler/build-gcc-sparc/sparc-sun-solaris2/libstdc++'
make: *** [all-target-libstdc++] Error 2
Just as a test I then did a make -k to proceed past the errors. It
completed and installed, but is not functional. It crashes during the ld
phase. Since the test program compiles and runs with a host compiler, it
should compile and link with the cross.
What is missing in the configure line which will allow the compiler to
build?
Al Niessner