Bug#822783: eztrace-contrib: FTBFS with libc 2.23: 'memcpy' was not declared in this scope

Graham Inggs ginggs at debian.org
Tue Jun 7 11:31:08 UTC 2016

On 31/05/2016 11:27, Aurelien Jarno wrote:
> I am not fully sure the bug is actually in on the libc sid. It looks
> like that nvcc redefines part of this header in a way that is not
> compatible with the new version of the header.

I think I've found where this is happening.
In file /usr/include/common_functions.h installed by nvidia-cuda-dev, 
line 73, is the following:

extern __host__ __device__ __device_builtin__ __cudart_builtin__
    void* __cdecl memcpy(void*, const void*, size_t) __THROW;

Removing, or commenting out (as per the attached patch), this line fixes 
the build of eztrace-contrib and theano.

Does this seem like a sane fix?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cuda-glibc223.patch
Type: text/x-diff
Size: 692 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20160607/f58b949a/attachment.patch>

More information about the pkg-nvidia-devel mailing list