nullsatz/gputools

/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope

Opened this issue · 4 comments

In arch linux, I try to install gputools_1.0.tar.gz with R CMD INSTALL --configure-args="--with-nvcc=/opt/cuda/bin/nvcc --with-r-include=/usr/include/R" gputools_1.0.tar.gz but I get the post's title error.

Full Output:

$ R CMD INSTALL --configure-args="--with-nvcc=/opt/cuda/bin/nvcc  --with-r-include=/usr/include/R" gputools_1.0.tar.gz 
* installing to library ‘/home/censored/R/x86_64-pc-linux-gnu-library/3.2’
* installing *source* package ‘gputools’ ...
** package ‘gputools’ successfully unpacked and MD5 sums checked
checking "CUDA compiler"... "using NVCC=/opt/cuda/bin/nvcc"
checking "root of the CUDA install directory"... "environment variable CUDA_HOME not set"
"using CUDA_HOME=/opt/cuda"
checking "location of CUDA libraries"... checking for "/opt/cuda/lib/libcublas.so"... no
checking for "/opt/cuda/lib64/libcublas.so"... yes
checking "R"... "using /usr/lib64/R for the root of the R install directory"
"using /usr/include/R for R header files"
checking for rpath flag style... checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
rpath flag style... gnu
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: creating ./config.status
config.status: creating src/Makefile
** libs
** arch - 
/opt/cuda/bin/nvcc -c -Xcompiler "-fpic -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong" -I. -I"/opt/cuda/include" -I"/usr/include/R" rinterface.cu -o rinterface.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;
                                          ^
Makefile:32: recipe for target 'rinterface.o' failed
make: *** [rinterface.o] Error 1
ERROR: compilation failed for package ‘gputools’
* removing ‘/home/censored/R/x86_64-pc-linux-gnu-library/3.2/gputools’

Is there a hope? :)

Did you find a solution to this problem? I'm having the same one.

jvzl commented

I'm having the same problem as well (with version 1.0).

After modifying src/Makefile.in in this way: wush978@9d0a9b5 , I can install gputools on my ubuntu 16.04.

It is inspired by https://groups.google.com/forum/#!msg/caffe-users/Tm3OsZBwN9Q/XKGRKNdmBAAJa