Try

gcc:
       --build=x86_64-w64-mingw32
       --host=i686-w64-mingw32
       --target=i686-w64-mingw32,x86_64-w64-mingw32
       --enable-targets=all

On Mon, Mar 5, 2012 at 10:34 PM, niXman <[email protected]> wrote:
> 2012/3/5 niXman <[email protected]>:
>> 2012/3/5 JonY <[email protected]>:
>>> On 3/5/2012 13:22, niXman wrote:
>>>> 2012/3/5 JonY <[email protected]>:
>>>>> On 3/5/2012 12:59, niXman wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I try to build multilib cross compiler for host=x86 and targets
>>>>>> x86/x86_64 (is it possible?) and get the errors on build crt/lib64
>>>>>> what say that 64 bit is not compiled in.
>>>>>> Tell me please which host/build/target I need to set for
>>>>>> binutils/gcc-c/gcc-c++/crt?
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>
>>>>> You should always post your build details, information such as
>>>>> host/build system triplet, binutils, gcc headers, and crt configure
>>>>> command. Even config.log postings will help.
>>>>>
>>>>> Its otherwise a bit hard to guess what you did wrongly.
>>>>
>>>> I have only one error: '64 bit not compiled in' when build crt/lib64.
>>>>
>>>> So I ask, what host/build/target I have to set for the binutils/gcc-c/crt?
>>>>
>>>> Thanks.
>>>>
>>>
>>> You haven't posted any information regarding the GCC/binutils you built,
>>> or the configure options you used for the CRT.
>>>
>>> For gcc and binutils, use --target=x86_64-w64-mingw32 --host=<triplet
>>> you want to use the toolchain on>. For CRT, use --build=<whatever you
>>> put in GCC --host> --host=<whatever you put in GCC --target>.
>> It's building right now...
>>
>> Did you understand me properly? I want to build MinGW for x86-host and
>> x86/x86_64 targets.
>>
>> binutils:
>>        --host=i686-pc-mingw32
>>        --target=x86_64-w64-mingw32
>>
>> gcc:
>>        --host=i686-pc-mingw32
>>        --target=x86_64-w64-mingw32
>>        --enable-targets=all
>>
>> CRT:
>>        --build=i686-pc-mingw32
>>        --host=x86_64-w64-mingw32
>>
>> Is it right?
>>
>
> Error on configure gcc:
>
>   configure: WARNING: you should use --build, --host, --target
>   checking build system type... Invalid configuration `build':
> machine `build' not recognized
>   configure: error: /bin/sh ../../mingw-src/gcc-4.6.3/config.sub build failed
>
>
>
>>>
>>> I would really encourage you to use the prebuilt Makefiles, or at least
>>> take a look at it instead of stumbling about blindly.
>> Didn't understand what did you talk about.
>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Try before you buy = See our experts in action!
>>> The most comprehensive online learning library for Microsoft developers
>>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>>> Metro Style Apps, more. Free future releases when you subscribe now!
>>> http://p.sf.net/sfu/learndevnow-dev2
>>> _______________________________________________
>>> Mingw-w64-public mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>>
>>
>>
>>
>> --
>> Regards,
>>   niXman
>
>
>
> --
> Regards,
>   niXman
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public



-- 
Best Regards,
xunxun

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to