Recent

Author Topic: Problems with /i386-linux/rtl/si_c21  (Read 562 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Problems with /i386-linux/rtl/si_c21
« on: May 11, 2023, 01:33:14 am »
Hello.

After upgrade to XUbuntu 23.04, I have problems when compiling-linking using fpc 3.2.2 i386 on the multiarch OS.

At linking there is that error:

Code: Pascal  [Select][+][-]
  1. /usr/bin/ld: /home/fred/fpc-i386-linux/units/i386-linux/rtl/si_c21.o: in function `SI_C21_$$__FPC_LIBC21_START':
  2. si_c21.pp:(.text.n_si_c21_$$__fpc_libc21_start+0x27): undefined reference to `__libc_csu_fini'
  3. /usr/bin/ld: si_c21.pp:(.text.n_si_c21_$$__fpc_libc21_start+0x2c): undefined reference to `__libc_csu_init'
  4. test.pas(12,1) Error: Error while linking
  5. test.pas(12,1) Fatal: There were 1 errors compiling module, stopping
  6. Fatal: Compilation aborted

I suppose it is related with this:
https://gitlab.com/freepascal.org/fpc/source/-/issues/39295

Is there a cure for this, maybe using fpc 3.2.3 ?
Strange that before upgrade, there was no problem to link using  fpc 3.2.2 i386 on the multiarch OS.
I have also a old VM Debian 10 and there no problem with  fpc 3.2.2 i386 on the multiarch OS.

Or I miss something as usual?

Thanks.

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

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: Problems with /i386-linux/rtl/si_c21
« Reply #1 on: May 11, 2023, 02:04:23 am »
Hello.

OK, compiling fpc from branch /source-fixes_3_2/ for i386 and using it fixe the problems.
Linking is ok now.  ;D

Code: Bash  [Select][+][-]
  1. Free Pascal Compiler version 3.2.3 [2023/05/11] for i386
  2. Copyright (c) 1993-2021 by Florian Klaempfl and others
  3. Target OS: Linux for i386
  4. Compiling test.pas
  5. ...
  6. Linking test
  7. 10 lines compiled, 0.1 sec

Sorry for the noise.

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