Build failed in Jenkins for cuda cmake error

asked 2017-05-17 11:55:03 -0500

emosion gravatar image

Recently I submitted a package to ros indigo, but received failure report as following:

==> Processing catkin package: 'tensor_field_nav_core' ==> Creating build directory: 'build_isolated/tensor_field_nav_core' ==> Building with env: '/tmp/catkin_workspace/install_isolated/env.sh' ==> cmake /tmp/catkin_workspace/src/tensor_field_nav/tensor_field_nav_core -DCATKIN_DEVEL_PREFIX=/tmp/catkin_workspace/devel_isolated/tensor_field_nav_core -DCMAKE_INSTALL_PREFIX=/tmp/catkin_workspace/install_isolated -DCATKIN_SKIP_TESTING=1 -G Unix Makefiles in '/tmp/catkin_workspace/build_isolated/tensor_field_nav_core' -- The C compiler identification is GNU 4.8.4 -- The CXX compiler identification is GNU 4.8.4 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- 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 -- Using CATKIN_DEVEL_PREFIX: /tmp/catkin_workspace/devel_isolated/tensor_field_nav_core -- Using CMAKE_PREFIX_PATH: /tmp/catkin_workspace/install_isolated;/opt/ros/indigo -- This workspace overlays: /tmp/catkin_workspace/install_isolated;/opt/ros/indigo -- Found PythonInterp: /usr/bin/python (found version "2.7.6") -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_SKIP_TESTING: 1 (implying CATKIN_ENABLE_TESTING=OFF) -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /tmp/catkin_workspace/build_isolated/tensor_field_nav_core/test_results -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.6.19 -- Using these message generators: gencpp;genlisp;genpy -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found -- Found Qt4: /usr/bin/qmake (found version "4.8.6")

CMake Error at /usr/share/cmake-2.8/Modules/FindCUDA.cmake:548 (message): Specify CUDA_TOOLKIT_ROOT_DIR Call Stack (most recent call first): CMakeLists.txt:125 (find_package)

-- Configuring incomplete, errors occurred!

I used cuda within the package. The failure message reminded us to specify CUDA_TOOlKIT_ROOT_DIR. But I didn't know how to specify the path in Jenkins.

How can I do to fix the problem?

edit retag flag offensive close merge delete

Comments

It looks like jenkins doesn't have cuda. Did you include cuda as a dependency of your package in the package.xml ?

ahendrix gravatar image ahendrix  ( 2017-05-17 17:24:26 -0500 )edit

Do you mean add "<build_depend/>cuda</build_depend>" and "<run_depend/>cuda</run_depend>" directly in package.xml?

emosion gravatar image emosion  ( 2017-05-18 13:23:17 -0500 )edit