This successfully builds the “initial CMake” which is then automatically run. Somewhere along the build I get this error about missing OpenSSL:
-- 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:587 (message):
Could not find OpenSSL. Install an OpenSSL development package or
configure CMake with -DCMAKE_USE_OPENSSL=OFF to build without OpenSSL.
There’s no way to pass -DCMAKE_USE_OPENSSL=OFF to the bootstrap script, so I manually invoke the “initial CMake” with the aforementioned flag:
./Bootstrap.cmk/cmake -DCMAKE_USE_OPENSSL=OFF .
The build continues then I get another error:
-- Looking for a Fortran compiler - NOTFOUND
That’s strange. I review the readme but there’s no mention of a Fortran compiler, only a C++ one… Is that an error in the documentation or did I do something wrong?
-- Looking for a Fortran compiler - NOTFOUND
-- Configuring incomplete, errors occurred!
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
Do you mean -fno-sanitize=undefined -fno-sanitize-trap=undefined ? These flags do turn off UBsan, which is on by default and prevents even the initial CMake from being built… I only added them to the bootstrap command though, maybe they’re not getting passed to the initial CMake?
Is it possible to see the full compiler error message that occurs during try_compile?
CMakeFiles/*.yaml has info (I can’t remember the name…CMakeConfigure.yaml?), but --debug-trycompile passed to the configure will leave the try_compile trees around for investigation.
It turned out to be a linker issue; cc was symlinked to ld so it wasn’t working properly. Once that was fixed CMake built without issues (at least I hope so!)