public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Rainer Emrich <rainer@emrich-ebersheim.de>
To: gcc@gcc.gnu.org
Cc: ktietz70@googlemail.com
Subject: default library search path for native *-w64-mingw32 builds is broken  somehow
Date: Mon, 20 Jul 2009 19:25:00 -0000	[thread overview]
Message-ID: <4A64C49C.8060302@emrich-ebersheim.de> (raw)

-----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-----

             reply	other threads:[~2009-07-20 19:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-20 19:25 Rainer Emrich [this message]
     [not found] ` <90baa01f0907201313u26e1e600vdeaf0fa25c7986ea@mail.gmail.com>
     [not found]   ` <90baa01f0907201339p1aed81f2u4ce2e10807f832e6@mail.gmail.com>
     [not found]     ` <4A64F056.6000209@emrich-ebersheim.de>
     [not found]       ` <4A64FB33.8080002@emrich-ebersheim.de>
2009-07-22 15:22         ` Rainer Emrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A64C49C.8060302@emrich-ebersheim.de \
    --to=rainer@emrich-ebersheim.de \
    --cc=gcc@gcc.gnu.org \
    --cc=ktietz70@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).