[debhelper-devel] dh / dh_shlibdeps issue on hybrid arm 32/64 bits system

Jean-Francois Dockes jf at dockes.org
Mon Nov 28 12:43:35 UTC 2016


Hi,

I have a problem building packages on a system which has an 64 bits ARM
kernel and a 32 bits userspace. I am not sure if this is the right place,
so please point me away if appropriate... I am not too sure if this is a
bug or if something is wrong in the system.

I am using an Odroid C2 running an Odrobian hybrid image, with a 64 bits
kernel and a 32 bits userland (I hoped that using the Odroid would be
simpler than setting up a cross-compilation environment for faster building
of 32 bits ARM packages).

odroid32$ arch
aarch64

odroid32$ gcc -v | head -2
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc-4.9.real
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
...


When using debuild, I get this error:


odroid32$ debuild
...
   dh_shlibdeps -O--parallel
objdump: /lib/aarch64-linux-gnu/libpthread.so.0: File format not recognized
dpkg-shlibdeps: error: objdump gave error exit status 1
dh_shlibdeps: dpkg-shlibdeps -Tdebian/libupnp6.substvars debian/libupnp6/usr/lib/arm-linux-gnueabihf/libthreadutil.so.6.0.4 debian/libupnp6/usr/lib/arm-linux-gnueabihf/libixml.so.2.0.8 debian/libupnp6/usr/lib/arm-linux-gnueabihf/libupnp.so.6.3.4 returned exit code 1



After setting DEB_BUILD_ARCH=armv7l in the environment, dpkg-shlibdeps
seems to run fine:

odroid32$ dpkg-shlibdeps -Tdebian/libupnp6.substvars debian/libupnp6/usr/lib/arm-linux-gnueabihf/libthreadutil.so.6.0.4 debian/libupnp6/usr/lib/arm-linux-gnueabihf/libixml.so.2.0.8 debian/libupnp6/usr/lib/arm-linux-gnueabihf/libupnp.so.6.3.4

odroid32$ cat debian/libupnp6.substvars    
misc:Pre-Depends=multiarch-support
shlibs:Depends=libc6 (>= 2.15), libupnp6 (>= 1:1.6.13)


But debuild/dh/dh_shlibdeps still gives the same error.

I don't know if this a system environment issue, or a debhelper problem,
and I'd be grateful for any help you can give me.


Cheers,

J.F. Dockes



More information about the debhelper-devel mailing list