[Debian-med-packaging] Bug#989051: Bug#989051: mrc: FTBFS on hppa - obj/mrc_rsrc.o created with wrong OS/ABI
Étienne Mollier
emollier at emlwks999.eu
Sun Sep 12 14:59:55 BST 2021
Hi Maarten,
Maarten L. Hekkelman, on 2021-09-02:
> I found the underlying problem, apparently the ABI field of the ELF header
> should contain a flag indicating it is a Linux executable. In order to set
> this flag properly, I need to find out various things and perhaps it is
> easiest to try to figure out these myself. Is it possible to get access to a
> HPPA machine running Debian? I am a Debian maintainer, if that makes any
> difference.
Without easy access to a PA-RISC machine, you can resort to
Qemu. The Debian hppa port can be emulated using one of the
emulators provided in the package qemu-system-misc. If you
combine it with the package qemu-user-static (and also have
Debian ports keyring at hand), then you can directly debootstrap
a chroot able to run PA-RISC binaries:
$ uname -m
x86_64
$ sudo debootstrap \
--arch=hppa \
--keyring=/usr/share/keyrings/debian-ports-archive-keyring.gpg \
--include=debian-ports-archive-keyring \
sid sid-hppa-chroot http://ftp.ports.debian.org/debian-ports
I: Target architecture can be executed
[...]
I: Base system installed successfully.
$ sudo chroot sid-hppa-chroot uname -m
parisc
> Otherwise, could you provide me the output of `cpp -dM /dev/null` and
> perhaps also how to detect PA-RISC/Debian in a cmake file. That last
> question is perhaps a bit too much to ask for, but any hint is appreciated.
Feel free to checkout cpp_hppa.h in attachment; I obtained it
with the aforementioned method.
In hope this helps,
Have a nice day, :)
--
Étienne Mollier <emollier at emlwks999.eu>
Fingerprint: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
Sent from /dev/pts/2, please excuse my verbosity.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpp_hppa.h
Type: text/x-chdr
Size: 9575 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20210912/c2c73af5/attachment.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20210912/c2c73af5/attachment.sig>
More information about the Debian-med-packaging
mailing list