Forum > Linux
Unable to link Lazarus project under Debian 12 (32-bit)
fedkad:
I am in the latest 32-bit version of Debian with a freshly installed latest FPC (3.2.2) and Lazarus (2.2.6).
I am getting the following errors during linking:
Warning: linker: /usr/bin/ld: /usr/lib/fpc/3.2.2/units/i386-linux/rtl/si_c21.o: in function `SI_C21_$$__FPC_LIBC21_START':
Error: si_c21.pp:(.text.n_si_c21_$$__fpc_libc21_start+0x27): undefined reference to `__libc_csu_fini'
Warning: linker: /usr/bin/ld: si_c21.pp:(.text.n_si_c21_$$__fpc_libc21_start+0x2c): undefined reference to `__libc_csu_init'
I think there is a version problem with the library. The currently installed gcc --version is gcc (Debian 12.2.0-14) 12.2.0 and libc-bin/stable,now 2.36-9+deb12u1 i386.
myisjwj:
What if the si_c21.so file is missing from a directory like LazarusFPC\cross\lib\x86_64-linux
fedkad:
--- Quote from: myisjwj on August 27, 2023, 02:26:48 pm ---What if the si_c21.so file is missing from a directory like LazarusFPC\cross\lib\x86_64-linux
--- End quote ---
This is a test VirtualBox system created specifically for compiling 32-bit Linux projects. So, I am not cross-compiling. I am just trying to create a native 32-bit (i386) executable.
zeljko:
You should try with fpc fixes_3_0 (if possible), there are some related changes.
fedkad:
I gave up and installed fpc and lazarus from debian's repository, instead of downloading and installing manually from Lazarus' web site. The problem seems to be fixed.
Navigation
[0] Message Index
[#] Next page