MSYS2 / Build faild on libs not found when using "eine/setup-msys2@v1" action
See original GitHub issueThe link below is the workflow we tested with “eine/setup-msys2@v1” action. https://github.com/ForksForTest/haven-offshore/actions/runs/131995709/workflow
After using the “eine/setup-msys2@v1” action to install some specified packages, in the “build Haven for windows x64” step, we always get the errors like as below from the logs:
-- Building internal libraries as static
-- MSYS location: D:/a
-- Could not find DATABASE in env (not required unless you want to change database type from default: lmdb)
-- Using LMDB as default DB type
-- looking for liblzma
-- Could not find libunwind (missing: LIBUNWIND_INCLUDE_DIR LIBUNWIND_LIBRARIES)
-- Stack trace on exception disabled
CMake Error at D:/a/_temp/msys/msys64/mingw64/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
-- Configuring incomplete, errors occurred!
See also "D:/a/haven-offshore/haven-offshore/monero/build/release/CMakeFiles/CMakeOutput.log".
D:/a/_temp/msys/msys64/mingw64/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
D:/a/_temp/msys/msys64/mingw64/share/cmake-3.17/Modules/FindOpenSSL.cmake:459 (find_package_handle_standard_args)
CMakeLists.txt:465 (find_package)
make: *** [Makefile:151: release-static-win64] Error 1
But, when we switch to use “eine/setup-msys2@v0” action, everything is OK, see the link below. https://github.com/ForksForTest/haven-offshore/actions/runs/131996395/workflow
You can see we did not changes anything except the version ref of the setup-msys2 action. and I found that, when executing “eine/setup-msys2@v1”, it only took less than 3 minutes, but “eine/setup-msys2@v0” took about 10 minutes with the settings.
I think there may be some issue on “eine/setup-msys2@v1” that cause some packages were not installed. This also can explain why it took a shot time to execute.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (1 by maintainers)
Top GitHub Comments
no idea, sorry. I never do static builds.
@goshiz I think I read something about the issue with static builds, which is related to the MSYS2 repos, not to this action. However, I can’t find it now. @lazka, any hint?