40

I decided to try CLion for Windows, which recommends either MinGW or Cygwin for compilation.

I installed the MSYS2 package manager into the default folder, C:\msys64, updated it by running update-core and pacman -Su.

I then downloaded the MinGW64 package using pacman -S mingw-w64-x86_64-gcc, which has been placed into C:\msys64\mingw64.

The problem is, pacman -S mingw-w64-x86_64-gcc currently downloads the version 5.0, which is not yet supported by CLion.

Does MSYS2 support installing older versions of packages (the MinGW version 4.9.2 should work just fine)? I tried searching for the MinGW packages using pacman -Ss mingw, but the list is incredibly long and as I haven't worked with MinGW before, I really do not know what to choose.

1 Answer 1

50

No, MSYS2 does not directly support installing old versions of packages. Here are some things you can do though:

GCC is one of the harder packages to build and work with so it might be difficult for you to compile it from source. Also beware that the C++ ABI changed between GCC 4 and 5 or something like that, so binaries you build with the old GCC might not work with any of the MSYS2 C++ shared libraries compiled with GCC 5.

2
  • 3
    This is actually a great solution, because it turns out "eventually" has a really long tail. MSYS2 is on ImageMagick 7.0.8 (ImageMagick 7 still isn't compatible with anything, really), but repo.msys2.org/mingw/x86_64 still contains mingw-w64-imagemagick builds going all the way back to June 2015!
    – FeRD
    Commented Apr 18, 2019 at 15:03
  • Is there any way to get mingw version 9.3.0 or older?
    – rboy
    Commented Mar 28 at 19:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.