libiberty and cross-compilers

Peter Gerwinski
Mon Feb 21 11:20:00 GMT 2000


I am building a cross compiler i586-pc-linux-gnu -->
sparc-sun-solaris.  Everything works fine, but the include
directory `/usr/local/sparc-sun-solaris/include' is not
passed to the compilation of libiberty.

This is what `make' does:

  /home/peter/gpc/solaris/gcc/xgcc \
    -B/home/peter/gpc/solaris/gcc/ \
    -B/usr/local/sparc-sun-solaris/bin/ \
    -c -DHAVE_CONFIG_H -s -O2 -I. \
    -I../../../gcc-2.95.1/libiberty/../include \
  ../../../gcc-2.95.1/libiberty/choose-temp.c:29: stdio.h: No such file or directory
  ../../../gcc-2.95.1/libiberty/choose-temp.c:30: sys/types.h: No such file or directory
  ../../../gcc-2.95.1/libiberty/choose-temp.c:32: unistd.h: No such file or directory
  ../../../gcc-2.95.1/libiberty/choose-temp.c:35: stdlib.h: No such file or directory
  ../../../gcc-2.95.1/libiberty/choose-temp.c:38: sys/file.h: No such file or directory
  make[1]: *** [choose-temp.o] Error 1
  make[1]: Leaving directory `/space/peter/gpc/solaris/sparc-sun-solaris/libiberty'
  make: *** [all-target-libiberty] Error 2

And these are the options to the top-level configure
(from config.status):

  ../gcc-2.95.1/configure \
    --with-gcc-version-trigger=/home/peter/gpc/gcc-2.95.1/gcc/version.c \
    --quiet --prefix=/usr/local --build=i586-pc-linux-gnu \
    --host=i586-pc-linux-gnu --target=sparc-sun-solaris \
    --enable-languages=c,pascal --norecursion 

(Lines are broken up manually to enhance readability.)

What am I doing wrong?


-- - G-N-U GmbH:
Maintainer GNU Pascal - - gpc-19990118
GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422
keys: - AntiSpam:

More information about the Gcc mailing list