powerpc-linux cross gcc-2.95 with newlib-1.8.1 missing crt1.o

Jeff Hammond j.hammond@cputech.com
Thu Aug 12 11:46:00 GMT 1999


I had the same problem last week.  I fixed it by properly initializing 
all the needed enviornment variables.  The ones that I added that 
fixed this problem were LIBRARY_PATH & C_INCLUDE_PATH.
HTH, Jeff

> -----Original Message-----
> From:	greyham@research.canon.com.au
> [SMTP:greyham@research.canon.com.au]
> Sent:	Wednesday, August 11, 1999 10:40 PM
> To:	newlib@cygnus.com
> Cc:	crossgcc@cygnus.com
> Subject:	powerpc-linux cross gcc-2.95 with newlib-1.8.1 missing
> crt1.o
> 
> Well, that subject line sure is a mouthful. Here's an English
> translation:
> 
> I'm attempting to build a powerpc-linux cross-compiler from gcc-2.95
> to run on
> a Red Hat 6.0 i686-pc-linux-gnu system, with the binutils-990809
> snapshot and
> newlib-1.8.1 as my C library. They're all configured with:
>     --target=powerpc-linux --with-gnu-as --with-gnu-ld --with-newlib
> 
> The build of gcc-2.95 fails while building libio/iogetline.c with:
> ../../../../gcc-2.95/libio/libio.h:30: _G_config.h: No such file or
> directory
> 
> This is problem #1; Any ideas where gcc is supposed to find
> _G_config.h?
> 
> I notice at this point that all the compiler passes are built, so I
> installed
> gcc-2.95 (despite the above build error), and went ahead and built
> newlib-1.8.1
> in a spirit of persistance and international understanding.
> 
> newlib built and installed fine, but when I go to compile "hello
> world" with
> the resulting compiler, crt1.o is missing:
> bash$ powerpc-linux-gcc hello.c
> /home/elph/greyham/linux/ppc/tooldir/host/i686-pc-linux-gnu/powerpc-li
> nux/bin/ld: cannot open crt1.o: No such file or directory
> collect2: ld returned 1 exit status
> 
> This is problem #2; Where is crt1.o supposed to come from?
> newlib-1.8.1 builds crt0.o, and includes numerous crt1.c's, but no
> crt1.o
> gets built. Is this a configure problem with newlib, or am I going
> crazy?
> 
> And finally, an off-the-wall question #3 for the newlib crew:
> Is there any plan to add POSIX threads support to newlib?
> 
> Thanking you all very muchly,
> Graham
> 
> _______________________________________________
> New CrossGCC FAQ: http://www.objsw.com/CrossGCC
> _______________________________________________
> To remove yourself from the crossgcc list, send
> mail to crossgcc-request@cygnus.com with the
> text 'unsubscribe' (without the quotes) in the
> body of the message.
_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.


More information about the crossgcc mailing list