Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-11-26 Thread John David Anglin
On 2018-11-18 3:08 p.m., Michael Biebl wrote: It's not at all clear how we get both the -fPIE and -fPIC options in various compilations.  The don't seem to be explicitly specified in the systemd package.  Do you know? Unfortunately not. You could talk to Jussi Pakkanen, our meson maintainer and

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-11-24 Thread John David Anglin
On 2018-11-18 3:08 p.m., Michael Biebl wrote: Unfortunately not. You could talk to Jussi Pakkanen, our meson maintainer and upstream of meson, maybe he can help here. I created two bug reports: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=914543

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-11-18 Thread Michael Biebl
Am 18.11.18 um 20:46 schrieb John David Anglin: > On 2018-11-18 1:54 p.m., Michael Biebl wrote: >> Thanks for your detailed analysis. >> If there is something to fix on the systemd side, it would be great if >> you can create a pull request upstream as suggested in >>

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-11-18 Thread John David Anglin
On 2018-11-18 1:54 p.m., Michael Biebl wrote: Thanks for your detailed analysis. If there is something to fix on the systemd side, it would be great if you can create a pull request upstream as suggested in https://github.com/systemd/systemd/issues/10548 There's definitely something that needs

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-11-18 Thread Michael Biebl
Hi John, Am 18.11.18 um 19:18 schrieb John David Anglin: > I understand the problem.  The merge comment shown above is from gcc-9.  > Systemd compiles fine > on hppa using gcc-9. > > The merging of PIC and PIE options is not supported using gcc-8. This is > the corresponding comment in gcc-8:

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-11-18 Thread John David Anglin
On 2018-11-14 2:19 p.m., John David Anglin wrote: The LTO plugin merges the PIC and PIE options used for the compiled objects:   /* Merge PIC options:   -fPIC + -fpic = -fpic   -fPIC + -fno-pic = -fno-pic   -fpic/-fPIC + nothin = nothing. It is a common mistake to mix few

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-11-14 Thread John David Anglin
Hi Michael, On 2018-11-14 7:38 a.m., Michael Biebl wrote: If you want to see this fixed, it would be great if you can follow-up at https://github.com/systemd/systemd/issues/10548#issuecomment-438619429 I don't feel comfortable creating such a pull request myself, as I wouldn't know what to

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-11-14 Thread Michael Biebl
Hi Dave, On Sun, 28 Oct 2018 16:16:52 -0400 John David Anglin wrote: > On 2018-09-25 10:15 AM, John David Anglin wrote: > > I will test the proposed change once this bug is fixed: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=909440 > I had a successful build of systemd 239-11 with the

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-10-28 Thread John David Anglin
On 2018-09-25 10:15 AM, John David Anglin wrote: I will test the proposed change once this bug is fixed: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=909440 I had a successful build of systemd 239-11 with the attached change.  See:

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-26 Thread John David Anglin
On 2018-09-25 10:15 AM, John David Anglin wrote: I will test the proposed change once this bug is fixed: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=909440 This build was done with the proposed change: https://buildd.debian.org/status/fetch.php?pkg=systemd=hppa=239-10=1537925259=0

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-25 Thread John David Anglin
On 2018-09-25 7:07 AM, Michael Biebl wrote: I'm fine with cherry-picking the patch once it has been reviewed and applied upstream. Would you be willing to create a pull request at https://github.com/systemd/systemd/pulls I will test the proposed change once this bug is fixed:

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-25 Thread Michael Biebl
Hi John Am 23.09.18 um 22:27 schrieb John David Anglin: > The attached patch fixes the failing link command although I'm not sure > it's optimal as > generally -fPIE and -pie need to be specified together.  Meson appears > to test the options > separately.  Putting them together as one option

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-23 Thread John David Anglin
On 2018-09-23 4:56 PM, Michael Biebl wrote: Am 23.09.18 um 22:44 schrieb Michael Biebl: Looking at the "ld" man page, it doesn't say anything about -fPIE, only about -pie. Can you please provide some references why on hppa the linker needs -fPIE in addition to -pie Fwiw, this command succeeded

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-23 Thread John David Anglin
On 2018-09-23 5:03 PM, Michael Biebl wrote: Am 23.09.18 um 23:00 schrieb John David Anglin: On 2018-09-23 4:44 PM, Michael Biebl wrote: Can you please provide some references why on hppa the linker needs -fPIE in addition to -pie -fPIE is not a "ld" option.  It is a compiler option. Right,

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-23 Thread Michael Biebl
Am 23.09.18 um 23:00 schrieb John David Anglin: > On 2018-09-23 4:44 PM, Michael Biebl wrote: >> Can you please provide some references why on hppa the linker needs >> -fPIE in addition to -pie > -fPIE is not a "ld" option.  It is a compiler option. Right, that's why I don't see why it should

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-23 Thread John David Anglin
On 2018-09-23 4:44 PM, Michael Biebl wrote: Am 23.09.18 um 22:27 schrieb John David Anglin: Well the problem was latent in 239-7 and probably gcc changed.  The thing is the error points to an error in the link command.  On hppa, it is almost always necessary to link shared and pie objects with

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-23 Thread Michael Biebl
Am 23.09.18 um 22:44 schrieb Michael Biebl: > Looking at the "ld" man page, it doesn't say anything about -fPIE, only > about -pie. > Can you please provide some references why on hppa the linker needs > -fPIE in addition to -pie Fwiw, this command succeeded for 239-7 [425/1545] cc -o

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-23 Thread Michael Biebl
Am 23.09.18 um 22:27 schrieb John David Anglin: > Well the problem was latent in 239-7 and probably gcc changed.  The > thing is the error points > to an error in the link command.  On hppa, it is almost always necessary > to link shared and pie > objects with -fPIC or -fPIE, respectively.  There

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-23 Thread John David Anglin
On 2018-09-23 4:06 AM, Michael Biebl wrote: One obvious difference is that 239-7 was compiled with meson 0.47.1-1, 239-8 and 239-9 with 0.47.2-1 The systemd build breaks completely with meson 0.48.0-1. Dave -- John David Anglin dave.ang...@bell.net

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-23 Thread John David Anglin
On 2018-09-23 9:27 AM, Michael Biebl wrote: Am 23.09.18 um 14:43 schrieb John David Anglin: On 2018-09-23 4:06 AM, Michael Biebl wrote: Am 23.09.18 um 10:01 schrieb Michael Biebl: There weren't any relevant changes between 239-7 and 239-9 afaics, which makes me think that this is rather a

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-23 Thread Michael Biebl
Am 23.09.18 um 14:43 schrieb John David Anglin: > On 2018-09-23 4:06 AM, Michael Biebl wrote: >> Am 23.09.18 um 10:01 schrieb Michael Biebl: >> >>> There weren't any relevant changes between 239-7 and 239-9 afaics, which >>> makes me think that this is rather a toolchain issue on hppa and not a

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-23 Thread John David Anglin
On 2018-09-23 4:06 AM, Michael Biebl wrote: Am 23.09.18 um 10:01 schrieb Michael Biebl: There weren't any relevant changes between 239-7 and 239-9 afaics, which makes me think that this is rather a toolchain issue on hppa and not a bug in systemd itself. Would be great if you can investigate

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-23 Thread Michael Biebl
Am 23.09.18 um 10:01 schrieb Michael Biebl: > There weren't any relevant changes between 239-7 and 239-9 afaics, which > makes me think that this is rather a toolchain issue on hppa and not a > bug in systemd itself. > > Would be great if you can investigate this. One obvious difference is that

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-23 Thread Michael Biebl
Control: tags -1 + moreinfo Am 23.09.18 um 09:48 schrieb Michael Biebl: > Control: tags -1 + help > > Am 23.09.18 um 00:45 schrieb John David Anglin: >> I believe the error message is correct. Please add "-fPIC" or "-fPIE" to the >> link command. > > Can you provide a tested patch? > I.e. one

Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

2018-09-23 Thread Michael Biebl
Control: tags -1 + help Am 23.09.18 um 00:45 schrieb John David Anglin: > Source: systemd > Version: 239-9 > Severity: normal > > Dear Maintainer, > > The build fails here: > > [416/1547] cc -o src/udev/ata_id > 'src/udev/src@udev@@ata_id@exe/ata_id_ata_id.c.o' -flto -Wl,--no-undefined >