[Debian-med-packaging] Bug#989051: mrc: FTBFS on hppa - obj/mrc_rsrc.o created with wrong OS/ABI

Maarten L. Hekkelman maarten at hekkelman.com
Thu Sep 2 12:13:54 BST 2021


Dear Dave,

Thanks for reporting, and apologies for not responding earlier.

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.

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.

regards, -maarten


Op 24-05-2021 om 20:09 schreef John David Anglin:
> Source: mrc
> Version: 1.2.3-2
> Severity: normal
>
> Dear Maintainer,
>
> The build fails with the following error:
>
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
>>> mrc.cpp
>>> dummy.cpp
> g++ -std=c++17 -o mrc-bootstrap obj/mrc.o obj/dummy.o -L/usr/lib/hppa-linux-gnu -lboost_program_options
> ./mrc-bootstrap -o obj/mrc_rsrc.o mrsrc.h
> g++ -std=c++17 -o mrc obj/mrc.o obj/mrc_rsrc.o -L/usr/lib/hppa-linux-gnu -lboost_program_options
> /usr/bin/ld: unknown architecture of input file `obj/mrc_rsrc.o' is incompatible with hppa1.1 output
> collect2: error: ld returned 1 exit status
> make[1]: *** [GNUmakefile:87: mrc] Error 1
>
> As far as I can tell, this occurs because obj/mrc_rsrc.o is created with the
> wrong OS/ABI:
>
> dave at mx3210:~/debian/mrc/mrc-1.2.3$ file obj/mrc_rsrc.o
> obj/mrc_rsrc.o: ELF 32-bit MSB relocatable, PA-RISC, 1.1 version 1 (SYSV), not stripped
>
> SYSV should be GNU/Linux:
>
> dave at mx3210:~/debian/mrc/mrc-1.2.3$ file obj/mrc.o
> obj/mrc.o: ELF 32-bit MSB relocatable, PA-RISC, 1.1 version 1 (GNU/Linux), with debug_info, not stripped
>
> Not sure why this happens.
>
> Regards,
> Dave Anglin
>
> -- System Information:
> Debian Release: 11.0
>    APT prefers buildd-unstable
>    APT policy: (500, 'buildd-unstable'), (500, 'unstable')
> Architecture: hppa (parisc64)
>
> Kernel: Linux 5.10.39+ (SMP w/4 CPU threads)
> Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
>

-- 
Maarten L. Hekkelman
http://www.hekkelman.com/



More information about the Debian-med-packaging mailing list