question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MSYS2 / Build faild on libs not found when using "eine/setup-msys2@v1" action

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lazkacommented, Mar 30, 2021

no idea, sorry. I never do static builds.

0reactions
einecommented, Mar 30, 2021

@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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

MSYS2-Installation
After installing or extracting MSYS2 you should start MSYS2 by executing msys2_shell.cmd. · Now you can update the base MSYS2 packages to their...
Read more >
lmingwex and lmingw32 not found in Msys2 - Stack Overflow
I am working with go version go1.19 windows/amd64 installed on MSYS2 MINGW64. On running command go build , I get following error:
Read more >
Install MSYS2 on Windows - Ripon Banik
MSYS is a build tool for Windows. ... MSYS2 could not be found. ... When I selected option 1, it failed with access...
Read more >
Make-based build fails on Windows with pre-existing MSYS2 ...
3/inplace/bin/ghc-stage1.exe' exited with an error: ghc-stage1.exe: could not detect mingw toolchain make[1]: *** [libraries/ghc-prim/ghc.mk:5: ...
Read more >
Windows MSYS2 Build Instructions Incomplete Windows 10
CMake Error: CMake was unable to find a build program corresponding to "MSYS Makefiles". CMAKE_MAKE_PROGRAM is not set.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found