|
From: Edmund Ng <edm...@sc...> - 2000-11-24 16:20:33
|
Earnie Boyd wrote:
> --- Edmund Ng <edm...@sc...> wrote:
> > I am a newbie trying to cross compile using mingw on Solaris 2.5.1 to
> -8<-
>
> You've more experience than I have.
>
> >
> > However when I get to actually creating the cross compiler, I get the
> > following error message:
> >
> -8<-
> >
> > 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}; \
> > /home/edmung/gnu/src/gcc-2.95.2/CROSS/gcc/xgcc
> > -B/home/edmung/gnu/src/gcc-2.95.2/CROSS/gcc/
> > -B/home/edmung/gnu/i386-mingw32/bin/
> > -I/home/edmung/gnu/i386-mingw32/include -O2
> > -I../../gcc/../winsup/include -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2
> > -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I.
> > -I../../gcc -I../../gcc/config -I../../gcc/../include -c -DL${name} \
> > ../../gcc/libgcc2.c -o ${name}.o; \
> > if [ $? -eq 0 ] ; then true; else exit 1; fi; \
> > i386-mingw32-ar rc tmplibgcc2.a ${name}.o; \
> > rm -f ${name}.o; \
> > done
> > _muldi3
> > ../../gcc/libgcc2.c:41: stdlib.h: No such file or directory
> > ../../gcc/libgcc2.c:42: unistd.h: No such file or directory
> > make[1]: *** [libgcc2.a] Error 1
> > make[1]: Leaving directory `/home/edmung/gnu/src/gcc-2.95.2/CROSS/gcc'
> > make: *** [all-gcc] Error 2
> >
> >
> > I had downloaded the files and just upzip them so I cannot understand
> > why the files stdlib.h and snistd.h would not be included.
> > in gcc. Anyone?
> >
>
> Where are those files located? Is that path listed in the -I switch list?
>
OK... thanks guys for the help.. it's cross compiling. The files were
supposed to be located in
<src>/i386-mingw32/include/
I didn't have it there so when I tried to compile.. it didn't work. But all
is good with the world today. Thanks for all your help.
|