[Pkg-pascal-devel] Bug#1091003: libqt6pas FTBFS on hppa architecture

Helge Deller deller at gmx.de
Sun Dec 22 06:43:10 GMT 2024


Package: libqt6pas
Version: 2
Tags: ftbfs patch
Usertags: hppa

libqt6pas fails to build from source at link time on hppa, because of this error:
/usr/bin/ld: tmp/qdir_c.o(.text+0x8c): cannot reach 000007b4__ZN4QDirD1Ev@@Qt_6+0, recompile with -ffunction-sections
/usr/bin/ld: tmp/qdir_c.o(.text+0x8c): cannot handle R_PARISC_PCREL17F for _ZN4QDirD1Ev@@Qt_6
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
Full log is here: https://buildd.debian.org/status/fetch.php?pkg=libqt6pas&arch=hppa&ver=2&stamp=1729030405&raw=0

The problem is, that the binary gets too big, thus the error.
Adding this section somewhere at the top of debian/rules file fixes it for me:

ifeq ($(DEB_TARGET_ARCH),hppa)
CXXFLAGS += -mlong-calls
export CXXFLAGS
endif

Can you please add this (or a similiar patch) to the next upload.
(Please note that I uploaded a manually built binary in the meantime).

Thanks!
Helge



More information about the Pkg-pascal-devel mailing list