Bug#1121530: libreoffice: Please build with -fPIE on sparc64 to fix FTBFS

Rene Engelhard <[email protected]> Fri, 28 Nov 2025 14:29:53 +0100
Newsgroups gmane.linux.debian.devel.bugs.general,gmane.linux.debian.ports.sparc,gmane.linux.debian.devel.openoffice
Message-ID <[email protected]>
------CWL5OEDM8TDMPJJ3VNS75D3CGFN0L0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi,

I wouldn't be so=2Esure=2E Everywhere where rust is enabled it builds=2E  =
See the OOO_RUST_ARCHS setting in rules (im git: OOO_RUST_UNO_ARCHS) See th=
e experimental buildlogs=2E (Working is something else, see -powerpc)=2E

 If it didn't on sparc64 and the extension makefile assumes it's there wit=
hout a proper dependency=2E=2E=2E=2E (don't think it does, but=2E=2E)=2E=20

In any case that would be an other bug :) We will see with beta1=2E Or you=
 try on sid if you report against sid=2E=2E=2E

Regards=20

Rene

Am 28=2E November 2025 13:22:43 MEZ schrieb John Paul Adrian Glaubitz <gla=
ubitz@physik=2Efu-berlin=2Ede>:
>Hi,
>
>On Fri, 2025-11-28 at 12:02 +0100, John Paul Adrian Glaubitz wrote:
>> On Fri, 2025-11-28 at 09:46 +0100, John Paul Adrian Glaubitz wrote:
>> > On Fri, 2025-11-28 at 09:34 +0100, Rene Engelhard wrote:
>> > > Upstream patches related to/for lp-solve I mean:
>> > >=20
>> > > <https://git=2Elibreoffice=2Eorg/core/+/refs/heads/master/external/=
lpsolve/>
>> >=20
>> > Yes, I'm aware of this=2E
>> >=20
>> > > In any way you need to teach ccc -fPIE=2E But then I'd wonder why l=
p-solve in
>> > > Debian built=2E=2E=2E That one has "just" -fPIC=2E
>> >=20
>> > Please see my other mail=2E I said, I'm going to replace "-fpic" with=
 "-fPIC"=2E
