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
0
votes
1 answer
GeoIP C API build and patching error
I have been trying to build the api in (windows 7 64bit) with msys2 using x86_64-w64-mingw32 but i keep geting errors
note that this errors wont happen when i use 32bit nmake but i need to build it in 64bit using msys2 and x86_64-w64-mingw32
Please…

POQDavid
- 195
- 1
- 15
0
votes
1 answer
Installing Cargo on Windows with Rust from MSYS2
I've installed Rust on my Windows 7 64-bit system via MSYS2 successfully, but when trying to install Cargo from nightly build, I get the following error from install.sh:
$ ./install.sh
install: looking for install programs
install:
install: found…

andrey
- 1,515
- 5
- 23
- 39
0
votes
1 answer
POSIX regex functions required and missing
when i trying to compile an old c source code using msys2 this error happens:
"configure: error: POSIX regex functions required and missing!"
Please any idea? Is that a library that can be added or it's an error related to the code itself?

Reda
- 157
- 1
- 10
0
votes
1 answer
CMake not linking specifiied libraries
I'm working on a project hosted here: https://github.com/gtorrent
Right now, we're trying to implement better Windows support. The library itself (gtorrent-core) builds fine. However, whenever we link against it, there are many undefined references…

ragesalmon
- 627
- 1
- 5
- 10
0
votes
1 answer
how to install msys2 into base mingw directory
I was wondering if there is a way in MSYS2 to specify the base MinGW/MinGW64 directory?
In MSYS (i.e., MSYS-1), after installing MSYS, it knows that the directory structure is, e.g., /c/mingw/msys/..., and if you install a mingw package using…

thor
- 21,418
- 31
- 87
- 173
0
votes
2 answers
Compiling Ghostscript 9.10 using mingw
I am using msys2 Mingw (gcc 4.8.2 for i686 32-bit) for building Ghostscript 9.10. After running make, gs.exe was created successfully. Followed by that I ran "make so" for creating libgs library. Libgs.so, Libgs.so.9.10 were created which are of the…

arnknr
- 33
- 6
0
votes
1 answer
Compilation of cmake fails
When I try to compile cmake2.8.12.2 from sources on a MinGW MSYS2 system, I am getting the following error after running sh bootstrap:
make: No rule to make target '/cygdrive/e/software/pkg/cmake-2.8.12.2/Source
/cmStandardIncludes.cxx', needed by…

arnknr
- 33
- 6
-1
votes
0 answers
Printf output of application not showing up in windows11 cmd
I'm a bit puzzled about the behavior of the command line in Windows, but hopefully somebody can help me out.
I am not seeing any output of my application in the Windows command line. I tried start "" "myapplication.exe", and other options, to start…

JohnnyDG
- 1
- 1
-1
votes
0 answers
is it possible to build mono without cygwin?
i use MSYS2 to be compiling mono
i downloaded mono, download command:
git clone --recurse-submodules https://github.com/mono/mono.git -j16
mono configure the command ./autogen.sh --prefix=$PREFIX
make -j16
after which a compilation error…

serzh180
- 1
- 1
-1
votes
1 answer
Installing gcc and gdb via pacman Msys
I was installing gcc and gdb in my windows 64bit env but I face a network issue, then when I tried to run "pacman -S mingw-w64-x86_64-gdb" or "pacman -Syu" it shows :
screenshot
Any solutions?
I tried removing /var/lib/pacman/db.lck using comand "…

Mokh
- 1
-1
votes
1 answer
Error when trying to run .exe made with cmake
All goes well the the compiling cmake .. -G "MinGW Makefiles" and the "making" mingw32-make.exe. The problem arises when I try to run the exe - windows gives me this error message:
The procedure entry…

Cosmo
- 1
- 2
-1
votes
1 answer
UNDERFLOW keyword with gcc on MSYS2
I ran into some really weird problem with the compilation of a very simple code
typedef volatile struct _underflow_test
{
unsigned int OPERATION_MODE;
unsigned int UNDERFLOW;
} underflow_test;
This code fails to compile in MSYS2 using…

ilya1725
- 4,496
- 7
- 43
- 68
-1
votes
1 answer
Is std::clock() broken on MSYS2's g++ compiler?
I'm trying to write a simple single header benchmarker and I understand that std::clock will give me the time that a process (thread) is in actual use.
So, given the following simplified program:
nt main() {
using namespace…

Adrian
- 10,246
- 4
- 44
- 110
-1
votes
1 answer
cmake cannot find an existing directory on mingw64 (msys2)
I am trying to compile a project under MSYS2 and CLANG64 environment.
I have previously compiled dependencies in /usr/local.
$ ls /usr/local/include
boost compat-5.3.c cryptopp lauxlib.h libmongoc-1.0 lua.hpp luajit.h mongocxx …

Something Something
- 3,999
- 1
- 6
- 21
-1
votes
1 answer
How to fix ./configure in MSYS2?
I'm trying to build libxc-4.3.4 in an MSYS2 shell on Windows 10. I've installed the latest version of MSYS2 (msys2-x86_64-20220319.exe) and followed the installation instructions. I've installed build tools using
pacman -S --needed base-devel…