-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I try to build native i686-w64-mingw32 and x86_64-w64-mingw32 configurations.
I have working cross configurations for both and the on stage builds succeed
without issues. But the built compilers have broken default library search
pathes.
For the x86_64-w64-mingw32 case I have for the cross compiler:
$ x86_64-w64-mingw32-gcc -print-search-dirs
installiere:
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.5.0/
Programme:
=c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../libexec/gcc/x86_64-w64-mingw32/4.5.0/;
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../libexec/gcc/;
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/bin/x86_64-w64-mingw32/4.5.0/;
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/bin/
Bibliotheken:
=c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/;
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/;
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/x86_64-w64-mingw32/4.5.0/;
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/;
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/x86_64-w64-mingw32/4.5.0/;
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/;
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/;
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/
$ x86_64-w64-mingw32-gcc -Wl,--verbose -o test.exe test.o -lxyz
GNU ld (GNU Binutils) 2.19.51.20090719
Supported emulations:
i386pep
i386pe
using internal linker script:
==================================================
/* Default linker script, for normal executables */
OUTPUT_FORMAT(pei-x86-64)
SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");
SECTIONS
{
.
.
.
}
==================================================
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/crt2.o
succeeded
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/crt2.o
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/crtbegin.o
succeeded
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/crtbegin.o
attempt to open test.o succeeded
test.o
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/libxyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/xyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/libxyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/xyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0\libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/libxyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/xyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/libxyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/xyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc\libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/libxyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/xyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/libxyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/xyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64\libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/libxyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/xyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/libxyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/xyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64\libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/libxyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/xyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/libxyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/xyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib\libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/libxyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/xyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/libxyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/xyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64\libxyz.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/libxyz.dll.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/xyz.dll.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/libxyz.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/xyz.lib
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/libxyz.dll
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/xyz.dll
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib\libxyz.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/libxyz.dll.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/xyz.dll.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/libxyz.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/xyz.lib
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/libxyz.dll
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/xyz.dll
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib\libxyz.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/libxyz.dll.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/xyz.dll.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/libxyz.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/xyz.lib
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/libxyz.dll
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/xyz.dll
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib\libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/libxyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/xyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/libxyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/xyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0\xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/libxyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/xyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/libxyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/xyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc\xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/libxyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/xyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/libxyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/xyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64\xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/libxyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/xyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/libxyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/xyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64\xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/libxyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/xyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/libxyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/xyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib\xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/libxyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/xyz.dll.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/libxyz.a
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/xyz.lib
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/libxyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/xyz.dll
failed
attempt to open
c:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64\xyz.lib
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/libxyz.dll.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/xyz.dll.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/libxyz.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/xyz.lib
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/libxyz.dll
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/xyz.dll
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib\xyz.lib
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/libxyz.dll.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/xyz.dll.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/libxyz.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/xyz.lib
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/libxyz.dll
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/xyz.dll
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib\xyz.lib
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/libxyz.dll.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/xyz.dll.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/libxyz.a
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/xyz.lib
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/libxyz.dll
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/xyz.dll
failed
attempt to open
c:\mingw\cross-gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib\xyz.lib
failedc:/mingw/cross-gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot find -lxyz
collect2: ld gab 1 als Ende-Status zurück
For the native compiler I get:
$ x86_64-w64-mingw32-gcc -print-search-dirs
installiere:
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.5.0/
Programme:
=c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../libexec/gcc/x86_64-w64-mingw32/4.5.0/;
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../libexec/gcc/;/usr/libexec/gcc/x86_64-w64-mingw32/4.5.0/;
/usr/libexec/gcc/x86_64-w64-mingw32/;
/usr/lib/gcc/x86_64-w64-mingw32/4.5.0/;
/usr/lib/gcc/x86_64-w64-mingw32/;
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/bin/x86_64-w64-mingw32/4.5.0/;
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/bin/
Bibliotheken:
=c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/;
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/;
/usr/lib/gcc/x86_64-w64-mingw32/4.5.0/;
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/x86_64-w64-mingw32/4.5.0/;
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/../lib64/;
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../x86_64-w64-mingw32/4.5.0/;
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../lib64/;
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/x86_64-w64-mingw32/4.5.0/;
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/../lib64/;
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/;
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../;
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../../mingw/mingw/lib64/
$ x86_64-w64-mingw32-gcc -Wl,--verbose -o test.exe test.o -lxyz
GNU ld (GNU Binutils) 2.19.51.20090719
Supported emulations:
i386pep
i386pe
using internal linker script:
==================================================
/* Default linker script, for normal executables */
OUTPUT_FORMAT(pei-x86-64)
SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");
SECTIONS
{
.
.
.
}
==================================================
attempt to open
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/crt2.o
succeeded
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/crt2.o
attempt to open
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/crtbegin.o
succeeded
c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/lib/crtbegin.o
attempt to open test.o succeeded
test.o
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/libxyz.dll.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/xyz.dll.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/libxyz.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/xyz.lib
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/libxyz.dll
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/xyz.dll
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib\libxyz.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/libxyz.dll.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/xyz.dll.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/libxyz.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/xyz.lib
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/libxyz.dll
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/xyz.dll
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib\libxyz.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/libxyz.dll.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/xyz.dll.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/libxyz.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/xyz.lib
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/libxyz.dll
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/xyz.dll
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib\libxyz.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/libxyz.dll.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/xyz.dll.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/libxyz.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/xyz.lib
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/libxyz.dll
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib/xyz.dll
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/local/lib\xyz.lib
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/libxyz.dll.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/xyz.dll.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/libxyz.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/xyz.lib
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/libxyz.dll
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib/xyz.dll
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/lib\xyz.lib
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/libxyz.dll.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/xyz.dll.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/libxyz.a
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/xyz.lib
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/libxyz.dll
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib/xyz.dll
failed
attempt to open
c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin\../../mingw/usr/lib\xyz.lib
failedC:\MinGW\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw\bin/ld.exe: cannot find
-lxyz
collect2: ld gab 1 als Ende-Status zurück
So, there's a strange difference between the search path information and the
actually searched directories for the native bild. None of the gcc internal and
sysroot directories are searched. The same is true for a i686-w64-mingw32 build.
An attempt to do a three stage bootstrap fails for the same reason at configure
time of libgcc in stage 1.
Any idea?
Rainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkpkxJwACgkQoUhjsh59BL4txQCffe3zRwMkbdOdlSlMaNloslJj
SNMAn0CbwvyyPC1ydU1rYjQkGD9YuSwl
=aZvE
-----END PGP SIGNATURE-----