>> >=20
>> > -fpic/-fPIC is for libraries, -fpie/-fPIE for executables=2E
>> >=20
>> > > See salsa=2Edebian=2Eorg/math-team/lp-solve
>> >=20
>> > Which confirms my theory ;-)=2E
>>=20
>> The attached patch replaces "-fpic" with "-fPIC" in the lp-solve build =
script which
>> seems to be enough to fix this particular build issue on sparc64=2E
>
>So, it gets beyond the previous linker problem now but fails while linkin=
g Rust code:
>
>[LNK] ExtensionLibrary/rust_uno-example=2Euno=2Eso
>/usr/bin/ld: cannot find -lrust_uno: No such file or directory
>collect2: error: ld returned 1 exit status
>make[1]: *** [/home/glaubitz/loffice/libreoffice-26=2E2=2E0~alpha1/solenv=
/gbuild/LinkTarget=2Emk:869: /home/glaubitz/loffice/libreoffice-26=2E2=2E0~=
alpha1/workdir/LinkTarget/ExtensionLibrary/rust_uno-
>example=2Euno=2Eso] Error 1
>make[1]: *** Waiting for unfinished jobs=2E=2E=2E=2E
>make: *** [Makefile:301: build] Error 2
>
>I assume that this is unrelated to sparc64=2E
>
>Adrian
>
>--=20
> =2E''`=2E  John Paul Adrian Glaubitz
>: :' :  Debian Developer
>`=2E `'   Physicist
>  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

------CWL5OEDM8TDMPJJ3VNS75D3CGFN0L0
Content-Type: text/html;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div dir=3D"auto">Hi,<br><br>I wouldn't be so=2Esu=
re=2E Everywhere where rust is enabled it builds=2E=C2=A0 See the OOO_RUST_=
ARCHS setting in rules (im git: OOO_RUST_UNO_ARCHS) See the experimental bu=
ildlogs=2E (Working is something else, see -powerpc)=2E<br><br> If it didn'=
t on sparc64 and the extension makefile assumes it's there without a proper=
 dependency=2E=2E=2E=2E (don't think it does, but=2E=2E)=2E <br><br>In any =
case that would be an other bug :) We will see with beta1=2E Or you try on =
sid if you report against sid=2E=2E=2E<br><br>Regards <br><br>Rene</div><br=
><br><div class=3D"gmail_quote"><div dir=3D"auto">Am 28=2E November 2025 13=
:22:43 MEZ schrieb John Paul Adrian Glaubitz &lt;glaubitz@physik=2Efu-berli=
n=2Ede&gt;:</div><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt=
 0pt 0=2E8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;=
">
<pre class=3D"k9mail"><div dir=3D"auto">Hi,<br><br>On Fri, 2025-11-28 at 1=
2:02 +0100, John Paul Adrian Glaubitz wrote:<br></div><blockquote class=3D"=
gmail_quote" style=3D"margin: 0pt 0pt 1ex 0=2E8ex; border-left: 1px solid #=
729fcf; padding-left: 1ex;"><div dir=3D"auto">On Fri, 2025-11-28 at 09:46 +=
0100, John Paul Adrian Glaubitz wrote:<br></div><blockquote class=3D"gmail_=
quote" style=3D"margin: 0pt 0pt 1ex 0=2E8ex; border-left: 1px solid #ad7fa8=
; padding-left: 1ex;"><div dir=3D"auto">On Fri, 2025-11-28 at 09:34 +0100, =
Rene Engelhard wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"m=
argin: 0pt 0pt 1ex 0=2E8ex; border-left: 1px solid #8ae234; padding-left: 1=
ex;"><div dir=3D"auto">Upstream patches related to/for lp-solve I mean:<br>=
<br>&lt;<a href=3D"https://git=2Elibreoffice=2Eorg/core/+/refs/heads/master=
/external/lpsolve/">https://git=2Elibreoffice=2Eorg/core/+/refs/heads/maste=
r/external/lpsolve/</a>&gt;<br></div></blockquote><div dir=3D"auto"><br>Yes=
, I'm aware of this=2E<br><br></div><blockquote class=3D"gmail_quote" style=
=3D"margin: 0pt 0pt 1ex 0=2E8ex; border-left: 1px solid #8ae234; padding-le=
ft: 1ex;"><div dir=3D"auto">In any way you need to teach ccc -fPIE=2E But t=
hen I'd wonder why lp-solve in<br>Debian built=2E=2E=2E That one has "just"=
 -fPIC=2E<br></div></blockquote><div dir=3D"auto"><br>Please see my other m=
ail=2E I said, I'm going to replace "-fpic" with "-fPIC"=2E<br><br>-fpic/-f=
PIC is for libraries, -fpie/-fPIE for executables=2E<br><br></div><blockquo=
te class=3D"gmail_quote" style=3D"margin: 0pt 0pt 1ex 0=2E8ex; border-left:=
 1px solid #8ae234; padding-left: 1ex;"><div dir=3D"auto">See salsa=2Edebia=
n=2Eorg/math-team/lp-solve<br></div></blockquote><div dir=3D"auto"><br>Whic=
h confirms my theory ;-)=2E<br></div></blockquote><div dir=3D"auto"><br>The=
 attached patch replaces "-fpic" with "-fPIC" in the lp-solve build script =
which<br>seems to be enough to fix this particular build issue on sparc64=
=2E<br></div></blockquote><div dir=3D"auto"><br>So, it gets beyond the prev=
ious linker problem now but fails while linking Rust code:<br><br>[LNK] Ext=
ensionLibrary/rust_uno-example=2Euno=2Eso<br>/usr/bin/ld: cannot find -lrus=
t_uno: No such file or directory<br>collect2: error: ld returned 1 exit sta=
tus<br>make[1]: *** [/home/glaubitz/loffice/libreoffice-26=2E2=2E0~alpha1/s=
olenv/gbuild/LinkTarget=2Emk:869: /home/glaubitz/loffice/libreoffice-26=2E2=
=2E0~alpha1/workdir/LinkTarget/ExtensionLibrary/rust_uno-<br>example=2Euno=
=2Eso] Error 1<br>make[1]: *** Waiting for unfinished jobs=2E=2E=2E=2E<br>m=
ake: *** [Makefile:301: build] Error 2<br><br>I assume that this is unrelat=
ed to sparc64=2E<br><br>Adrian<br><br></div></pre></blockquote></div></body=
></html>
------CWL5OEDM8TDMPJJ3VNS75D3CGFN0L0--