RE: [uClinux-dev] ARM uCLinux and newlib

From: D. Jeff Dionne (jeff@rt-control.com)
Date: Mon Jul 10 2000 - 16:23:16 EDT


Joe deBlaquiere <joe@wirespeed.com> said: 

> Actually, my experience is that you at least need the header files from some
> c library. uC-libc's headers are kinda sparse. I actually used the glibc
> headers, but that wasn't much fun...
> 
> a good place to start would be to copy the uC-libc headers to
> <prefix>/<arch>/sys-include  and then try compiling.

Actually, that's not necessary (or strictly correct).  You just need to

TARGET_LIBGCC2_CFLAGS = -Dinhibit_libc

If that does not solve the problem, there is something else wrong, you 
_do not_ need or want libc headers when building the compiler.  You should
get all the way through, without errors.  Remember to build only the C
compiler at this stage, worry about other things later.

Have a look at my build scripts and patches in the SRPMS on the uClinux
cd (which should be mirrored somewhere).  They are a good reference for
bootstraping and building cross compilers in a clean environment.

Jeff.

> 
> If you want to short circuit the process, the tools binaries are available
> as a file "atool_a2b.tar.gz" from
> ftp://ftp.wirespeed.com/pub/uClinux
> 
> of course this is an older version of the compiler, but it works. And it's
> much easier to compile the tools once you have the tools compiled ( chicken
> and egg problem... )
> 
> Good luck!
> 
> > -----Original Message-----
> > From: owner-uclinux-dev@uClinux.org
> > [mailto:owner-uclinux-dev@uClinux.org]On Behalf Of D. Jeff Dionne
> > Sent: Monday, July 10, 2000 1:51 PM
> > To: uclinux-dev@uClinux.org
> > Subject: Re: [uClinux-dev] ARM uCLinux and newlib
> >
> >
> > Dan Carlson <decarlson1@juno.com> said:
> >
> > > Hello,
> > >
> > > I am having trouble building the cross compiler based on
> > the instructions
> > > found on http://aplionet.aplio.fr/uclinux/uclinux-arm.htm
> > and I think it is
> > > because I don't have newlib installed.  This webpage does
> > not discuss how to
> > > do that.  Can anyone offer some suggestions?
> >
> > newlib is not used with uClinux (it's way to big).  Use
> > uC-libc insted.  But
> > yes, the compiler looks for libc.  You need to add...
> >
> > TARGET_LIBGCC2_CFLAGS = -Dinhibit_libc
> >
> > to the appropriate file (for m68k it is config/m68k/t-m68kbare)
> >
> > >
> > >
> > > Dan
> > >
> > > This message resent by the uclinux-dev@uclinux.org list server
> > http://www.uClinux.org/
> > >
> >
> >
> >
> > --
> > D. Jeff Dionne
> > Jeff@rt-control.com
> >    -VP Research, Office of the CTO
> >
> > Lineo - Put Linux Anywhere
> >
> >
> > This message resent by the uclinux-dev@uclinux.org list
> > server http://www.uClinux.org/
> >
> 
> This message resent by the uclinux-dev@uclinux.org list server
http://www.uClinux.org/
> 



-- 
D. Jeff Dionne                                        Jeff@rt-control.com
   -VP Research, Office of the CTO

Lineo - Put Linux Anywhere


This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:15 EDT