Jump to content
@AT

Delphi 13, Linux64 target: linker error E2597

Recommended Posts

I'm trying to build my project fro Linux64 target with 13.0 and building fails with the:

[DCC Error] E2597 C:\Program Files (x86)\Embarcadero\Studio\37.0\bin\ld-linux.exe: error: cannot find -lgcc_s
  C:\Program Files (x86)\Embarcadero\Studio\37.0\bin\ld-linux.exe: error: cannot find -lc
  C:\Program Files (x86)\Embarcadero\Studio\37.0\bin\ld-linux.exe: error: cannot find -ldl
  C:\Program Files (x86)\Embarcadero\Studio\37.0\bin\ld-linux.exe: error: cannot find -lpthread
  C:\Program Files (x86)\Embarcadero\Studio\37.0\bin\ld-linux.exe: error: cannot find -lm
  c:\\program files (x86)\\embarcadero\\studio\\37.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_globals.o):C:\Projects\Ganymede\tp\runtime\rtl\common\regex\pcre\source\pcre_globals.c:pcre_malloc: error: undefined reference to 'malloc'
  c:\\program files (x86)\\embarcadero\\studio\\37.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_globals.o):C:\Projects\Ganymede\tp\runtime\rtl\common\regex\pcre\source\pcre_globals.c:pcre_free: error: undefined reference to 'free'
  c:\\program files (x86)\\embarcadero\\studio\\37.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_globals.o):C:\Projects\Ganymede\tp\runtime\rtl\common\regex\pcre\source\pcre_globals.c:pcre_stack_malloc: error: undefined reference to 'malloc'
  c:\\program files (x86)\\embarcadero\\studio\\37.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_globals.o):C:\Projects\Ganymede\tp\runtime\rtl\common\regex\pcre\source\pcre_globals.c:pcre_stack_free: error: undefined reference to 'free'
  c:\program files (x86)\embarcadero\studio\37.0\lib\Linux64\debug\SysInit.o:SysInit:function Sysinit::__malloc(unsigned long long): error: undefined reference to 'malloc'
  c:\program files (x86)\embarcadero\studio\37.0\lib\Linux64\debug\SysInit.o:SysInit:function Sysinit::__free(void*): error: undefined reference to 'free'
  c:\program files (x86)\embarcadero\studio\37.0\lib\Linux64\debug\SysInit.o:SysInit:function Sysinit::pthread_once(int&, void (*)()): error: undefined reference to 'pthread_once'
  c:\program files (x86)\embarcadero\studio\37.0\lib\Linux64\debug\SysInit.o:SysInit:function Sysinit::pthread_key_create(unsigned int&, void (*)(void*)): error: undefined reference to 'pthread_key_create'

...

Total 265 linker errors.

 

The Linux SDK (Ubuntu 24.04.x) is shared with the 12.3 and 13.0. and 12.3 continues building the project without issue. All required packages are installed in the Linux instance, PAServer works fine with 13.0.

I was trying to refresh, delete/import SDK, however, the issue is still there.

 

Has anyone see the same issue?

Edited by @AT

Share this post


Link to post

I had same behavior installing the linux only in the setup, then adding windows is working ok

btw. ubuntu should have built-essential installed

 

Edited by RDP1974

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×