Skip to content

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

Description

@cmoang

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? :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions