glibc-2.3.5 MIPS cross-compile
Dan Kegel
dank@kegel.com
Sat Sep 10 14:50:00 GMT 2005
Kyle Unice wrote:
> Actually the crosstool-0.38 now includes Matej patch for fixing the
> "-m=abi32" problem.
> Now I am working on a problem where I get the error caused by an
> $ifndef __linux__
> #error use a linux compiler /* or something like that I am building on cygwin */
> #endif
> in include/asm-mips/sgidefs.h
>
> I wrote a patch to comment out the #error
> --- sgidefs.h 2005-08-28 17:41:01.000000000 -0600
> +++ sgidefs.fix.h 2005-09-09 19:05:05.312500000 -0600
> @@ -15,7 +15,7 @@
> * everybody.
> */
> #ifndef __linux__
> -#error Use a Linux compiler or give up.
> +/* #error Use a Linux compiler or give up. */
> #endif
The funny thing is, I get the same error when building on Linux!
See
http://kegel.com/crosstool/crosstool-0.35/buildlogs/mips-gcc-2.95.3-glibc-2.2.5.log.txt
A better fix might be to add
-D__linux__
to TARGET_CFLAGS in the .dat file.
Hrmph. I'd test it myself here, but my hands are angry. I might be
offline for a while.
--
Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list