- To: niXman <i.nixman@xxxxxxxxx>
- Subject: Re: Trouble with building multilib GCC (MinGW)
- From: Ian Lance Taylor <iant@xxxxxxxxxx>
- Date: Tue, 13 Mar 2012 14:36:28 -0700
- Cc: gcc-help@xxxxxxxxxxx
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1332279442; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:From:To:Cc:Subject:References:Date:In-Reply-To: Message-ID:User-Agent:MIME-Version:Content-Type: Content-Transfer-Encoding:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=+ALAHwEEvTc+CWZlybMTluk0PEo=; b=JsoS4yh3FhWxqI/ vPmCjXXOymagrxSex8g572X8MPCCZGwyggO2FxrjBSITLBa62YDC7Plbr+voR12d 23izLUROMg4AsiuyyW24059je3c/yj9VRgKK+z5kIA1I2o3LZMESvyNiYN1MlwNv qbIzvt9K9FnqlC/MMpNYs2gkkWvA=
- In-reply-to: <CAMPTgK2AhLyh-mW8ELve34sWOKyG+BZvtx7SxHMeTv0uo7ENug@mail.gmail.com> (niXman's message of "Tue, 13 Mar 2012 15:05:08 +0400")
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
niXman <i.nixman@xxxxxxxxx> writes:
> 2012/3/12 Ian Lance Taylor <iant@xxxxxxxxxx>:
>>
>> To be honest I don't see that in the pastebin. The use of -m64 should
>> cause the multilib support to kick in, and in particular should cause
>> the gcc driver to add /../lib64 to the end of the -L paths. I guess
>> that is not happening, but I can't see it from the log.
>
> In the fourth line uccurs linking 64bit libgcc_s_sjlj-1.dll. In this
> you can see by searching for 'm64'. Also, in the fourth line you can
> see the path used to search for 64bit CRT, and make sure that the path
> is used only for 32bit CRT.
When I look at the fourth line of the pastebin link you posted earlier
(http://pastebin.com/KiGHVgVQ) I see an invocation of xgcc. I can not
see the path used to search for the crt file in that line. The -B and
-L options passed to xgcc are not the final search path. The final
search path is computed by the gcc driver by applying multilib
transformations to the -B and -L options. In order to see the actual
search path, you will need to run that exact command with the -v option.
>> gcc --print-multi-lib
> $ i686-w64-mingw32-gcc --print-multi-lib
> .;
> 64;@m64
>
>
>> gcc --print-multi-directory
> $ i686-w64-mingw32-gcc --print-multi-directory
> .
>
>
>> gcc --print-multi-directory -m32
> $ i686-w64-mingw32-gcc --print-multi-directory -m32
> .
>
>
>> gcc --print-multi-directory -m64
> $ i686-w64-mingw32-gcc --print-multi-directory -m64
> 64
Thanks. That all looks fine but I now realize that I need something
else. The output of:
gcc --print-multi-os-directory
gcc --print-multi-os-directory -m32
gcc --print-multi-os-directory -m64
Ian
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]