This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

building a cross compiler



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]