egcs-1.1.2 cross compiler problems
Teemu Torma
tot@trema.com
Fri Apr 23 00:44:00 GMT 1999
I have tried for the first time to set egcs to work as a cross
compiler to be able to compile sparc-sun-solaris2.5.1 binaries under
sparc-sun-solaris2.7. This same setup worked out-of-the-box with gcc
2.7.2.3.
The configuration was done as:
../egcs-1.1/configure --target=sparc-sun-solaris2.5.1 --srcdir=../egcs-1.1 --prefix=/usr/gnu --with-cpu=supersparc --enable-version-specific-runtime-libs --enable-shared --with-gnu-as --with-gnu-ld
I encountered two fatal problems with this setup:
1. The generated include/limits.h does include code to #include_next
the system limits.h (limitx.h and limity.h). This causes that
config/sparc/gmon-sol2.c does not even compile because it does not
get PATH_MAX from limits.h.
2. When building a cross compiler, libgcc2.c does automatically
#define inhibit_libc. At least __eprintf will be missing and
causing link failures.
After fixing those two things manually, everything seems to be in
working order.
Teemu
More information about the Gcc-bugs
mailing list