newlib crt0.o problem: target=i386-elf host=i686-pc-cygwin
J. Johnston
jjohnstn@cygnus.com
Tue Nov 20 12:22:00 GMT 2001
"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
More information about the Newlib
mailing list