Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolchain fails to build -- "Could NOT find OpenSSL ... (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)" #22258

Closed
HUNT3Rdotme opened this issue Dec 11, 2023 · 3 comments

Comments

@HUNT3Rdotme
Copy link

Running on an updated Ubuntu 22.04.3 via Windows 11 22H2 and WSL2, starting fresh, I get this trying to run Meta/serenity.sh rebuild-toolchain:

loading initial cache file /home/hunter/serenity/Toolchain/Build/cmake/Bootstrap.cmk/InitialCacheFlags.cmake
-- 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)
CMake Error at Utilities/cmcurl/CMakeLists.txt:608 (message):
  Could not find OpenSSL.  Install an OpenSSL development package or
  configure CMake with -DCMAKE_USE_OPENSSL=OFF to build without OpenSSL.


-- Configuring incomplete, errors occurred!
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------

Some Googling -- or in my case, DuckDuckGoing -- led me to a similar issue on the openssl_cmake repo, and I am in no way technically inclined to figure anything out in there beyond "try installing a package, maybe it's missing", which I already did anyway. Here's the link to my comment in particular, which also links to this issue.

@ADKaster
Copy link
Member

If you build or download CMake >= 3.25 yourself and put it in your PATH, the toolchain will not try to build its own CMake binary. On Ubuntu, you can get that from either apt.kitware.com as a deb or as a snap from https://snapcraft.io/cmake.

Not sure what's up with the cmake build error, but you might need to install libopenssl-dev ?

@ADKaster
Copy link
Member

Just to re-iterate: the build error you are receiving is from building cmake, not from building gcc, clang, binutils, or the code from this repo :)

@HUNT3Rdotme
Copy link
Author

HUNT3Rdotme commented Dec 11, 2023

@ADKaster

Just to re-iterate: the build error you are receiving is from building cmake, not from building gcc, clang, binutils, or the code from this repo :)

Whoops, forgot to bring that up beforehand! Thanks!

you might need to install libopenssl-dev ?

E: Unable to locate package libopenssl-dev

...so yeah that's out the window. 😅

On Ubuntu, you can get [Cmake >= 3.25] from ... apt.kitware.com as a deb....

Awesome! I'll try that now and report the results back.

Update: Kitware repo worked! Closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants