AutoRally / autorally

Software for the AutoRally platform
http://autorally.github.io
738 stars 229 forks source link

Compilation error of path integral CUDA files #70

Closed nolanwagener closed 6 years ago

nolanwagener commented 6 years ago

I am running into the following error when running catkin_make for the autorally package:

CMake Error at path_integral_bf_generated_path_integral_main.cu.o.Release.cmake:215 (message):
  Error generating
  /home/nolan/catkin_ws/build/autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_bf.dir//./path_integral_bf_generated_path_integral_main.cu.o

autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_bf.dir/build.make:63: recipe for target 'autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_bf.dir/path_integral_bf_generated_path_integral_main.cu.o' failed
make[2]: *** [autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_bf.dir/path_integral_bf_generated_path_integral_main.cu.o] Error 1
CMakeFiles/Makefile2:7553: recipe for target 'autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_bf.dir/all' failed
make[1]: *** [autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_bf.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMake Error at path_integral_nn_generated_path_integral_main.cu.o.Release.cmake:215 (message):
  Error generating
  /home/nolan/catkin_ws/build/autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_nn.dir//./path_integral_nn_generated_path_integral_main.cu.o

autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_nn.dir/build.make:70: recipe for target 'autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_nn.dir/path_integral_nn_generated_path_integral_main.cu.o' failed
make[2]: *** [autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_nn.dir/path_integral_nn_generated_path_integral_main.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMake Error at path_integral_bf_generated_path_integral_main.cu.o.Release.cmake:215 (message):
  Error generating
  /home/nolan/catkin_ws/build/autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_bf.dir//./path_integral_bf_generated_path_integral_main.cu.o

autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_nn.dir/build.make:63: recipe for target 'autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_bf.dir/path_integral_bf_generated_path_integral_main.cu.o' failed
make[2]: *** [autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_bf.dir/path_integral_bf_generated_path_integral_main.cu.o] Error 1
CMakeFiles/Makefile2:7634: recipe for target 'autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_nn.dir/all' failed
make[1]: *** [autorally/autorally_control/src/path_integral/CMakeFiles/path_integral_nn.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

This same error appears whether I am in a conda environment (using either cmake 3.5.0 or 3.12.0) or outside of a conda environment (using cmake 3.5.2).

nolanwagener commented 6 years ago

I removed the build and devel folders and re-ran catkin_make. I now get the following error:

/home/nolan/catkin_ws/src/autorally/autorally_control/src/path_integral/path_integral_main.cu(81): error: identifier "DynamicsModel" is undefined
/home/nolan/catkin_ws/src/autorally/autorally_control/src/path_integral/path_integral_main.cu(81): error: identifier "MPPI_NUM_ROLLOUTS__" is undefined
/home/nolan/catkin_ws/src/autorally/autorally_control/src/path_integral/path_integral_main.cu(81): error: identifier "BLOCKSIZE_X" is undefined
/home/nolan/catkin_ws/src/autorally/autorally_control/src/path_integral/path_integral_main.cu(81): error: identifier "BLOCKSIZE_Y" is undefined
/home/nolan/catkin_ws/src/autorally/autorally_control/src/path_integral/path_integral_main.cu(97): error: identifier "DynamicsModel" is undefined
/home/nolan/catkin_ws/src/autorally/autorally_control/src/path_integral/path_integral_main.cu(97): error: identifier "model" is undefined
/home/nolan/catkin_ws/src/autorally/autorally_control/src/path_integral/path_integral_main.cu(97): error: expected a type specifier
/home/nolan/catkin_ws/src/autorally/autorally_control/src/path_integral/path_integral_main.cu(81): error: identifier "DynamicsModel" is undefined
/home/nolan/catkin_ws/src/autorally/autorally_control/src/path_integral/path_integral_main.cu(81): error: identifier "MPPI_NUM_ROLLOUTS__" is undefined
/home/nolan/catkin_ws/src/autorally/autorally_control/src/path_integral/path_integral_main.cu(81): error: identifier "BLOCKSIZE_X" is undefined
/home/nolan/catkin_ws/src/autorally/autorally_control/src/path_integral/path_integral_main.cu(81): error: identifier "BLOCKSIZE_Y" is undefined
nolanwagener commented 6 years ago

Using an older version of cmake (3.5.0 in my case) fixed the issue. Closing issue.