<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Étienne,<br>
<br>
Thank you very much for your reply. Luckily I found out the same
route (using qemu) myself and fixed the problem All architectures
are now green in tracker:
<a class="moz-txt-link-freetext" href="https://buildd.debian.org/status/package.php?p=mrc">https://buildd.debian.org/status/package.php?p=mrc</a><br>
<br>
regards, -maarten<br>
<br>
<br>
<div class="moz-cite-prefix">Op 12-09-2021 om 15:59 schreef Étienne
Mollier:<br>
</div>
<blockquote type="cite" cite="mid:YT4H2+T0xPlTojPo@fusion">
<pre class="moz-quote-pre" wrap="">Hi Maarten,
Maarten L. Hekkelman, on 2021-09-02:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">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.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
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 <a class="moz-txt-link-freetext" href="http://ftp.ports.debian.org/debian-ports">http://ftp.ports.debian.org/debian-ports</a>
I: Target architecture can be executed
[...]
I: Base system installed successfully.
$ sudo chroot sid-hppa-chroot uname -m
parisc
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">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.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Feel free to checkout cpp_hppa.h in attachment; I obtained it
with the aforementioned method.
In hope this helps,
Have a nice day, :)
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Maarten L. Hekkelman
<a class="moz-txt-link-freetext" href="http://www.hekkelman.com/">http://www.hekkelman.com/</a></pre>
</body>
</html>