MSYS2 is a modern rewrite of MSYS, both of which are Cygwin (POSIX compatibility layer) forks with the aim of better interoperability with native Windows software. It aims to provide support to facilitate using the bash shell, Autotools, revision control systems and the like for building native Windows applications using MinGW-w64 toolchains. It comes with a port of ArchLinux's Pacman package manager. Three repos are provided with over 1000 packages.
Questions tagged [msys2]
978 questions
10
votes
5 answers
Non-localized version of MinGW/MSYS2?
Is there a way to download MinGW/MSYS2 with gcc, that is not localized?
Localized gcc causes all warnings to become errors in CodeBlocks, if the system language is not English.
This bug is also reported…

x squared
- 3,173
- 1
- 26
- 41
10
votes
1 answer
msys2 and docker run specifying the command: looks for the command locally before running in docker
Within msys2, anytime I try to execute a docker run [image] [cmd] command such that I'm trying to run in the docker container overwrites the command specified in the Dockerfile, it looks for the command locally and fails if it doesn't exist.
For…

Robert Hickman
- 997
- 1
- 11
- 22
10
votes
2 answers
collect2.exe: error: ld returned 5 exit status
I've recently updated all msys2 packages and now I can't build my project.
The error occurs at the moment of linking one of .dlls - target_library.dll.
The error message isn't clear to me. What does status 5 mean?
collect2.exe: error: ld returned 5…

Andrei Smeltsov
- 528
- 6
- 14
10
votes
1 answer
Use Go lang with MSYS2
I want to use Go, the programming language on Windows using MSYS2.
Which package should I use and how to avoid errors like:
package bufio: unrecognized import path "bufio"
package bytes: unrecognized import path "bytes"
package crypto: unrecognized…

qwertzguy
- 15,699
- 9
- 63
- 66
10
votes
3 answers
Some main commands not found in MSYS2 after update-core
Issue
Some main commands not found in MSYS2 after update-core.
Environment
Windows 8.1 64bit
msys2-x86_64-20150916
Detail
I introduced MSYS2 to my computer and performed update-core. However, after the update, when I type pacman or update-core,…

dixhom
- 2,419
- 4
- 20
- 36
10
votes
2 answers
binutils build fails because of pex-unix file
I want to cross-compile GCC. I am using MSYS2 as a shell, and mingw-w64 as the compiler.
I have downloaded binutils-2.25 and I configure with:
../binutils/./configure --target=sh3eb-elf --prefix=C:/tempinstall/ --disable-nls
I get an error when I…

Intelligide
- 279
- 2
- 14
9
votes
1 answer
gprof producing no output for a program that takes reasonable time to execute
I know that similar questions have been asked before, but:
In regards to gprof produces empty output I am using GCC 10.2.0 from MSYS2 on Windows 10, i.e. it's a MingW64 distribution. I have also added -no-pie to the linker arguments with no results…

NeomerArcana
- 1,978
- 3
- 23
- 50
9
votes
3 answers
msys2 doesn't find mingw64
I downloaded:
https://mingw-w64.org/doku.php/download/mingw-builds
https://mingw-w64.org/doku.php/download/msys2
and installed them under C:/development/msys64. Under this folder I find the msys2.exe and the mingw64 folder, which in turn contains…

Mark
- 4,338
- 7
- 58
- 120
9
votes
1 answer
How to install GTK3 and minGW on Windows using MSYS2
I am a big fan of C and I just finished reading "C Programming Langauge 2nd Edition". I must admit it was a great book and I learned a lot of stuff. But the thing is, until now I was just making console apps, so I want to move on and create some GUI…

user3885884
- 415
- 3
- 6
- 13
8
votes
2 answers
Issue while installing Postal (Address Parser ) package of python
I am trying to install postal package using
pip install postal
I am following the steps mentioned in link
https://github.com/openvenues/libpostal#installation-windows
I have installed Visual Studio 2019 C++ Build Tools, MSYS2 and performed the…

Kumar
- 125
- 1
- 9
8
votes
1 answer
msys2/mingw64: pip: VC 6.0 is not supported by this module
I try to install a package in Windows 10 (mingw64) and get this error:
IEUser@MSEDGEWIN10 MINGW64 /c/Users/IEUser/PycharmProjects/myapp_msi-msys/myapp_msi
$ pip install -e…

guettli
- 25,042
- 81
- 346
- 663
8
votes
1 answer
How to install Python Development tools on MSYS2
I need to install the Python development tools on MSYS2.
My Python installation works (by either calling python3.6 or python3:
$ python3.6
Python 3.6.5 (default, Apr 16 2018, 10:17:38) [GCC 7.3.0 64 bit (AMD64)] on win32
Type "help", "copyright",…

Xantium
- 11,201
- 10
- 62
- 89
8
votes
2 answers
MSYS2 pip install numpy failed
I am new to MSYS2, so I tried to install numpy using pip (mingw-w64-x86_64-python3-pip-9.0.1-3), but the the installation is failed. Here is the output:
(...)
C compiler: x86_64-pc-msys-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3…

XDimension0x
- 131
- 1
- 4
8
votes
0 answers
How to do "first login" style things via WinRM
So I'm working on a Chef cookbook for Windows, meaning it is generally executed on a Windows Server instance (2012r2 in this case). Specifically I am installing MSYS2 which uses Cygwin under the hood. I noticed that package installs were very slow…

coderanger
- 52,400
- 4
- 52
- 75
8
votes
1 answer
Target not found: mingw-w64-x86_64-flickcurl
I'm using MSYS2, and I was expecting to be able to install flickcurl.
I tried installing as follows, but it seems that it can't find the file.
$ pacman -S mingw-w64-x86_64-flickcurl
error: target not found: mingw-w64-x86_64-flickcurl
Am I missing…

Cullub
- 2,901
- 3
- 30
- 47