Open ExpHP opened 3 years ago
Tried upgrading to cmake 3.20, as well as downgrading to cmake 3.8 (the lowest version that supports CXX17). No dice with either. (same error message)
Hmm, I'll take a look at this tomorrow. Doesn't totally surprise me that there are issues, since I didn't do the greatest job of pinning versions and CMake doesn't exactly make this easy.
Thanks. I also forgot to mention that I am on WSL 2.
(Which is a surprisingly reliable environment for linux, and has yet to present me with any unique challenges for building or installing anything with the exception of perf
. gcc -dumpmachine
identifies the target as x86_64-linux-gnu
)
Commands run
Versions
What happens
cmake generates a large number of warnings that look like this:
until finally the following occurs:
Full CMake output
Full cmake output
``` -- The CXX compiler identification is GNU 9.3.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so (found version "3.1") -- Found MPI: TRUE (found version "3.1") -- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: mpi serialization CMake Warning (dev) at deps/boost-mpi/CMakeLists.txt:24 (target_link_libraries): Policy CMP0079 is not set: target_link_libraries allows use with targets in other directories. Run "cmake --help-policy CMP0079" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target project-deps is not created in this directory. For compatibility with older versions of CMake, link library /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so will be looked up in the directory in which the target was created rather than in this calling directory. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at deps/boost-mpi/CMakeLists.txt:24 (target_link_libraries): Policy CMP0079 is not set: target_link_libraries allows use with targets in other directories. Run "cmake --help-policy CMP0079" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target project-deps is not created in this directory. For compatibility with older versions of CMake, link library /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so will be looked up in the directory in which the target was created rather than in this calling directory. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at deps/boost-mpi/CMakeLists.txt:24 (target_link_libraries): Policy CMP0079 is not set: target_link_libraries allows use with targets in other directories. Run "cmake --help-policy CMP0079" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target project-deps is not created in this directory. For compatibility with older versions of CMake, link library Boost::mpi will be looked up in the directory in which the target was created rather than in this calling directory. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at deps/boost-mpi/CMakeLists.txt:24 (target_link_libraries): Policy CMP0079 is not set: target_link_libraries allows use with targets in other directories. Run "cmake --help-policy CMP0079" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target project-deps is not created in this directory. For compatibility with older versions of CMake, link library Boost::serialization will be looked up in the directory in which the target was created rather than in this calling directory. This warning is for project developers. Use -Wno-dev to suppress it. Cloning into 'cxxopts-src'... Note: switching to 'v2.2.0'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -cFurther details
I'm not sure that the warnings are actually related to the final error; I tried adding
to the CMakeLists.txt and this eliminates most of the warnings, but not the Boost errors that prevent compilation.