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: Crosscompiler for i686-pc-linux from cygwin


>-----Original Message-----
>From: Wouter Andy [mailto:wouter51@hotmail.com]
>Sent: 22 January 2002 16:19

>$ mkdir build-gcc && cd build-gcc
>$ ../gcc-3.0.3/configure --target=${TARGET} \
>    --prefix=${PREFIX} --without-headers --with-newlib \
>    2>&1 | tee configure.log
>$ make all-gcc install-gcc 2>&1 | tee make.log

    Hi Wouter,

  Argh, Bill messed up.  That "--without-haders --with-newlib" is a 
kludgey way of getting a bootstrap compiler and I guess it's not working
right now.

  OK, the make goes wrong because it's trying to build too much at the
moment and so running into problems when it gets to some of the trickier
bits.  You only want a bootstrap compiler, so you also need to give
configure the flag:

        --enable-languages=c

and to the make command you must add

   LANGUAGES=c

on the command line.  Have a go at that, then you should get enough of
a compiler working and installable that you can proceed to build glibc;
when you've got glibc built for your target it will take care of supplying
the header files that were missing when you indadvertently tried building
the full gcc.

  NB:  It is probably only necessary to use --enable-languages with 3.0.x,
but it should do no harm to make extra sure by adding the LANGUAGES macro
to the make command as well.

       DaveK
-- 
Burn your ID card!  http://www.optional-identity.org.uk/
Help support the campaign, copy this into your .sig!



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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


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