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

Rainer Emrich schrieb:
> Rainer Emrich schrieb:
>> Kai Tietz schrieb:
>>> 2009/7/20 Kai Tietz <ktiet...@googlemail.com>:
>>>> 2009/7/20 Rainer Emrich <rai...@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-----

Reply via email to