Discussion:
[Msys2-users] installing 32 bit toolchain
Stephen Leake
2014-09-07 18:36:35 UTC
Permalink
I'm trying to build Emacs in msys2.

I have built monotone, so I'm somewhat familiar with the general
process.

However, I built monotone using the 64 bit toolchain. Emacs doesn't
support 64 bit (yet?), so I need a 32 bit toolchain.

I've installed both Msys 64 bit and Msys 32 bit just today, from scratch
(I did not attempt to preserve my previous installation).

After installing msys, the first step for installing the 64 bit toolchain is:

$ pacman -S mingw-w64-x86_64-toolchain

I can't find an equivalent package for 32 bit, in either the msys 64 bit
install, or the msys 32 bit install. I must be missing something?
--
-- Stephe
Alexey Pavlov
2014-09-07 18:54:50 UTC
Permalink
Post by Stephen Leake
I'm trying to build Emacs in msys2.
I have built monotone, so I'm somewhat familiar with the general
process.
However, I built monotone using the 64 bit toolchain. Emacs doesn't
support 64 bit (yet?), so I need a 32 bit toolchain.
I've installed both Msys 64 bit and Msys 32 bit just today, from scratch
(I did not attempt to preserve my previous installation).
You can have only one MSYS installation.
Post by Stephen Leake
$ pacman -S mingw-w64-x86_64-toolchain
mingw-w64-i686-toolchain
Post by Stephen Leake
I can't find an equivalent package for 32 bit, in either the msys 64 bit
install, or the msys 32 bit install. I must be missing something?
Both MSYS have the same set of packages for mingw.


Regards,
Alexey.
Post by Stephen Leake
--
-- Stephe
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Msys2-users mailing list
https://lists.sourceforge.net/lists/listinfo/msys2-users
Stephen Leake
2014-09-07 20:29:26 UTC
Permalink
Post by Alexey Pavlov
Post by Stephen Leake
I've installed both Msys 64 bit and Msys 32 bit just today, from scratch
(I did not attempt to preserve my previous installation).
You can have only one MSYS installation.
Why?

The installer didn't complain, and they have different root directories.

I think I understand why I don't _need_ both (I can install 32 and 64
bit toolchains in msys 64), but it is simpler to keep track of whether
I'm doing 32 or 64 bit compiles if they are completely separate.
--
-- Stephe
Alexpux
2014-09-07 21:03:35 UTC
Permalink
Post by Stephen Leake
Post by Alexey Pavlov
Post by Stephen Leake
I've installed both Msys 64 bit and Msys 32 bit just today, from scratch
(I did not attempt to preserve my previous installation).
You can have only one MSYS installation.
Why?
The installer didn't complain, and they have different root directories.
I think I understand why I don't _need_ both (I can install 32 and 64
bit toolchains in msys 64), but it is simpler to keep track of whether
I'm doing 32 or 64 bit compiles if they are completely separate.
You have separate compiles with one MSYS2 installation.
One in /mingw32 and one in /mingw64
Post by Stephen Leake
--
-- Stephe
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Msys2-users mailing list
https://lists.sourceforge.net/lists/listinfo/msys2-users
Renato Silva
2014-09-07 21:24:52 UTC
Permalink
​

He probably means there is no sense in such a duplication. To clarify:

-

The 32-bit installer is for Windows 32-bit.
-

The 64-bit installer is for Windows 64-bit (it will fail in Windows
32-bit, for example).
-

Once you have installed MSYS2 according to your OS bitness above, you
proceed to developing:
-

32-bit applications by installing mingw-w64-i686-gcc, if your Windows
is either 32/64-bit.
-

64-bit applications by installing mingw-w64-x86_64-gcc, if your
Windows is 64-bit.
-

You switch between the compilers by using:
- mingw32_shell.bat for the 32-bit gcc.
- mingw64_shell.bat for the 64-bit gcc.

A few notes:

- Both 32/64-bit packages reside on the same MSYS2 installation.
- You don’t need a duplicated MSYS2 installation for differentiating
between the environments, just check the $MSYSTEM variable or the
terminal title.
- ​
​
​The mingw-w64​​ prefix just tells that this is a MinGW package rather
than MSYS (these have no prefix).

Did I explain it correctly, Alexey?
​
Post by Stephen Leake
Post by Alexey Pavlov
Post by Stephen Leake
I've installed both Msys 64 bit and Msys 32 bit just today, from scratch
(I did not attempt to preserve my previous installation).
You can have only one MSYS installation.
Why?
The installer didn't complain, and they have different root directories.
I think I understand why I don't _need_ both (I can install 32 and 64
bit toolchains in msys 64), but it is simpler to keep track of whether
I'm doing 32 or 64 bit compiles if they are completely separate.
--
-- Stephe
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Msys2-users mailing list
https://lists.sourceforge.net/lists/listinfo/msys2-users
Stephen Leake
2014-09-07 18:41:06 UTC
Permalink
Post by Stephen Leake
I can't find an equivalent package for 32 bit, in either the msys 64 bit
install, or the msys 32 bit install. I must be missing something?
And of course, I immediately looked again, and found it:
mingw-w64-i686-toolchain

It was the "w64" in there that threw me off the first time.

Thanks for a great system!
--
-- Stephe
Óscar Fuentes
2014-09-07 19:11:24 UTC
Permalink
Post by Stephen Leake
I'm trying to build Emacs in msys2.
I have built monotone, so I'm somewhat familiar with the general
process.
However, I built monotone using the 64 bit toolchain. Emacs doesn't
support 64 bit (yet?), so I need a 32 bit toolchain.
Emacs from bzr (or from the git mirror) supports 64 bit Windows. It is
a relatively recent development, so expect some rough edges. If you want
stability, stick to the 32 bit build.
Loading...