Re: [Mingw-w64-public] host/build/target for multilib cross compiler

2012-03-05 Thread xunxun
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 i.nix...@gmail.com wrote:
 2012/3/5 niXman i.nix...@gmail.com:
 2012/3/5 JonY jo...@users.sourceforge.net:
 On 3/5/2012 13:22, niXman wrote:
 2012/3/5 JonY jo...@users.sourceforge.net:
 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
 Mingw-w64-public@lists.sourceforge.net
 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
 Mingw-w64-public@lists.sourceforge.net
 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
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] host/build/target for multilib cross compiler

2012-03-05 Thread JonY
On 3/5/2012 22:22, niXman wrote:
 2012/3/5 JonY jo...@users.sourceforge.net:
 On 3/5/2012 13:22, niXman wrote:
 2012/3/5 JonY jo...@users.sourceforge.net:
 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?

Yes, sort of, but I still sense something isn't shown, awfully light on
details.

Anyway, please use --enable-fully-dynamic-string for GCC, and make sure
to use sjlj instead of dw2.



signature.asc
Description: OpenPGP digital signature
--
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
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] host/build/target for multilib cross compiler

2012-03-05 Thread niXman
2012/3/5 JonY jo...@users.sourceforge.net:
 On 3/5/2012 22:22, niXman wrote:
 2012/3/5 JonY jo...@users.sourceforge.net:
 On 3/5/2012 13:22, niXman wrote:
 2012/3/5 JonY jo...@users.sourceforge.net:
 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?

 Yes, sort of, but I still sense something isn't shown, awfully light on
 details.

JonY, xunxun, so what kind of flags should I use?


 Anyway, please use --enable-fully-dynamic-string for GCC, and make sure
 to use sjlj instead of dw2.


 --
 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
 Mingw-w64-public@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mingw-w64-public




-- 
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
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] host/build/target for multilib cross compiler

2012-03-05 Thread xunxun
于 2012/3/5 22:58, niXman 写道:

 JonY, xunxun, so what kind of flags should I use?

That depends on which compiler you want to use now, and what OS you are 
on now.




-- 
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
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] host/build/target for multilib cross compiler

2012-03-05 Thread xunxun
于 2012/3/5 23:05, niXman 写道:
 2012/3/5 xunxunxunxun1...@gmail.com:
 于 2012/3/5 22:58, niXman 写道:

 JonY, xunxun, so what kind of flags should I use?

 That depends on which compiler you want to use now, and what OS you are on
 now.
 compiler - i686-pc-mingw32
 os - win7 x64
I think the process is:

1) binutils
--host=i686-pc-mingw32
--build=i686-pc-mingw32
--enable-targets=x86_64-w64-mingw32,i686-pc-mingw32
--enable-multilib

make install

2) build gcc but no libs
--host=i686-pc-mingw32
--build=i686-pc-mingw32
--enable-targets=all
--enable-multilib

make all-gcc
make install-gcc

3) build crt

--enable-lib32 --enable-lib64

4) build gcc
make








 --
 Best Regards,
 xunxun





-- 
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
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] host/build/target for multilib cross compiler

2012-03-05 Thread xunxun
于 2012/3/5 23:52, niXman 写道:
 2012/3/5 xunxunxunxun1...@gmail.com:
 于 2012/3/5 23:05, niXman 写道:

 2012/3/5 xunxunxunxun1...@gmail.com:
 于 2012/3/5 22:58, niXman 写道:

 JonY, xunxun, so what kind of flags should I use?

 That depends on which compiler you want to use now, and what OS you are
 on
 now.
 compiler - i686-pc-mingw32
 os - win7 x64
 I think the process is:

 1) binutils
 --host=i686-pc-mingw32
 --build=i686-pc-mingw32
 --enable-targets=x86_64-w64-mingw32,i686-pc-mingw32
 --enable-multilib

 make install

 2) build gcc but no libs
 --host=i686-pc-mingw32
 --build=i686-pc-mingw32
 --enable-targets=all
 --enable-multilib

 make all-gcc
 make install-gcc

 3) build crt

 --enable-lib32 --enable-lib64

 4) build gcc
 make
 Thanks a lot for your reply.
 Tell me please, what kind of flags should I use for building
 mingw-w64-headers and which symlinks create for them?
The headers are not the problem, because X86 and X64 use the same headers.
You can use --host=i696-pc-mingw32

Usally I don't use symlink on Windows, it can be very annoyed and may 
have some bugs on Windows and it may depend on your sysroot set.
Assume your predix is /mingw

You can copy your headers and libs to /mingw, /mingw/mingw, 
/mingw/targets.
They may be redundant, and you can try to make it sure when building ( 
if not finding some headers and libs, you can see relational config.log ).

Good luck!

 Thanks.






 --
 Best Regards,
 xunxun



 --
 Best Regards,
 xunxun





-- 
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
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] host/build/target for multilib cross compiler

2012-03-04 Thread niXman
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.

-- 
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
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] host/build/target for multilib cross compiler

2012-03-04 Thread JonY
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.



signature.asc
Description: OpenPGP digital signature
--
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
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] host/build/target for multilib cross compiler

2012-03-04 Thread niXman
2012/3/5 JonY jo...@users.sourceforge.net:
 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.



 --
 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
 Mingw-w64-public@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mingw-w64-public




-- 
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
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public