MSYS2 / Build faild on libs not found


I’m trying to build a C++ project on MSYS2 using :

My main.yml :

runs-on: windows-latest
- uses: eine/setup-msys2@v1
    msystem: MINGW64
    update: true
    install: mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi mingw-w64-x86_64-protobuf-c mingw-w64-x86_64-libusb git patch
- name: build for windows x64
  run: msys2 make release-static-win64 -j2

But I get an error :
– Could not find libunwind (missing: LIBUNWIND_INCLUDE_DIR LIBUNWIND_LIBRARIES)
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the

Just like if all the install was not done.

with eine/setup-msys2@v0 and manual msys2do pacman install it’s working fine.

but as soon as I use v1 it’s not working anymore.

Do you have an idea ?


I tested the “eine/setup-msys2@v1” action on my side, I did not see any error occurs, it seems that all the specified packages were installed.

If possible, please share your repository with us so that we can check more detailed configurations to analyze the root cause.

Hi @brightran,

Thanks for your answer, you can check the repo & the build here :

on the job “build windows”

I added an “env” command to get the environment variables and just see that I have 2 BOOST_ROOT_
but not BOOST_ROOT

It’s probably what’s wrong here.

I’m gonna force a pacman -R mingw-w64-x86_64-boost before installing the version I need.
It will probably set the BOOST_ROOT right.

And if not, I’m gonna set it manually.

No luck here.

Setting manually with
BOOST_ROOT: C:\hostedtoolcache\windows\Boost\1.69.0

Was the right move here.

I don’t understand why installing the package did not set the variables…

I have the same problem with OPENSSL:
installing mingw-w64-x86_64-openssl…

OpenSSL 1.1.1g 21 Apr 2020

2020-06-11T08:41:10.6246274Z Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
2020-06-11T08:41:10.6246652Z system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
2020-06-11T08:41:10.6246962Z OPENSSL_INCLUDE_DIR)

I forked your repository and tested it with v1 and v0 of the setup-msys2 action.
I found that, when executing v1, it only took less than 3 minutes, but v0 took about 10 minutes with the settings.
See the link below for the two workflow runs:

I think there may be some issue on v1 that cause some packages were not installed. This also can explain why it took a shot time to execute.

I have created an issue ticket (eine/setup-msys2#25) in the repository of this action to report this issue to the appropriate engineering team for further investigation and evaluation.
You can follow this issue ticket and add you comment on it.

thank you, it’s very nice of you to spend some time on my issue !

I will switch back to v0 for now and keep looking on the issue you just declared.

Thanks again !


You’re welcome.
And I will keep following the issue ticket until the problem is solved. I am also curious where the problem is.

1 Like