public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* default library search path for native *-w64-mingw32 builds is broken  somehow
@ 2009-07-20 19:25 Rainer Emrich
       [not found] ` <90baa01f0907201313u26e1e600vdeaf0fa25c7986ea@mail.gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Rainer Emrich @ 2009-07-20 19:25 UTC (permalink / raw)
  To: gcc; +Cc: ktietz70

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: default library search path for native *-w64-mingw32 builds is   broken somehow
       [not found]       ` <4A64FB33.8080002@emrich-ebersheim.de>
@ 2009-07-22 15:22         ` Rainer Emrich
  0 siblings, 0 replies; 2+ messages in thread
From: Rainer Emrich @ 2009-07-22 15:22 UTC (permalink / raw)
  To: Kai Tietz; +Cc: gcc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rainer Emrich schrieb:
> Rainer Emrich schrieb:
>> Kai Tietz schrieb:
>>> 2009/7/20 Kai Tietz <ktietz70@googlemail.com>:
>>>> 2009/7/20 Rainer Emrich <rainer@emrich-ebersheim.de>:
> 
>>> 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/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
>>>> Could you take a look on
>>>> http://mingw-w64.wiki.sourceforge.net/Answer+Multilib+Toolchain FAQ. I
>>>> think it could help you.
>>>>
>>>> Cheers,
>>>> Kai
>>>>
>>>> --
>>>> |  (\_/) This is Bunny. Copy and paste
>>>> | (='.'=) Bunny into your signature to help
>>>> | (")_(") him gain world domination
>>>>
>>> Does this patch solves your issue?
>>> Cheers,
>>> Kai
>> Thank you for your fast reply. To clearify, I have a cross setup from
>> i686-pc-mingw32. Building of the cross compilers is without any issues. I get
>> the failure only with the native ones build with this cross compilers. I know
>> the build instructions, the only point I missed is the junction in the
>> <sysroot>/x86_64-w64-mingw32 folder, lib64 pointing to lib.
> 
>> I will try yout patch, but I doubt that this will solve the issue because even
>> the <sysroot>\lib\gcc\x86_64-w64-mingw32\4.5.0\ directory isn't searched.
> <sysroot>\x86_64-w64-mingw32\lib isn't searched as well.
> As you see, my sysroot is c:\mingw\gcc\gcc-4.5.0\x86_64-w64-mingw32\mingw for
> the above example.
> What's strange are the differences between the "gcc -print-search-dirs" info and
> the actual search. For example the following path
> 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/;
> mentioned in the search dirs info and resolves to
> c:/mingw/gcc/gcc-4.5.0/x86_64-w64-mingw32/mingw/x86_64-w64-mingw32/lib/ which is
> <sysroot>/x86_64-w64-mingw32/lib/
> isn't searched at all even though all directories involved exist.
> 
>> Cheers,
>> Rainer

All caused by the broken driver. If build with -O0 there is no such issue.
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39356
I Think we should try to get this fixed asap.

Rainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpnLroACgkQoUhjsh59BL4tUACfUt3/mdiM8JcSohUY61vN6Ube
3iYAoMtPJJQXzhNdcfeezphwJGKRE2iX
=TSSS
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-22 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-20 19:25 default library search path for native *-w64-mingw32 builds is broken somehow Rainer Emrich
     [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

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