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]

Re: apparent bug in the configure.in script


* Quality Quorum <qqi@world.std.com> on Thu, Sep 20, 2001:

> 
> 
> On Thu, 20 Sep 2001, M. R. Brown wrote:
> 
> > * Quality Quorum <qqi@world.std.com> on Thu, Sep 20, 2001:
> >
> > >
> > > It fails on build because configure thinks that --without-headers is
> > > an equivalent of --with-headers=no and it trying to install
> > > sys-includes from non-existing directory `no'.
> > >
> >
> > It shouldn't fail doing that, at least, it's never failed for me.
> 
> If you already have include files (say you are rebuilding) it would
> not fail.
> 

Wrong.  If you're building a bootstrap compiler, you can specify
--with-newlib to cause gcc to define the inhibit_libc variable and *not*
include header files.  In this instance --without-headers is completely
unecessary.

To build a bootstrap compiler (e.g. the first pass or "chicken" of the
chicken/egg scenario) configure --with-newlib and use the all-gcc and
install-gcc targets of the Makefile.  e.g.

   make all-gcc
   make install-gcc

You also probably want to skip building C++, f77, etc. in the bootstrap, so
configure with --enable-languages="c".

See Bill's FAQ for more examples.

M. R.

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


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