mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] "crt2.o: No such file" when compiling gcc


From: Josh Faust
Subject: Re: [Mingw-cross-env-list] "crt2.o: No such file" when compiling gcc
Date: Tue, 28 Sep 2010 11:00:49 -0700

This didn't go through because of the attachment size.  I've attached a compressed version, which will hopefully be allowed.

Josh

On Tue, Sep 28, 2010 at 10:58 AM, Josh Faust <address@hidden> wrote:

What was the initial error?

Just the error that the first-level Makefile gives when it fails to build one of the targets:

[build]    gcc

Failed to build package gcc!
------------------------------------------------------------
make[3]: *** [all-gcc] Error 2
make[3]: Leaving directory `/wg/stor6_home3/jfaust/packages/mingw-cross-env-2.15/tmp-gcc/gcc-4.5.0.build'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/wg/stor6_home3/jfaust/packages/mingw-cross-env-2.15/tmp-gcc/gcc-4.5.0.build'
make[1]: *** [build-only-gcc] Error 2
make[1]: Leaving directory `/wg/stor6_home3/jfaust/packages/mingw-cross-env-2.15'
real 6m41.385s
user 2m59.790s
sys 1m45.540s
------------------------------------------------------------
[log]      /wg/stor6_home3/jfaust/packages/mingw-cross-env-2.15/log/gcc

make: *** [/wg/stor6_home3/jfaust/packages/mingw-cross-env-2.15/usr/installed/gcc] Error 1

 

[...]
> /usr/bin/ld: crt2.o: No such file: No such file or directory

It's part of the mingwrt package and it doesn't really make sense for
the native ld to be linking it. Can you send a copy of log/gcc?

Right, this is what's confusing me... if it were happening when trying to cross-compile some other code it would imply something isn't setup correctly, but the only crt2.o on my system is in <mingw-cross-env-root>/usr/i686-pc-mingw32/lib/crt2.o, and it's an "80386 COFF executable" (which google implies is a Windows format), not an ELF. I hadn't noticed that line about the log, it's attached.  

The one thing I noticed immediately looking through the log, from the initial configure:

checking for ar... /wg/stor6_home3/jfaust/packages/mingw-cross-env-2.15/usr/i686-pc-mingw32/bin/ar
checking for as... /wg/stor6_home3/jfaust/packages/mingw-cross-env-2.15/usr/i686-pc-mingw32/bin/as
checking for dlltool... /wg/stor6_home3/jfaust/packages/mingw-cross-env-2.15/usr/i686-pc-mingw32/bin/dlltool
checking for ld... /wg/stor6_home3/jfaust/packages/mingw-cross-env-2.15/usr/i686-pc-mingw32/bin/ld
checking for lipo... no
checking for i686-pc-mingw32-lipo... no
checking for nm... /wg/stor6_home3/jfaust/packages/mingw-cross-env-2.15/usr/i686-pc-mingw32/bin/nm
checking for objdump... /wg/stor6_home3/jfaust/packages/mingw-cross-env-2.15/usr/i686-pc-mingw32/bin/objdump
checking for ranlib... /wg/stor6_home3/jfaust/packages/mingw-cross-env-2.15/usr/i686-pc-mingw32/bin/ranlib
checking for strip... /wg/stor6_home3/jfaust/packages/mingw-cross-env-2.15/usr/i686-pc-mingw32/bin/strip

That may or may not be relevant, since the error specifically mentions /usr/bin/ld.

Josh

Attachment: gcc.gz
Description: GNU Zip compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]