Web lists-archives.com

Re: [Mingw-users] I'm a newbie to MinGW. How Can I build MinGW from source?




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

On 26/02/17 10:40, firebird wrote:
> I'm building against mingwrt-5.0 preview.  I take the workaround and
> build the gcc compiler successfully.
> 
> I wanna DIY gcc compiler.

Well, you have that now; it's GNU/Linux hosted, and it builds binaries 
for deployment on 32-bit MS-Windows, (or 64-bit in 32-bit mode).

> I want to use MinGW to build window-hosted ARM toolchains.

Do they need to be Windows hosted?  Since your host is GNU/Linux, would 
Linux hosted ARM tools not be more useful to you?

> There are some known out-of-box tools or windows installer,

For which you would need a Windows host.  In your case, you could run 
a virtual machine, but that could turn out to be an order of magnitude 
slower than tools running natively on the GNU/Linux host.

> I think DIY at source level maybe more useful to me. At first, I need
> to learn how to build the compiler from scratch.

You've already done that.  Now you can use it to build applications 
which will run on Windows; invoke it as "mingw32-gcc" or "mingw32-g++", 
just as you would invoke "gcc" or "g++" to build applications to run on 
the GNU/Linux host.  If the source uses a GNU standard configure script, 
you configure as you would for a native Linux build, but you must add 
the "--build=unknown --host=mingw32" configuration options; if you 
are building tools to run on Windows, but generate ARM code, you 
probably also need "--target=arm", (or appropriate identifier).

In your position, I would be seeking to adapt the technique I've just 
used to build a Linux hosted compiler for the mingw32 target, to build 
Linux hosted tools for the ARM target.

- -- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJYssyhAAoJEMCtNsY0flo/tSkQAKufRXwSXksL0lf1jYTFAIgN
h+9eiifWTiQOUVrJThP/iMbAIOupKIOAIHtGsfqQXAVzgg4MyY3e4DfSPS2NKwAv
PQg1Wo0QKOGaDtOAVrmcvaHW/UbJGCSHyNryPYmjEp4P4zsXrBdPeGK/eqNxdA0j
XNHQ4f+O+c7rwFOBeqarBnKp7uglJlGNHrpSti8QIBwJWFFXxLgU2TRNkUGMPav9
RcM2mRWXwHLRRVAy6ZZb78pEgtXbCe6cKGhqd8DGbCM5NHGkiLvhymkw5F4iajjP
B4ZR2ucPPwSGuuSb9bc/E5qi9dF0NZqSJqDVPihVdeD22twVEqxRWx9d6X2PPQrc
3FuhJrVernY+7oLXiHysOS709H9WCPzuN+P0XZQKCYLIXoGs8MS7RksLAKNqRxYc
M4WNS9PpmQiuRf9rz01TBonLbP5YCQ8zbHEoOh+Vz9nk9jTf9NIot3A0inCKg7PV
VMcaDqX+BGdh2anh+TyCP0kyo8Oecr7lbkW6bG2L53msrEyvco55/HNeRMfOvJO9
40uLnQgJHfYn1CtVXx+6zRAFk0sinwRBkYXVKLjMVw0d72J26sSLR/c37xsiAxnH
DjrSLJx8lrUhS7ma+K7dYkTdp14tU5DacdBgBQ3j5jdEKaktnvQGohgnZ3CryIz7
qLdcbYvrJZibWENEfj4R
=GQrM
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe