[Pkg-pascal-devel] Build failures on mipsel

Peter B peter at pblackman.plus.com
Thu Mar 30 10:59:02 BST 2023


On 27/03/2023 15:42, Peter B wrote:
> On 20/03/2023 14:26, Abou Al Montacir wrote:
>> Hi Peter,
>>
>> On Mon, 2023-03-20 at 13:23 +0000, Peter B wrote:
>>> but Lazarus stuff failed on the checksum problem.
>> I'll try to fix Bug#1032350 and then we will giveback again.
>
>
> Might be worth a try to giveback for winff & doublecmd
> Both these packages failed before on checksums.
>
>
> Both c-evo-dh & tomboy-ng have failed on some strange fPIC error
>
> ------------ tomboy-ng COMPILE COMMAND --------------------
>
>             .........
>
> /usr/bin/ld.bfd: /<<PKGBUILDDIR>>/source/lib/mipsel-linux/Tomboy_NG.or: warning: linking abicalls files with 
> non-abicalls files
> /usr/lib/mipsel-linux-gnu/fpc/3.2.2/units/mipsel-linux/rtl/cprt0.o: in function `_start':
> (.text+0x20): relocation R_MIPS_HI16 against `main_stub' cannot be used when making a shared object; recompile with -fPIC
> (.text+0x34): relocation R_MIPS_HI16 against `operatingsystem_parameter_argc' cannot be used when making a shared 
> object; recompile with -fPIC
> (.text+0x40): relocation R_MIPS_HI16 against `operatingsystem_parameter_argv' cannot be used when making a shared 
> object; recompile with -fPIC
> (.text+0x54): relocation R_MIPS_HI16 against `operatingsystem_parameter_envp' cannot be used when making a shared 
> object; recompile with -fPIC
> /usr/lib/mipsel-linux-gnu/fpc/3.2.2/units/mipsel-linux/rtl/cprt0.o: in function `main_stub':
> (.text+0x84): relocation R_MIPS_HI16 against `__fpc_ret_sp' cannot be used when making a shared object; recompile with 
> -fPIC
> (.text+0x8c): relocation R_MIPS_HI16 against `__fpc_ret_ra' cannot be used when making a shared object; recompile with 
> -fPIC
> (.text+0x94): relocation R_MIPS_HI16 against `main' cannot be used when making a shared object; recompile with -fPIC
> /usr/lib/mipsel-linux-gnu/fpc/3.2.2/units/mipsel-linux/rtl/cprt0.o: in function `_haltproc':
> (.text+0xa8): relocation R_MIPS_HI16 against `__fpc_ret_sp' cannot be used when making a shared object; recompile with 
> -fPIC
> (.text+0xb0): relocation R_MIPS_HI16 against `__fpc_ret_ra' cannot be used when making a shared object; recompile with 
> -fPIC
> ======================== ERROR, COMPILE FAILED source/tomboy-ng.log =====



I had a further look at this. Seems the problem stems from /rtl/linux/mips/cprt0.as
https://gitlab.com/freepascal.org/fpc/source/-/commits/main/rtl/linux/mips/cprt0.as


Its been worked on upstream, and there are several commits missing
from the latest official release. I don't know which git commit is in version 3.2.2
but its close to the 2016 version at e5a12319.

My guess, is that if the 2003042401 compile crash is fixed, those mipsel builds
( castle-game-engine, lazpaint, doublecmd )  may well fail on this link problem.

I suggest to patch the above file, but have no idea whether that would constitute a "small targeted" fix.


Cheers,
Peter






More information about the Pkg-pascal-devel mailing list