problem building crosscompiler target=i486 host,build=ppc

winmute winmute-mailinglist-egcs-bugs@kotnet.org
Sat Sep 5 13:10:00 GMT 1998


NOTE: please send reply also to winmute <winmute-mailinglist-egcs-bugs@kotnet.org> !

host spotlight=ppc-chrp, host lucifer=i486
egcs-1.0.3? did build fine on spotlight(ppc) with target lucifer(i486)
egcs-1.1b does have problems

Step 1: clean source tree egcs-1.1b
Step 2:
[root@Spotlight egcs-1.1b]# ./configure --program-prefix=i486- --target=i486-pc-linux-gnu --with-headers=/mnt/lucifer/usr/include
Configuring for a powerpc-unknown-linux-gnulibc1 host.
Created "Makefile" in /usr/src/egcs-1.1b using "mt-frag"
Links are now set up to build a cross-compiler for i486-pc-linux-gnu
  from powerpc-unknown-linux-gnulibc1.
Step 3:
[root@Spotlight egcs-1.1b]# make cross

after a lot of compiling I get an error :(
tiomisc.exp             ..linked
tstdiomisc.exp          ..linked
Appending ./config/linux.mt to target-mkfrag
Appending ./config/mtsafe.mt to target-mkfrag
Created "Makefile" in /usr/src/egcs-1.1b/i486-pc-linux-gnu/libio using "target-mkfrag"
Configuring in i486-pc-linux-gnu/libiberty
COPYING.LIB             ..linked
ChangeLog               ..linked
Makefile                ..linked
Makefile.in             ..linked
README          ..linked

...
xstrdup.o               ..linked
xstrerror.c             ..linked
xstrerror.o             ..linked
make[2]: Entering directory `/usr/src/egcs-1.1b/i486-pc-linux-gnu/libiberty'
rm -rf *.o pic core errs \#* *.E a.out
rm -f needed.awk needed2.awk errors dummy needed-list config.h stamp-*
rm -f   stamp-picdir
rm -f *.a required-list tmpmulti.out
rm -f *~ Makefile config.status xhost-mkfrag TAGS multilib.out
make[2]: Leaving directory `/usr/src/egcs-1.1b/i486-pc-linux-gnu/libiberty'
creating cache ./config.cache
checking host system type... i486-pc-linux-gnu
checking build system type... powerpc-unknown-linux-gnulibc1
checking for i486-pc-linux-gnu-ar... i486-ar
checking for i486-pc-linux-gnu-ranlib... i486-ranlib
checking for gcc... /usr/src/egcs-1.1b/gcc/xgcc -B/usr/src/egcs-1.1b/gcc/
checking whether we are using GNU C... yes
checking whether /usr/src/egcs-1.1b/gcc/xgcc -B/usr/src/egcs-1.1b/gcc/ accepts -g... yes
checking for POSIXized ISC... no
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... /usr/src/egcs-1.1b/gcc/xgcc -B/usr/src/egcs-1.1b/gcc/ -E
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking whether the C compiler (/usr/src/egcs-1.1b/gcc/xgcc -B/usr/src/egcs-1.1b/gcc/ -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make[1]: *** [configure-target-libiberty] Error 1
make[1]: Leaving directory `/usr/src/egcs-1.1b'
make: *** [cross] Error 2

so what's wrong ?

greetings
Ulrik De Bie



More information about the Gcc-bugs mailing list