Recent

Author Topic: ppc386: Error linking on last Ubuntu 22.10 multi-arch  (Read 2127 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 3305
    • StrumPract is the musicians best friend
ppc386: Error linking on last Ubuntu 22.10 multi-arch
« on: December 30, 2022, 11:16:42 pm »
Hello.

I have a brand new laptop and have installed Linux multi-arch 64/32 bit.
At first shot I wanted to install Debian 11 but the installation fails due to not recognized devices.
So I did try with last Ubuntu 22.10 and his "experimental" packages and all worked like charm, each device is recognized, perfect.
Also enable multi arch was ok, I can run all my old i386 applications.

After that, as usual, I installed fpc 64 and 32 bit on the machine.

When testing all was ok with fpc 64 but with fpc 32 bit, at linking, there is that error message:

Quote
Free Pascal Compiler version 3.2.2 [2021/05/16] for i386
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Linux for i386
(3104) Compiling test.pas
...
(9015) Linking test
/usr/bin/ld: /home/fred/fpc-3.2.2/lib/fpc/3.2.2/units/i386-linux/rtl/si_c21.o: in function `SI_C21_$$__FPC_LIBC21_START':
si_c21.pp:(.text.n_si_c21_$$__fpc_libc21_start+0x27): undefined reference to `__libc_csu_fini'
/usr/bin/ld: si_c21.pp:(.text.n_si_c21_$$__fpc_libc21_start+0x2c): undefined reference to `__libc_csu_init'
Error: (9013) Error while linking
Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted

Is it due because of the version of libc installed by Ubuntu (I did not have that message with Debian 11 and old libc.so) ?
The version of libc of Ubuntu 22.10 is: GLIBC 2.36-0ubuntu4.

Fre;D

PS: Sorry to come once again with a problem with libc, it is not wanted, I promise  :-[
« Last Edit: December 30, 2022, 11:48:46 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

MarkMLl

  • Hero Member
  • *****
  • Posts: 7507
Re: ppc386: Error linking on last Ubuntu 22.10 multi-arch
« Reply #1 on: December 30, 2022, 11:27:55 pm »
I've got a Deb-11 with multiarch already installed but no compilers or -dev packages... do you have a test project?

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Fred vS

  • Hero Member
  • *****
  • Posts: 3305
    • StrumPract is the musicians best friend
Re: ppc386: Error linking on last Ubuntu 22.10 multi-arch
« Reply #2 on: December 30, 2022, 11:33:10 pm »
Hello Mark.

With Debian 11 and his libc version 2.31, there are no problems at all.
I have still my old brave slow laptop with Debian 11 installed and all works like charm for multiarch.

The problem seems to come (imho) from the last libc.so.6 installed by Ubuntu, for fpc 32 bit a method __libc_csu_fin seems to not be accessible any more for libc.so 32 bit.
« Last Edit: December 31, 2022, 02:57:55 am by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

PascalDragon

  • Hero Member
  • *****
  • Posts: 5649
  • Compiler Developer
Re: ppc386: Error linking on last Ubuntu 22.10 multi-arch
« Reply #3 on: December 31, 2022, 04:56:50 pm »
See here. It should be fixed with 3.2.3 (and which is also why 3.2.4 is delayed, because it's not yet sure it's been fully fixed).

Fred vS

  • Hero Member
  • *****
  • Posts: 3305
    • StrumPract is the musicians best friend
Re: ppc386: Error linking on last Ubuntu 22.10 multi-arch
« Reply #4 on: December 31, 2022, 05:43:11 pm »
See here. It should be fixed with 3.2.3 (and which is also why 3.2.4 is delayed, because it's not yet sure it's been fully fixed).

Ha, ok, it is indeed the same issue. So waiting for 3.4.0. or 3.2.4.

Thanks Sven and happy new all.

Fre;D


I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

 

TinyPortal © 2005-2018