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


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

Bug#909396: Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8

From John David Anglin <dave.anglin@bell.net>
Newsgroups linux.debian.bugs.dist
Subject Bug#909396: Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8
Date 2019-01-10 16:30 +0100
Message-ID <xeKro-PA-3@gated-at.bofh.it> (permalink)
References (2 earlier) <x0lVT-2Dl-11@gated-at.bofh.it> <x0lVT-2Dl-11@gated-at.bofh.it> <xeKro-PA-5@gated-at.bofh.it> <wB7t7-6GR-3@gated-at.bofh.it> <xeKro-PA-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Hi,

The merging of PIC/PIE options in gcc-8 was fixed by this change:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=267610

A new build of gcc-8 with the above change was upload yesterday and
systemd 240-3 built
successfully on hppa without having to disable LTO:
https://buildd.debian.org/status/fetch.php?pkg=systemd&arch=alpha&ver=240-3&stamp=1547070353&raw=0
 
On 2019-01-10 7:09 a.m., Michael Biebl wrote:
> Hi Dave, hi Jussi
>
> On Sat, 1 Dec 2018 17:15:41 -0500 John David Anglin
> <dave.anglin@bell.net> wrote:
>> On 2018-12-01 4:50 p.m., Jussi Pakkanen wrote:
>>> Thus it would seem that this is not a bug in Meson, but instead in
>>> systemd's build setup as the pie arguments are added by the latter.
>> I agree but Michael doesn't have a clear idea how to fix the issue. 
>> Would the "b_pie" option help?
> I've filed https://github.com/systemd/systemd/pull/11380
>
> Let's hope this get merged upstream.
>
> Dave, can you test attached patch on hppa and report back with the results?
Your fix looks correct to me.  I'll try to test in the next day or two
on hppa.  Does it work on x86?

Regards,
Dave

-- 
John David Anglin  dave.anglin@bell.net


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


Thread

Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 Jussi Pakkanen <jpakkane@gmail.com> - 2018-12-01 23:00 +0100
  Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 Jussi Pakkanen <jpakkane@gmail.com> - 2018-12-01 23:30 +0100
    Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 John David Anglin <dave.anglin@bell.net> - 2018-12-02 17:40 +0100
      Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 Jussi Pakkanen <jpakkane@gmail.com> - 2018-12-02 18:00 +0100
    Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 John David Anglin <dave.anglin@bell.net> - 2019-01-13 15:30 +0100
  Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 John David Anglin <dave.anglin@bell.net> - 2018-12-01 23:40 +0100
    Bug#909396: Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 John David Anglin <dave.anglin@bell.net> - 2019-01-10 16:30 +0100
      Bug#909396: Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 John David Anglin <dave.anglin@bell.net> - 2019-01-10 17:50 +0100
    Bug#909396: Bug#914543: meson adds both -fPIE and -fPIC options in LTO compiles with gcc-8 John David Anglin <dave.anglin@bell.net> - 2019-01-12 19:40 +0100

csiph-web