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] |
Ok, so I built egcs-1.1.2 on my sunos4 box, and tarred up everything under $builddir/gcc/include, added /usr/include/sys/sysmacros.h (because unistd.h needs it), and stuck them all under /usr/local/sparc-sun-sunos4/include on my linux box, reconfigured using --program-prefix="sunos4-" --target="sparc-sun-sunos4" --with-headers="/usr/local/sparc-sun-sunos4/include" and re-ran the build. Now it's complaining about parse errors. I looked at the file it is complaining about, and there's nothing glaringly wrong with it. Anyone know why? The relevant error output is below, and the relevant lines in stdlib.h are pasted below that. Thanks again for your time. 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 In file included from ../../../../egcs-1.1.2/gcc/libgcc2.c:41: include/stdlib.h:43: parse error before `mbstowcs' include/stdlib.h:43: warning: data definition has no type or storage class include/stdlib.h:44: parse error before `wcstombs' include/stdlib.h:44: warning: data definition has no type or storage class 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 *** lines 41-44 from stdlib.h are below *** extern int mbtowc _PARAMS((__WCHAR_TYPE__ *, const char *, __SIZE_TYPE__ )); extern int wctomb _PARAMS((char *, __WCHAR_TYPE__ )); extern size_t mbstowcs _PARAMS((__WCHAR_TYPE__ *, const char *, __SIZE_TYPE__ )) ; extern size_t wcstombs _PARAMS((char *, const __WCHAR_TYPE__ *, __SIZE_TYPE__ )) ; ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |