This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: 3.0.4 cross build fails on i686-pc-cygwin.


Hi,

i finally succeeded in building a cross compiler, but i don't think i did it 
right.

My first approach was to add the flag --with-headers=/some 
path/newlib/libc/include. These file were then copied to 
prefix/powerpc-eabi/sys-include and used in some parts of the builing. The 
build still failes on i686-pc-cygwin and i386-unknown-freebsd4.5 with this 
approach. After looking around some more i found that make looks in 
prefix/powerpc-eabi/include NOT in sys-include?? If i copy sys-include to 
include the build succeeds on i686-pc-cygwin but not on 
i386-unknown-freebsd4.5.

My second approach was to copy newlib/libc/include to srcdir, with this 
approach the build succeeds on i686-pc-cygwin (i haven't tryied it on 
FreeBSD yet).

If any of these approaches are right please let me know.

When i look through the make.log i find several "implicit declaration" 
warnings so i still think i screwed up the path's:
../../../../gcc-3.0.4/libiberty/strdup.c: In function `strdup':
../../../../gcc-3.0.4/libiberty/strdup.c:5: warning: implicit declaration of 
function `malloc'
../../../../gcc-3.0.4/libiberty/strdup.c:5: warning: implicit declaration of 
function `strlen'
../../../../gcc-3.0.4/libiberty/strdup.c:8: warning: implicit declaration of 
function `strcpy'

I would really appreciate if someone could give an example on how to 
configure and make a cross compiler using newlib.

Regards.


>From: Jan Reimers <janr@molienergy.com>
>To: 'Mack Lobell' <macklobell@hotmail.com>, dje@watson.ibm.com
>CC: gcc@gcc.gnu.org
>Subject: RE: 3.0.4 cross build fails on i686-pc-cygwin.
>Date: Fri, 22 Feb 2002 12:15:44 -0800
>
>Tell gcc where the newlib headers are, build cross-gcc, then use cross-gcc
>to make the lib.
>
>
> > -----Original Message-----
> > From: Mack Lobell [mailto:macklobell@hotmail.com]
> > Sent: Friday, February 22, 2002 10:34 AM
> > To: dje@watson.ibm.com
> > Cc: gcc@gcc.gnu.org
> > Subject: Re: 3.0.4 cross build fails on i686-pc-cygwin.
> >
> >
> > How do i do that?
> >
> > The last time i built a cross compiler i didn't have to add
> > anything to the
> > build process.
> > I have read a few how-tos on how to build a cross compiler
> > and none of them
> > give any examples, so i appreciate any help i can get.
> >
> > I'm planing to use newlib instead of glibc. But to build
> > newlib i need a
> > cross compiler, right?
> >
> > Regards.
> >
> >
> > >From: David Edelsohn <dje@watson.ibm.com>
> > >To: "Mack Lobell" <macklobell@hotmail.com>
> > >CC: gcc@gcc.gnu.org
> > >Subject: Re: 3.0.4 cross build fails on i686-pc-cygwin.
> > >Date: Fri, 22 Feb 2002 12:52:09 -0500
> > >
> > >	You need to supply the cross-target headers and tell
> > GCC where to
> > >find them.  This can be glibc or libgloss or your own, but
> > it needs to be
> > >something.
> > >
> > >David
> >
> >
> > _________________________________________________________________
> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> >


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]