[Linux-ia64] make cross-gcc error use GNUPro ToolKit

From: Minnow <yucy_at_necas.nec.co.jp>
Date: 2001-05-18 11:43:52

I want to port some applications from IA32 to IA64. So I want to have a cross-gcc and get GNUPro ToolKit source and make,but some errors happened.If who knows ,Please help me.

My PC is PII 350 and OS is Redhat 7.1.
the gcc is 2.96
the glibc is glibc-devel-2.2.2-1
 
Thanks.
 
step 1:
 cd /work;tar xzvf src.tar.Z
 
step 2:
 mkdir install-dir;cd install-dir
 ../src/configure --target=ia64-pc-linux
 make all LANGUAGES="c c++"

step 3:
 the error looks like this:
do \
  echo ${name}; \
  /work/b-ia64-pc-linux/gcc/xgcc -B/work/b-ia64-pc-linux/gcc/ -B/usr/local/ia64-pc-linux/bin/ -I/usr/local/ia64-pc-linux/include -O2  -DCROSS_COMPILE -DIN_GCC    -g -O2  -I./include  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I../../src/gcc -I../../src/gcc/config -I../../src/gcc/../include -c -DL${name} \
       ../../src/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  /work/b-ia64-pc-linux/binutils/ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
../../src/gcc/libgcc2.c:44: stdlib.h: No such file or directory
../../src/gcc/libgcc2.c:45: unistd.h: No such file or directory
make[1]: *** [libgcc2.a] Error 1
 
In this step,I change the configure as follows:
 cd /install-dir/gcc;rm * -rf;../../src/gcc/configure --target=ia64-pc-linux --disable-threads
 make all LANGUAGES="c c++" TARGET_LIBGCC2_CFLAGS="-fomit-frame-pointer -fPIC -Dinhibit_libc -D__gthr_posix_h"
 
 the gcc is ok and I continue to make as follows:
 
step 4:
 cd /work/install-dir
 make all LANGUAGES="c c++" TARGET_LIBGCC2_CFLAGS="-fomit-frame-pointer -fPIC
-Dinhibit_libc -D__gthr_posix_h"
 
 the error looks like this:
/usr/local/ia64-pc-linux/bin/ -c -fomit-frame-pointer -Dinhibit_libc -D__gthr_posix_h -g -O2  -I. -I../../../src/libio  ../../../src/libio/iogetline.c
In file included from ../../../src/libio/iogetline.c:26:
../../../src/libio/libioP.h:30: errno.h: No such file or directory
In file included from ../../../src/libio/iolibio.h:1,
                 from ../../../src/libio/libioP.h:47,
                 from ../../../src/libio/iogetline.c:26:
../../../src/libio/libio.h:30: _G_config.h: No such file or directory
../../../src/libio/iogetline.c:27: string.h: No such file or directory
make: *** [iogetline.o] Error 1
 
step 5:
 I think it may be the configure parameter not-corret. I want to know why and how to solve it.
Received on Thu May 17 18:43:57 2001

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:03 EST