This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
After previous failed attepts, it was suggested I copy the target headers and libraries to $prefix/$target/include and lib. I did this, and it doesn't help. A coworker and I sat and wondered why this should even be necessary, as the executable compiler we're trying to build is running on Linux, so why should it be built and linked with sunos headers and libraries? Perhaps I completely missed something? I've read the FAQ, and it doesn't seem to suggest this is necessary either. Can someone straighten me out on this? Anyway, here's what I'm doing. I moved to a new machine (RH 6.0) and tried again. I configured binutils-2.9.1 using --program-prefix="sunos4-" and --target="sparc-sun-sunos4", built it and installed it, no problem. Then I untar the egcs-1.1.2 package, create a separate directory for the build, cd to that separate directory, and configure the egcs cross using the same options as I did with binutils. Then I type 'make cross', and it starts building stuff, but gets to a point where it's trying to use xgcc (from my build directory) to compile egcs-1.1.2/gcc/libgcc2.c. It is failing because it can't find stdlib.h and unistd.h. On this system, those headers are in /usr/include, however that directory doesn't seem to be in the include path of xgcc. Should it be? If so, how can I get it in there? Am I supposed to be editing the Makefile? I'll include the relavent error output at the end of this message. Also, I'm wondering when the FAQ will be updated for egcs. I saw some comments in there about "Cygnus releases", but I'm not sure if that meant egcs. If so, there isn't much information there, and it's kinda confusing. Thank you for your time. make GCC_FOR_TARGET="/usr/local/src/builds/cross/egcs/gcc/xgcc -B/usr/local/src/builds/cross/egcs/gcc/" \ AR="sunos4-ar" AR_FLAGS="rc" CC="gcc" CFLAGS="-g -O2" \ HOST_PREFIX="" HOST_PREFIX_1="loser-" \ LANGUAGES="c c++" \ 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 `/usr/local/src/builds/cross/egcs/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}; \ /usr/local/src/builds/cross/egcs/gcc/xgcc -B/usr/local/src/builds/cross/egcs/gcc/ -O2 -DCROSS_COMPILE -DIN_GCC -g -O2 -I./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I../../../../egcs-1.1.2/gcc -I../../../../egcs-1.1.2/gcc/config -c -DL${name} \ ../../../../egcs-1.1.2/gcc/libgcc2.c -o ${name}.o; \ if [ $? -eq 0 ] ; then true; else exit 1; fi; \ sunos4-ar rc tmplibgcc2.a ${name}.o; \ rm -f ${name}.o; \ done _muldi3 ../../../../egcs-1.1.2/gcc/libgcc2.c:41: stdlib.h: No such file or directory ../../../../egcs-1.1.2/gcc/libgcc2.c:42: unistd.h: No such file or directory make[3]: *** [libgcc2.a] Error 1 make[3]: Leaving directory `/usr/local/src/builds/cross/egcs/gcc' make[2]: *** [stmp-multilib-sub] Error 2 make[2]: Leaving directory `/usr/local/src/builds/cross/egcs/gcc' make[1]: *** [stmp-multilib] Error 1 make[1]: Leaving directory `/usr/local/src/builds/cross/egcs/gcc' make: *** [cross] Error 2 _______________________________________________ New CrossGCC FAQ: http://www.objsw.com/CrossGCC _______________________________________________ To remove yourself from the crossgcc list, send mail to crossgcc-request@cygnus.com with the text 'unsubscribe' (without the quotes) in the body of the message.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |