>Try these instructions from a recent posting some weeks ago :
>
>Edit gcc/config/arm/t-linux and add "-Dinhibit_libc" and
>"-D__gthr_posix_h"
>to TARGET_LIBGCC2_CFLAGS
>Delete #include "gthr.h" in libgcc2.c
>Add the "--disable-threads" option to configure

Thanks for the info.  This seemed to fix my problem, but here are some more
questions:

1) What effect will the "inhibit_libc", "__gthr_posix_h", and
"--disable-threads" options have on my compiler?

2) Would it be better to add a "-D/usr/include" instead the the above
defines?  I am building a gcc cross-compiler for an ARM Linux system on an
Intel Linux box.  Will the system header files be close enough, or should I
not take this chance?

3) Finally, I think the reason I hit this problem is that the Linux source
base does not contain all the header files I need (such as stdlib.h,
unistd.h, etc.).  Why are these files not in the Linux kernel source base?
Where do they come from?

Thanks again for your help.

--
Dan Jakubiec
Systech Corporation
[EMAIL PROTECTED]


-----Original Message-----
From: Jan-Uwe Finck [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 03, 1999 11:39 PM
To: '[EMAIL PROTECTED]'
Subject: Re: Problems building ARM toolchain under Linux.


On Fri, Sep 03, 1999 at 05:17:28PM -0700, Dan Jakubiec wrote:
>        ../../gcc-2.95.1/gcc/libgcc2.c -o ${name}.o; \
>   if [ $? -eq 0 ] ; then true; else exit 1; fi; \
>   arm-linux-ar rc tmplibgcc2.a ${name}.o; \
>   rm -f ${name}.o; \
> done
> _muldi3
> ../../gcc-2.95.1/gcc/libgcc2.c:41: stdlib.h: No such file or directory
> ../../gcc-2.95.1/gcc/libgcc2.c:42: unistd.h: No such file or directory

Hope it helps,
-- 
CU      
        Jan-Uwe
-------------------------------------------------
PGP-Public-Key on Request.
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to