Closed 7PintsOfCherryGarcia closed 1 year ago
Hey there,
what's your CMake version?
With newer versions, there should be a CMakeFiles/CMakeConfigureLog.yaml
file in the build directory, which should contain the actual error messages.
Internally, it is just checked whether #include <sdsl/version.hpp>
compiles; and the actual compile error should be in the CMakeConfigureLog.yaml
.
Hi,
what's your CMake version?
cmake version 3.20.2
No CMakeFiles/CMakeConfigureLog.yaml
only CMakeError.log
Looks like you are using the C compiler, instead of the C++ one.
(Log shows calls to /home/jmn549/.local/bin/clang
instead of /home/jmn549/.local/bin/clang++
)
Though this is a bit weird because it seems works for the configure steps before the error.
This depends a bit on how you configure the compilers:
Via CMake:
-DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc # If those point to the correct version
# or
-DCMAKE_CXX_COMPILER=/path/to/g++ -DCMAKE_C_COMPILER=/path/to/gcc # Full paths
# or
-DCMAKE_CXX_COMPILER=g++-12 -DCMAKE_C_COMPILER=gcc-12 # Executables might have version suffix
Env variable:
# Same as above, but as environment variables
export CC=gcc
export CXX=g++
Clang won't compile for 3.0.1
, only the main branch supports Clang (>=17).
If this doesn't help, can you show your command line calls for CMake and the full CMake output?
Looks like you are using the C compiler, instead of the C++ one. Though this is a bit weird because it seems works for the configure steps before the error
Indeed I had a lot of trouble with the way cmake was calling the compiler.
On top of that centOS comes with gcc 8.5.0 which is not supported by raptor. Could not make clang work for the life of me so had to compile the latest gcc and directed cmake to use my version of g++.
raptor is up and running.
Thanks for your help.
Platform
Description
Following steps:
cmake configuration fails asking for the SDSL library with the following message
Unfortunately can't use conda so really need to compile from source.