Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1260700

Bug#1114771: reglookup: FTBFS on hppa - reglookup-recover.c needs compilation with -fPIE

From John David Anglin <dave@parisc-linux.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1114771: reglookup: FTBFS on hppa - reglookup-recover.c needs compilation with -fPIE
Date 2025-09-09 20:00 +0200
Message-ID <LtaNj-e5jb-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Source: reglookup
Version: 1.0.1+svn296-1
Severity: normal
Tags: patch

Dear Maintainer,

Build fails here:
gcc -o src/reglookup-recover -fPIE -pie src/reglookup-recover.o -Llib -L/usr/lib -lm -lpthread -lregfi -ltalloc
/usr/bin/ld: src/reglookup-recover.o: relocation R_PARISC_DPREL21L can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: src/reglookup-recover.o(.text+0x1fc): cannot handle R_PARISC_PCREL17F for fwrite@@GLIBC_2.2
/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=reglookup&arch=hppa&ver=1.0.1%2Bsvn296-1&stamp=1757429064&raw=0

The 32-bit hppa architecture doesn't enable PIE by default.  As a result,
reglookup-recover.c needs to be compiled with -fPIE.

With the attached patch, the reglookup package builds successfully on hppa.
Maybe another alternative would be to modify CFLAGS in debian/rules.

Regards,
Dave Anglin

-- System Information:
Debian Release: forky/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 6.12.44-dirty (SMP w/4 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1114771: reglookup: FTBFS on hppa - reglookup-recover.c needs compilation with -fPIE John David Anglin <dave@parisc-linux.org> - 2025-09-09 20:00 +0200

csiph-web