This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Error in cross compiler installation


"William A. Gatliff" wrote:
> 
> Julia:
> 
> Wierd, I don't see a reent.h in the gcc-2.95.3 source tree.  There is
> one in the newlib tree, though, and it does have a struct _reent in
> it.

reent.h is a newlib thing.

I have not been following the entire thread but I have
built mn10200-elf on RedHat GNU/Linux 7.2 and think
the configure should be more like mine which is:

/configure --target=mn10200-elf --prefix=/opt/gnucross --with-gnu-as
--with-gnu-ld --with-newlib --verbose --enable-languages=c

Modify the prefix and language list as you wish.  You need to 
make sure the newlib and libgloss directories are moved
from the newlib-xxx to gcc-XXX directory.

FWIW on the 3.1 branch, I got an internal compile error 
when trying to build all languages when compiling unwind-sjlj.c.
Hopefully I will be able to deal with the rtems targets so I
can dig through all my test build logs for generic embedded
targets to report that soon.


> * are you keeping the same prefix throughout the build process?
> * are you building outside the source tree for the compiler?
> * are you using --without-headers for the first gcc build?
> 
> HTH,
> 
> b.g.
> 
> On Fri, Apr 19, 2002 at 04:59:02PM +0800, julia koh wrote:
> > Hi!
> >
> > I am installing a cross compiler with the host as sparc-sun-solaris2.7 and
> > the target as mn10200.
> >
> > I have configured and installed binutils-2.10 succesfully with the following
> > command.
> > For configuration:
> > ../binutils-2.10/configure --host=sparc-sun-solaris2.7 --target=mn10200
> > --prefix=/home/ruffy/bar -v
> >
> > For installation:
> > make all install
> >
> > Then I configured and installed gcc-2.95.3.
> > Configuration for gcc-2.95.3 was succesful creating makefile but errors
> > occurred during installation which is attached below.
> >
> > Can anyone help me?
> >
> > Thank you very much.
> >
> > Regards,
> > Julia.
> >
> >
> >
> > >From: rejip <rejip@cdotb.ernet.in>
> > >To: julia koh <kohjulia@hotmail.com>
> > >Subject: Re: Error in cross compiler installation
> > >Date: Fri, 19 Apr 2002 14:20:24 -0500
> > >
> > >julia koh wrote:
> > >
> > > > Hi,
> > > >
> > > > I have been trying to install the Cross Compiler available on the GNU
> > > > website.
> > > > During installation of gcc-2.95.3, the following error occurred.
> > > >
> > > > _muldi3
> > > > In file included from ../../gcc-2.95.3/gcc/stdlib.h:19,
> > > >                  from ../../gcc-2.95.3/gcc/libgcc2.c:41:
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:63: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:63: warning: its scope is
> > >only
> > > > this definition or declaration, which is probably not what you want.
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:64: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:65: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:66: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:67: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:68: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:69: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:70: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:71: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:72: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:73: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:74: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:75: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:76: parse error before
> > >`_times_r'
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:76: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:76: warning: data definition
> > >has
> > > > no type or storage class
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:77: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:78: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:79: warning: `struct _reent'
> > > > declared inside parameter list
> > > > /homelsi1/wlnew/gcc-2.95.3/gcc/sys/reent.h:82: warning: `struct _reent'
> > > > declared inside parameter list
> > > > In file included from ../../gcc-2.95.3/gcc/libgcc2.c:41:
> > > > ../../gcc-2.95.3/gcc/stdlib.h:69: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:71: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:76: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:78: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:80: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:82: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:84: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:95: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:102: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:127: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:128: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:129: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:130: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:131: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:132: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > ../../gcc-2.95.3/gcc/stdlib.h:133: warning: `struct _reent' declared
> > >inside
> > > > parameter list
> > > > gmake[1]: *** [libgcc2.a] Error 1
> > > > gmake[1]: Leaving directory `/home/ruffy/build-gcc/gcc'
> > > > gmake: *** [all-gcc] Error 2
> > > >
> > > > Can anyone help me with this?
> > > >
> > > > Thank you very much.
> > > >
> > > > With best regards,
> > > > Julia Koh
> > > >
> > > > _________________________________________________________________
> > > > Join the world?s largest e-mail service with MSN Hotmail.
> > > > http://www.hotmail.com
> > > >
> > > > ------
> > > > Want more information?  See the CrossGCC FAQ,
> > >http://www.objsw.com/CrossGCC/
> > > > Want to unsubscribe? Send a note to
> > >crossgcc-unsubscribe@sources.redhat.com
> > >
> > >Hi Julia,
> > >                          It is always better to mention the target for
> > >which
> > >you are building the compiler and the
> > >sequences with which you are following.
> > >
> > >regards
> > >reji p rajesh
> > >
> >
> >
> >
> >
> > Julia
> >
> >
> > _________________________________________________________________
> > MSN Photos is the easiest way to share and print your photos:
> > http://photos.msn.com/support/worldwide.aspx
> >
> >
> > ------
> > Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
> >
> 
> --
> Bill Gatliff
> bgat@billgatliff.com
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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