This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: newlib crt0.o problem: target=i386-elf host=i686-pc-cygwin
- From: "J. Johnston" <jjohnstn at cygnus dot com>
- To: "Eissa, Mohamed" <mohamed dot eissa at intel dot com>
- Cc: "'newlib at sourceware dot cygnus dot com'" <newlib at sourceware dot cygnus dot com>
- Date: Tue, 20 Nov 2001 15:22:06 -0500
- Subject: Re: newlib crt0.o problem: target=i386-elf host=i686-pc-cygwin
- Organization: Red Hat Inc.
- References: <6549284BE680D511815C0002A50A67770D1348@hdsmsx102.hd.intel.com>
"Eissa, Mohamed" wrote:
>
> Sorry for resending this but, I didn't get any further. If anyone can help
> me, I truly appreciate it.
>
> Mohamed
Mohamed,
According to the information below, you want to build for a pc-linux platform.
You should be specifying i686-pc-linux-gnu as your target, rather than i386-elf.
For i386-elf, a crt0 is only supplied for the Cygmon monitor. It is linked
in via the -Tcygmon.ld option.
- Jeff J.
> -----Original Message-----
> From: Eissa, Mohamed [mailto:mohamed.eissa@intel.com]
> Sent: Friday, November 16, 2001 12:05 PM
> To: 'newlib@sourceware.cygnus.com'
> Subject: newlib crt0.o problem: target=i386-elf host=i686-pc-cygwin
>
> Hi all,
>
> I used these lines to build newlib-1.9.0 on a windows/cygwin host to target
> a pc-linux platform:
>
> $ ./configure --target=i386-elf --prefix=/tools
> --exec-prefix=/tools/H-i686-pc-cygwin -v 2>&1 | tee configure.out
> (note: I also built the binutils-2.11.2 and the gcc cross-compiler for
> i386-elf target using the same options and they went fine )
>
> $ make all install
>
> Here are the output of this process:
> cygmon-crt0.o
> cygmon.ld
> libcygmon.a
> libnosys.a
>
> After that, I tried to build a "hello" application and I got this error:
>
> $ i386-elf-gcc hello.c -o hello
>
> /tools/H-i686-pc-cygwin/i386-elf/bin/ld: cannot open crt0.o: No such file or
> directory
> collect2: ld returned 1 exit status
>
> Of course the crt0.o is missing, the question is what did I do wrong while
> building newlib-1.9.0.
>
> Can anybody please help me out? or at least can some one point to a
> documentation on how to build a development environment for my host and
> target?
>
> Thank you in advance!
>
> Mohamed