Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems building #720

Closed
vkee opened this issue Sep 16, 2016 · 4 comments
Closed

Problems building #720

vkee opened this issue Sep 16, 2016 · 4 comments
Labels

Comments

@vkee
Copy link

vkee commented Sep 16, 2016

Hi,

I'm running into issues trying to make. I am getting a error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;

I do have have all the dependencies installed, including CUDA.

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17

Error from Terminal.

Scanning dependencies of target generate_resources_tool
[ 2%] Building CXX object CMakeFiles/generate_resources_tool.dir/tools/generate_resources.cpp.o
[ 5%] Linking CXX executable bin/generate_resources_tool
[ 5%] Built target generate_resources_tool
[ 8%] Building NVCC (Device) object CMakeFiles/cuda_compile.dir/src/cuda_compile_generated_cuda_depth_packet_processor.cu.o
/usr/include/string.h: In function ‘void* mempcpy_inline(void, const void, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;
^
CMake Error at cuda_compile_generated_cuda_depth_packet_processor.cu.o.cmake:266 (message):
Error generating file
/home/rosie/libfreenect2/build/CMakeFiles/cuda_compile.dir/src/./cuda_compile_generated_cuda_depth_packet_processor.cu.o

CMakeFiles/freenect2.dir/build.make:295: recipe for target 'CMakeFiles/cuda_compile.dir/src/cuda_compile_generated_cuda_depth_packet_processor.cu.o' failed
make[2]: *** [CMakeFiles/cuda_compile.dir/src/cuda_compile_generated_cuda_depth_packet_processor.cu.o] Error 1
CMakeFiles/Makefile2:136: recipe for target 'CMakeFiles/freenect2.dir/all' failed
make[1]: *** [CMakeFiles/freenect2.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

@xlz
Copy link
Member

xlz commented Sep 17, 2016

Apparently something like -D_FORCE_INLINES is needed.

BVLC/caffe#4046
tensorflow/tensorflow#1346
opencv/opencv#6500

@vkee vkee closed this as completed Oct 4, 2016
@xlz xlz reopened this Oct 4, 2016
@xlz xlz added the bug label Oct 4, 2016
@xlz
Copy link
Member

xlz commented Oct 9, 2016

This will be fixed by #690.

@xlz
Copy link
Member

xlz commented Oct 20, 2016

@foong Yours is a different one. Open a new issue.

@xlz
Copy link
Member

xlz commented Oct 31, 2016

gcc later than 4.9 is not supported by CUDA 7.5 anymore. So use CUDA 8 instead.

@xlz xlz closed this as completed Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants