This is the mail archive of the gcc-bugs@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]

Cross compiler build problem


Thanks in advance. Kiet


GCC Version: 2.95.1
System Type: i586-pc-linux-gnu
Config.status:  ../gcc-2.95.1/configure
--with-gcc-version-trigger=/home/gnu/gcc-2.95.1/gcc/version.c
--host=i586-pc-linux-gnu --target=sh-hms --prefix=/usr/local/gcc-sh -v
--norecursion
Command: make all install
Symptomp: missing stdlib.h and unistd.h. Are these files inside
/usr/include or target specific files???
Error Screen Dump:
-------------------------------------------------------------------------------

make GCC_FOR_TARGET="/home/gnu/build-gcc/gcc/xgcc
-B/home/gnu/build-gcc/gcc/ -B/
usr/local/gcc-sh/sh-hms/bin/ -I/usr/local/gcc-sh/sh-hms/include" \
  AR_FOR_TARGET="sh-hms-ar" \
  AR_FLAGS_FOR_TARGET="rc" \
  CC="gcc" CFLAGS="-g -O2" \
  HOST_PREFIX="" HOST_PREFIX_1="loser-" \
  LANGUAGES="c proto gcov CHILL c++ f77 java objc" \
  LIBGCC2_CFLAGS="-O2  -DCROSS_COMPILE -DIN_GCC     -g -O2 -I./include
-g1  -D
IN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   " libgcc2.a
make[3]: Entering directory `/home/gnu/build-gcc/gcc'
rm -f tmplibgcc2.a
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3
_ashldi3
_ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 _floatdidf
_floatdisf
 _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi _fixunssfdi _fixsfdi
_fixxfdi _fix
unsxfdi _floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf
__gcc_bcmp _varar
gs __dummy _eprintf _bb _shtab _clear_cache _trampoline __main _exit
_ctors _pur
e; \
do \
  echo ${name}; \
  /home/gnu/build-gcc/gcc/xgcc -B/home/gnu/build-gcc/gcc/
-B/usr/local/gcc-sh/sh
-hms/bin/ -I/usr/local/gcc-sh/sh-hms/include -O2  -DCROSS_COMPILE
-DIN_GCC     -
g -O2 -I./include   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED    -I.
-I../../gc
c-2.95.1/gcc -I../../gcc-2.95.1/gcc/config
-I../../gcc-2.95.1/gcc/../include -c
-DL${name} \
       ../../gcc-2.95.1/gcc/libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  sh-hms-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
done
_muldi3
../../gcc-2.95.1/gcc/libgcc2.c:41: stdlib.h: No such file or directory
../../gcc-2.95.1/gcc/libgcc2.c:42: unistd.h: No such file or directory
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/home/gnu/build-gcc/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/home/gnu/build-gcc/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/home/gnu/build-gcc/gcc'
make: *** [all-gcc] Error 2
--------------------------------------------------------------------------




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