caffe-yolov3 icon indicating copy to clipboard operation
caffe-yolov3 copied to clipboard

cmake successful but make failure

Open claudehang opened this issue 6 years ago • 6 comments

Thanks for your code! Following your instruction, I encounter errors when make: just a lot of stuff and I paste some of that:

/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h(432): error: identifier "nullptr" is undefined

/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h(432): error: expected a ";"

/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h(432): error: identifier "nullptr" is undefined

/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include/stddef.h(432): error: expected a ";"

/usr/include/c++/4.8.2/x86_64-redhat-linux/bits/c++config.h(1861): error: expected a ";"

/usr/include/c++/4.8.2/exception(63): error: expected a ";"

/usr/include/c++/4.8.2/exception(68): error: expected a ";"

/usr/include/c++/4.8.2/exception(76): error: expected a ";"

/usr/include/c++/4.8.2/exception(83): error: expected a ";"

/usr/include/c++/4.8.2/exception(93): error: expected a "{"

/usr/include/c++/4.8.2/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr"

......

Error limit reached. 100 errors detected in the compilation of "/tmp/tmpxft_00002a9b_00000000-9_blas_kernels.compute_62.cpp1.ii". Compilation terminated. CMake Error at sysDetectSpeed_generated_activation_kernels.cu.o.cmake:264 (message): Error generating file ~/caffe-yolov3/build/CMakeFiles/sysDetectSpeed.dir//./sysDetectSpeed_generated_activation_kernels.cu.o

CMake Error at sysDetectSpeed_generated_blas_kernels.cu.o.cmake:264 (message): Error generating file ~/caffe-yolov3/build/CMakeFiles/sysDetectSpeed.dir//./sysDetectSpeed_generated_blas_kernels.cu.o

make[2]: *** [CMakeFiles/sysDetectSpeed.dir/./sysDetectSpeed_generated_activation_kernels.cu.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [CMakeFiles/sysDetectSpeed.dir/./sysDetectSpeed_generated_blas_kernels.cu.o] Error 1 make[1]: *** [CMakeFiles/sysDetectSpeed.dir/all] Error 2 make: *** [all] Error 2

What should I do with this? Many thx!

claudehang avatar Jul 02 '18 06:07 claudehang

Probably I should set something relating to CMake myself but I am not very good at it. Could you give me some suggestions or where I should modify?

claudehang avatar Jul 02 '18 06:07 claudehang

The author's code is compiled on TX2,which is aarch64,you should check cmakelists.txt and cmakeprebuild.sh carefully and make some changes

zbw4034 avatar Jul 02 '18 06:07 zbw4034

Oh thank you! I am not aware of that at all. But could you explain it a little bit more in detail if possible? Which I should modify and which is not even necessary for a Linux PC? I am really overwhelmed at it. Best regards!

claudehang avatar Jul 02 '18 06:07 claudehang

I test some parts of the code and come across the problem relating to CUDA.

In cuda.cpp, when I run the function: float* cuda_make_array(float* x, size_t n) it reports "an illeagal memory access was encountered" error at line: status = cudaMemcpy(x_gpu, x, size, cudaMemcpyHostToDevice);

I've checked that x is accessible but when access x_gpu[0] it reports segmentation fault. What might I check further to find out the devil? Any advice would be greatly appreciated!

claudehang avatar Jul 04 '18 07:07 claudehang

Hi, I've got the same problem, have you solved it? Could you please tell me how to modify the cmakelists.txt? Thanks

evercherish avatar Nov 09 '18 09:11 evercherish

its may be about the system environment, I have successfully installed this project on centos7 system with GPU 2080ti. Go to https://github.com/passion3394/darknet2caffe_yolov3

passion3394 avatar Apr 22 '19 07:04 passion3394