packaging: dh_strip unable to recognize format

If none of the more specific forums is the right place to ask

packaging: dh_strip unable to recognize format

Postby ptz » 2018-07-11 11:45

I am following the instructions in https://wiki.debian.org/Packaging/Intro ... nPackaging to package my code. The code is cross-compiled on an x86 host (Ubuntu 16.04) for an ARM target. The cross-compilation itself is working. When I run
Code: Select all
debuild -us -uc
the entire project is built twice, and at the end of the second build I get:
Code: Select all
dh_strip
strip: Unable to recognise the format of the input file `debian/[path]/lib64/libfoo.so.2.0.0'
dh_strip: strip --remove-section=.comment --remove-section=.note --strip-unneeded debian/[path]/lib64/libfoo.so.2.0.0 returned exit code 1

The output of
Code: Select all
file debian/[path]/lib64/libfoo.so.2.0.0
is (as expected):
Code: Select all
ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=6de91f6a51a84aa5109944860152a8d6f3228f65, not stripped

libfoo is one of the libraries that are built in the make process.

What/how to debug?
ptz
 
Posts: 3
Joined: 2018-07-11 11:05

Re: packaging: dh_strip unable to recognize format

Postby stevepusser » 2018-07-11 16:17

Which of the techniques here are you trying? https://wiki.debian.org/CrossCompiling

Do any of the others work?

Why does the build process build it twice? That seems to be inelegant if not required.

Hmmm...my pbuilder builds of Pale Moon packages for MX Linux always failed for i386 builds on amd64, so I just now thrashed around and managed to set up sbuild schroot builds that worked. The Ubuntu guide for cross-compiling with sbuild was quite helpful.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Flightgear 2018.2.2, 4.19.5 kernel, wine-staging 4.0~rc1, Pale Moon 28.2.2, Mesa 18.2.6, Midori 7.0
User avatar
stevepusser
 
Posts: 10281
Joined: 2009-10-06 05:53

Re: packaging: dh_strip unable to recognize format

Postby ptz » 2018-07-12 13:26

Actually, I didn't look at that page before posting.

Anyway, for now I've taken a step back, trying first to package it natively and learn a few things along the way. Thanks for the link.
ptz
 
Posts: 3
Joined: 2018-07-11 11:05


Return to General Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable