Source: meson
Severity: normal

Dear Maintainer,

The systemd package fails to build on hppa and x32.  This is caused by
both -fPIE and -fPIC options being added to various compilation commands.
Only -fPIC is being recorded in the LTO options section of the object.
The gcc-8 LTO plugin merges -fPIC + -fPIE to nothing.  So, the compilations
done by the plugin are not position-independent and fail to link with -pie.

I have not found a way to change the addition of these options within systemd.

My understanding is -fPIE should be used when creating objects for a
PIE executable.  -fPIC should be used when creating objects for a shared
library.  Only one is recorded when -flto is specified.

For more details, see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=909396
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88185

Regards,
Dave Anglin

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

Kernel: Linux 4.14.81+ (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C 
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information

Reply via email to