Errors on compiling darknet_ros

asked 2022-08-15 10:49:32 -0500

rexrapier gravatar image

I get the following error that mentions cudagraphNode... i've ensured the installation of cuda and cudNN on the system and verified. error is shown below:

[build] Found 2 packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> darknet_ros_msgs
Finished <<< darknet_ros_msgs [ 2.3 seconds ]
Starting >>> darknet_ros


Errors << darknet_ros:make /home/rexrapier/catkin_ws/logs/darknet_ros/build.make.002.log
In file included from /usr/local/cuda-10.2/include/channel_descriptor.h:61:0, from /usr/local/cuda-10.2/include/cuda_runtime.h:95, from /home/rexrapier/catkin_ws/src/darknet_ros/darknet_ros/include/darknet_ros/YoloObjectDetector.hpp:44, from /home/rexrapier/catkin_ws/src/darknet_ros/darknet_ros/src/YoloObjectDetector.cpp:10: /usr/local/cuda-10.2/include/cuda_runtime_api.h:2297:25: error: expected ‘)’ before ‘’ token typedef void (CUDART_CB *cudaStreamCallback_t)(cudaStream_t stream, cudaError_t status, void *userData); ^ /usr/local/cuda-10.2/include/cuda_runtime_api.h:2365:9: error: ‘cudaStreamCallback_t’ has not been declared cudaStreamCallback_t callback, void *userData, unsigned int flags); ^~~~~~~~~~~~~~~~~~~~ /usr/local/cuda-10.2/include/cuda_runtime_api.h:2532:88: error: use of enum ‘cudaStreamCaptureMode’ without previous declaration extern __host__ cudaError_t CUDARTAPI cudaStreamBeginCapture(cudaStream_t stream, enum cudaStreamCaptureMode mode); ^~~~~~~~~~~~~~~~~~~~~ /usr/local/cuda-10.2/include/cuda_runtime_api.h:2583:80: error: use of enum ‘cudaStreamCaptureMode’ without previous declaration extern __host__ cudaError_t CUDARTAPI cudaThreadExchangeStreamCaptureMode(enum cudaStreamCaptureMode *mode); ^~~~~~~~~~~~~~~~~~~~~ /usr/local/cuda-10.2/include/cuda_runtime_api.h:2611:81: error: ‘cudaGraph_t’ has not been declared extern __host__ cudaError_t CUDARTAPI cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t *pGraph); ^~~~~~~~~~~ /usr/local/cuda-10.2/include/cuda_runtime_api.h:2649:87: error: use of enum ‘cudaStreamCaptureStatus’ without previous declaration extern __host__ cudaError_t CUDARTAPI cudaStreamIsCapturing(cudaStream_t stream, enum cudaStreamCaptureStatus *pCaptureStatus); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/cuda-10.2/include/cuda_runtime_api.h:2677:90: error: use of enum ‘cudaStreamCaptureStatus’ without previous declaration extern __host__ cudaError_t CUDARTAPI cudaStreamGetCaptureInfo(cudaStream_t stream, enum cudaStreamCaptureStatus *pCaptureStatus, unsigned long long *pId); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/local/cuda-10.2/include/cuda_runtime_api.h:3098:64: error: ‘cudaExternalMemory_t’ was not declared in this scope extern __host__ cudaError_t CUDARTAPI cudaImportExternalMemory(cudaExternalMemory_t *extMem_out, const struct cudaExternalMemoryHandleDesc *memHandleDesc); ^~~~~~~~~~~~~~~~~~~~ /usr/local/cuda-10.2/include/cuda_runtime_api.h:3098:86: error: ‘extMem_out’ was not declared in this scope extern __host__ cudaError_t CUDARTAPI cudaImportExternalMemory(cudaExternalMemory_t *extMem_out, const struct cudaExternalMemoryHandleDesc *memHandleDesc); ^~~~~~~~~~ /usr/local/cuda-10.2/include/cuda_runtime_api.h:3098:98: error: expected primary-expression before ‘const’ extern __host__ cudaError_t CUDARTAPI cudaImportExternalMemory(cudaExternalMemory_t *extMem_out, const struct cudaExternalMemoryHandleDesc *memHandleDesc); ^~~~~ /usr/local/cuda-10.2/include/cuda_runtime_api.h:3098:154: error: expression list treated as compound expression in initializer [-fpermissive] extern __host__ cudaError_t CUDARTAPI cudaImportExternalMemory(cudaExternalMemory_t *extMem_out, const struct cudaExternalMemoryHandleDesc *memHandleDesc); ^ /usr/local/cuda-10.2/include/cuda_runtime_api.h:3152:88: error: ‘cudaExternalMemory_t’ has not been declared extern __host__ cudaError_t CUDARTAPI cudaExternalMemoryGetMappedBuffer(void devPtr, cudaExternalMemory_t extMem, const struct cudaExternalMemoryBufferDesc *bufferDesc); ^~~~~~~~~~~~~~~~~~~~ /usr/local/cuda-10.2/include/cuda_runtime_api.h:3211:111: error: ‘cudaExternalMemory_t’ has not been declared extern __host__ cudaError_t CUDARTAPI cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t *mipmap, cudaExternalMemory_t extMem, const struct cudaExternalMemoryMipmappedArrayDesc *mipmapDesc); ^~~~~~~~~~~~~~~~~~~~ /usr/local/cuda-10.2/include/cuda_runtime_api.h:3234:65: error: ‘cudaExternalMemory_t’ was not declared in this scope extern __host__ cudaError_t CUDARTAPI cudaDestroyExternalMemory(cudaExternalMemory_t extMem); ^~~~~~~~~~~~~~~~~~~~ /usr/local/cuda-10.2/include/cuda_runtime_api.h:3365:67: error: ‘cudaExternalSemaphore_t’ was not declared in this scope extern __host__ ... (more)

edit retag flag offensive close merge delete

Comments

The error is coming from CUDA and has been discussed in various places such as following:

ravijoshi gravatar image ravijoshi  ( 2022-08-16 05:08:54 -0500 )edit

i tried following the instructions but it doesn't help much.

rexrapier gravatar image rexrapier  ( 2022-08-16 14:01:19 -0500 )edit