build problems
Brian Ford
ford@vss.fsi.com
Mon Dec 6 12:08:00 GMT 1999
On Mon, 6 Dec 1999, Mark McCance wrote:
> I am having problems building a gcc-2.95.2 cross compiler intel -> mips
> 6.5
>
> I did
>
> configure --target=mips-sgi-irix6
You should use the --with-headers= option described on:
http://egcs.cygnus.com/install/configure.html
or you need to set the preprocessor define inhibit_libc.
Check out the cross gcc FAQ at:
http://www.objsw.com/CrossGCC/
> make
>
> make[2]: Entering directory `/ptmp/mwm/gcc-2.95.2/gcc'
> rm -f libgcc2.a
> if [ -d . ]; then \
> cd .; \
> rm -f libgcc.a crtbegin.o crtend.o; \
> else true; \
> fi
> make GCC_FOR_TARGET="/ptmp/mwm/gcc-2.95.2/gcc/xgcc
> -B/ptmp/mwm/gcc-2.95.2/gcc/ -B/usr/local/mips-sgi-irix6/bin/
> -I/usr/local/mips-sgi-irix6/include" \
> AR_FOR_TARGET="mips-sgi-irix6-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 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED " libgcc2.a
> make[3]: Entering directory `/ptmp/mwm/gcc-2.95.2/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 _fixunsxfdi _floatdixf _fixunsxfsi
> _fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb
> _shtab _clear_cache _trampoline __main _exit _ctors _pure; \
> do \
> echo ${name}; \
> /ptmp/mwm/gcc-2.95.2/gcc/xgcc -B/ptmp/mwm/gcc-2.95.2/gcc/
> -B/usr/local/mips-sgi-irix6/bin/ -I/usr/local/mips-sgi-irix6/include
> -O2 -DCROSS_COMPILE -DIN_GCC -g -O2 -I./include -g1 -DIN_LIBGCC2
> -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I./config -I./../include -c
> -DL${name} \
> ./libgcc2.c -o ${name}.o; \
> if [ $? -eq 0 ] ; then true; else exit 1; fi; \
> mips-sgi-irix6-ar rc tmplibgcc2.a ${name}.o; \
> rm -f ${name}.o; \
> done
> _muldi3
> In file included from tconfig.h:5,
> from ./libgcc2.c:33:
> config/mips/xm-iris6.h:16: string.h: No such file or directory
> ./libgcc2.c:41: stdlib.h: No such file or directory
> ./libgcc2.c:42: unistd.h: No such file or directory
>
>
> I am having problems building gcc-2.95.2 on irix 6.5.
>
> I did
>
> configure
> make
>
You should use make bootstrap here, but this is probably not your problem.
> 31 whats next make
> make all-recursive
> Making all in intl
> Making all in lib
> Making all in makeinfo
> (cd intl && make all)
> ./genattr ./config/mips/mips.md > tmp-attr.h
> *** Termination code 139 (bu21)
> *** Error code 1 (bu21)
>
> I work for the CRAY side of SGI and maybe soon to be CRAY again. We
> want to move to
> gcc/g++ for our compiler gen product. For the near term our compilers
> will run on a mips
> platform. Any help would be great.
>
> Mark McCance
> mwm@cray.com
>
--
Brian Ford
Software Engineer
Vital Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax: 314-551-8444
More information about the Gcc-bugs
mailing list