This is the mail archive of the
mailing list for the newlib project.
powerpc-linux cross gcc-2.95 with newlib-1.8.1 missing crt1.o
- To: firstname.lastname@example.org
- Subject: powerpc-linux cross gcc-2.95 with newlib-1.8.1 missing crt1.o
- From: email@example.com (Graham Stoney)
- Date: Thu, 12 Aug 1999 15:39:49 +1000 (EST)
- Cc: firstname.lastname@example.org
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-linux/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,