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: compiling gcc using --with-headers pointing to linux headers


>-----Original Message-----
>From: Conyers, Steve [mailto:steve.conyers@lmco.com]
>Sent: 24 April 2001 23:26

 [Crossgcc list Cc'd back in]

>#../gcc-2.95.2/configure -- target=$target --prefix=$prefix
>--with-headers=/export/home/linux-source/linux-2.2.17/include -v
>#make LANGUAGES=c
>
>the system did not find stdlib.h and unistd.h and blew me away.  This is
>the same error I use to get before creating links into newlib from 
>gcc-2.95.2.  
>
>The linux headers beneath linux-2.2.17/include did get copied over to
>subdirectories beneath $prefix/powerpc-motorola-linux-gnu/sys-include

  #1:  Have you removed the links to newlib?
         If not, rm them.
  #2:  Are the old newlib headers left over in $prefix/$target/sys-include?
         If so, zap them.
  #3:  Is there a file called COPIED in $prefix/$target/sys-include
         The headers are copied over at configure time, and this file is
    then created to indicate it has been done.  If there was one left
    over from your attempts with newlib, it would be noticed by configure
    when you tried again with the linux headers, and the result is that
    the linux headers wouldn't get copied.  So get rid of that one too.

          DaveK
-- 
 All your base are belong to the Israeli army!  Oh, now they aren't again!


**********************************************************************
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@sourceware.cygnus.com


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