Package: eztrace-contrib
Version: 1.1-2-1
Severity: important
Tags: patch
User: [email protected]
Usertags: 2.23

Hi Maintainer

Eztrace-contrib FTBFS with glibc 2.23 available in Experimental and
Ubuntu Xenial.

> /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;
>                                           ^
> /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;
>                                           ^
> /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;

I found a similar issue had been reported for TensorFlow [1], and the solution:

> @e14159 can you try with -D_FORCE_INLINES? I just had the same issue with pcl,
> I checked the string.h header, and using that preprocessor directive skips 
> the block
> where the memcpy error appears. There's probably a cleaner workaround 
> though...

I also encountered and reported a similar issue in Theano [2].

I was able to get eztrace-contrib to build in Ubuntu by adding
-D_FORCE_INLINES to CPPFLAGS as per the attached patch.

Regards
Graham


[1] https://github.com/tensorflow/tensorflow/issues/1346
[2] https://github.com/Theano/Theano/pull/4369
diff -Nru eztrace-contrib-1.1-2/debian/rules eztrace-contrib-1.1-2/debian/rules
--- eztrace-contrib-1.1-2/debian/rules  2016-02-05 13:56:09.000000000 +0200
+++ eztrace-contrib-1.1-2/debian/rules  2016-03-31 14:13:55.000000000 +0200
@@ -3,6 +3,7 @@
 DEB_HOST_ARCH_CPU=$(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
+export DEB_CPPFLAGS_MAINT_APPEND = -D_FORCE_INLINES
 
 ifeq ($(DEB_HOST_ARCH_CPU),s390x)
 OPENMPI=no

Reply via email to