CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCUDACompiler.cmake:46 (message): The CUDA compiler
“/usr/local/cuda-12.2/bin/nvcc”
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /tmp/catkin_ws/build/CMakeFiles/CMakeTmp
Run Build Command:“/usr/bin/make” “cmTC_07f27/fast”
/usr/bin/make -f CMakeFiles/cmTC_07f27.dir/build.make CMakeFiles/cmTC_07f27.dir/build
make[1]: Entering directory ‘/tmp/catkin_ws/build/CMakeFiles/CMakeTmp’
Building CUDA object CMakeFiles/cmTC_07f27.dir/main.cu.o
/usr/local/cuda-12.2/bin/nvcc -x cu -c /tmp/catkin_ws/build/CMakeFiles/CMakeTmp/main.cu -o CMakeFiles/cmTC_07f27.dir/main.cu.o
In file included from /usr/local/cuda-12.2/bin/…/targets/x86_64-linux/include/crt/common_functions.h:303:0,
from /usr/local/cuda-12.2/bin/…/targets/x86_64-linux/include/cuda_runtime.h:117,
from :0:
/usr/local/cuda-12.2/bin/…/targets/x86_64-linux/include/crt/math_functions.h:10551:10: fatal error: cmath: No such file or directory
#include
^~~~~~~
compilation terminated.
CMakeFiles/cmTC_07f27.dir/build.make:65: recipe for target ‘CMakeFiles/cmTC_07f27.dir/main.cu.o’ failed
make[1]: *** [CMakeFiles/cmTC_07f27.dir/main.cu.o] Error 1
make[1]: Leaving directory ‘/tmp/catkin_ws/build/CMakeFiles/CMakeTmp’
Makefile:126: recipe for target ‘cmTC_07f27/fast’ failed
make: *** [cmTC_07f27/fast] Error 2
CMake will not be able to correctly generate this project. Call Stack (most recent call first): autorally/autorally/autorally_control/src/path_integral/CMakeLists.txt:21 (enable_language)
-- Configuring incomplete, errors occurred! See also "/tmp/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/tmp/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed`Preformatted text````