Robotics StackExchange | Archived questions

Build failed in Jenkins for cuda cmake error

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

==> Processing catkin package: 'tensorfieldnavcore' ==> Creating build directory: 'buildisolated/tensorfieldnavcore' ==> Building with env: '/tmp/catkinworkspace/installisolated/env.sh' ==> cmake /tmp/catkinworkspace/src/tensorfieldnav/tensorfieldnavcore -DCATKINDEVELPREFIX=/tmp/catkinworkspace/develisolated/tensorfieldnavcore -DCMAKEINSTALLPREFIX=/tmp/catkinworkspace/installisolated -DCATKINSKIPTESTING=1 -G Unix Makefiles in '/tmp/catkinworkspace/buildisolated/tensorfieldnavcore' -- 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 CATKINDEVELPREFIX: /tmp/catkinworkspace/develisolated/tensorfieldnavcore -- Using CMAKEPREFIXPATH: /tmp/catkinworkspace/installisolated;/opt/ros/indigo -- This workspace overlays: /tmp/catkinworkspace/installisolated;/opt/ros/indigo -- Found PythonInterp: /usr/bin/python (found version "2.7.6") -- Using PYTHONEXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKINSKIPTESTING: 1 (implying CATKINENABLETESTING=OFF) -- Call enabletesting() -- Using CATKINTESTRESULTSDIR: /tmp/catkinworkspace/buildisolated/tensorfieldnavcore/testresults -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthreadcreate -- Looking for pthreadcreate - not found -- Looking for pthreadcreate in pthreads -- Looking for pthreadcreate in pthreads - not found -- Looking for pthreadcreate in pthread -- Looking for pthreadcreate 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 QWSX11 -- Looking for QWSX11 - found -- Looking for QWSWIN -- Looking for QWSWIN - not found -- Looking for QWSQWS -- Looking for QWSQWS - not found -- Looking for QWSMAC -- Looking for QWS_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 CUDATOOLKITROOTDIR Call Stack (most recent call first): CMakeLists.txt:125 (findpackage)

-- Configuring incomplete, errors occurred!

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

How can I do to fix the problem?

Asked by emosion on 2017-05-17 11:51:42 UTC

Comments

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

Asked by ahendrix on 2017-05-17 17:24:26 UTC

Do you mean add "cuda" and "cuda" directly in package.xml?

Asked by emosion on 2017-05-18 13:23:17 UTC

Answers