public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Cross compiler problem:  cannot find crt1.o
@ 2009-04-19 21:43 Vincent De Groote
  0 siblings, 0 replies; only message in thread
From: Vincent De Groote @ 2009-04-19 21:43 UTC (permalink / raw)
  To: crossgcc

Hello,

I try to build a toolchain for a i486-linux-gnu target, and I'm new to
cross compiling.
I'm running a i686-pc-cygwin system

I have built the following packages:

binutils-2.19.1:, compiled in a 'binutils' directory:

../../../sources/binutils/binutils-2.19.1/configure -C
--target=i486-linux-gnu --prefix=`pwd`/../tools
--exec-prefix=`pwd`/../tools --disable-nls -v
make all
make install

gcc-4.3.3, compiled in a 'gcc-bootstrap' directory:

../../../sources/gcc/gcc-4.3.3/configure -C --target=i486-linux-gnu
--prefix=`pwd`/../tools --exec-prefix=`pwd`/../tools
--enable-languages=c --disable-nls
make all-gcc
make install-gcc

glibc-2.9, with glibc-linuxthreads-2.3.6, compiled in a 'glibc' directory:

CC=../tools/bin/i486-linux-gnu-gcc.exe
CFLAGS=-I../kernel-include/linux-2.6.27/include
../../../sources/glibc-2.9/configure -C --host=i486-linux-gnu
--build=i686-pc-cygwin --prefix=`pwd`/../tools
--exec-prefix=`pwd`/../tools --enable-add-ons
--with-headers=../kernel-include/linux-2.6.27/include --disable-nls

The configuration fails with the error

running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... no
configure: error: forced unwind support is required

The unwind support fails because glibc configure script tries to compile
and link a small program testing for unwind support, and the link fails:

/cross-gcc/targets/i486-linux-gnu/tools/bin/../lib/gcc/i486-linux-gnu/4.3.3/../../../../i486-linux-gnu/bin/ld: 

crt1.o: No such file: No such file or directory

Where should this file crt1.o come from ?.  I know its a C runtime
startup file.  I guess that this is a target object file.

The http://gcc.gnu.org/install/build.html page, under the "Building a
cross compiler" section, tells that
      [It] Build runtime libraries using the compiler from the previous step

So I suppose the crt1.o object file should be located in those
libraries, but I cannot find them

Is there something missing or wrong somewhere ? Any help will be appreciated

Thanks for your time and your replies

Vincent De Groote






--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-19 21:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-19 21:43 Cross compiler problem: cannot find crt1.o Vincent De Groote

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).