Summary: | dev-util/nvidia-cuda-sdk-7.5.18 - x86_64-pc-linux-gnu-gcc-4.9.3: /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 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | PetaMem R&D <info> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | nowa |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
PetaMem R&D
2016-05-12 07:26:34 UTC
Ticket can be closed. * cuda-sdk is not necessary * solution for the memcpy problem - see https://groups.google.com/forum/#!topic/torch7/mtNfCLlQNSU provide set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FORCE_INLINES") at the very top of every single "CMakeLists.txt". (In reply to PetaMem R&D from comment #1) > Ticket can be closed. The bug hasn't been fixed. > * cuda-sdk is not necessary > * solution for the memcpy problem - see > https://groups.google.com/forum/#!topic/torch7/mtNfCLlQNSU This website tracks bugs - it is not a support forum. We find solutions here to problems that affect everyone in the same way - the bug tracker is not intended to track or find personal solutions to localised problems. AFAICS the bug has been fixed. It was not a problem of CUDA, but of Tensorflow and there it is fixed. As tensorflow is not even part of portage, I do not see how the problem could be possibly "more fixed" than it is now. PetaMem R&D: You have discovered an actual bug. You can't install nvidia-cuda-sdk without the fix you have linked to (which by the way, I'm not exactly sure how to apply). I'm confused by your saying it's not a problem with CUDA given that your log is taken straight from the nvidia-cuda-sdk build (I have basically the same problem, different file, but same error). I write this post because your last comment confused me into thinking this bug was closed or about to be closed. For anyone else reading, I got this fix from fedeliallalinea: https://forums.gentoo.org/viewtopic-p-8015230.html?sid=cb6a3f6b3904b1029dbf0bb43f56d254#8015230 (tweaked based on his later post) and it works for me. # echo -e 'CFLAGS="${CFLAGS} -D_FORCE_INLINES"\nCXXFLAGS="${CXXFLAGS} -D_FORCE_INLINES"' > /etc/portage/env/force-inlines.conf # echo "=dev-util/nvidia-cuda-sdk-7.5.18 force-inlines.conf" >> /etc/portage/package.env # emerge nvidia-cuda-sdk |