[DCC Error] E2597 C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -lgcc_s

Issue #163 resolved
Former user created an issue

I just installed the trial version. When I try to compile with a new project I get the following:

#!

[DCC Error] E2597 C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -lgcc_s
  C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -lc
  C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -ldl
  C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -lpthread
  C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -lm
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_globals.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_globals.c:pcre_malloc: error: undefined reference to 'malloc'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_globals.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_globals.c:pcre_free: error: undefined reference to 'free'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_globals.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_globals.c:pcre_stack_malloc: error: undefined reference to 'malloc'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_globals.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_globals.c:pcre_stack_free: error: undefined reference to 'free'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\SysInit.o:SysInit:function Sysinit::__malloc(NativeUInt): error: undefined reference to 'malloc'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\SysInit.o:SysInit:function Sysinit::__free(void*): error: undefined reference to 'free'
  c:\program files (x86)\embarcadero\studio\19.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\19.0\lib\Linux64\debug\SysInit.o:SysInit:function Sysinit::pthread_key_create(unsigned int&, void (*)(void*)): error: undefined reference to 'pthread_key_create'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\SysInit.o:SysInit:function Sysinit::dladdr(NativeUInt, dl_info&): error: undefined reference to 'dladdr'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\SysInit.o:SysInit:function Sysinit::dlopen(char*, int): error: undefined reference to 'dlopen'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\SysInit.o:SysInit:function Sysinit::dlclose(NativeUInt): error: undefined reference to 'dlclose'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\SysInit.o:SysInit:function Sysinit::dlsym(NativeUInt, char*): error: undefined reference to 'dlsym'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\SysInit.o:SysInit:function Sysinit::TlsGetValue(unsigned int): error: undefined reference to 'pthread_getspecific'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\SysInit.o:SysInit:function Sysinit::TlsSetValue(unsigned int, void*): error: undefined reference to 'pthread_setspecific'
  SysInit.pas:1150: error: undefined reference to '_Unwind_Resume'
  System.pas:684: error: undefined reference to 'memset'
  System.pas:17796: error: undefined reference to '_Unwind_Resume'
  System.pas:16982: error: undefined reference to '_Unwind_Resume'
  System.pas:17019: error: undefined reference to '_Unwind_Resume'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::getenv(char*): error: undefined reference to 'getenv'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::__malloc(NativeUInt): error: undefined reference to 'malloc'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::calloc(NativeUInt, NativeUInt): error: undefined reference to 'calloc'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::realloc(void*, NativeUInt): error: undefined reference to 'realloc'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::__free(void*): error: undefined reference to 'free'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::__exit(int): error: undefined reference to 'exit'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::memmove(void*, void const*, NativeUInt): error: undefined reference to 'memmove'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::memset(void*, int, NativeUInt): error: undefined reference to 'memset'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::strlen(char*): error: undefined reference to 'strlen'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::__raise(int): error: undefined reference to 'raise'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::pthread_create(unsigned long&, pthread_attr_t*, void* (*)(void*), void*): error: undefined reference to 'pthread_create'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::pthread_self(): error: undefined reference to 'pthread_self'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::sched_yield(): error: undefined reference to 'sched_yield'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::dladdr(NativeUInt, dl_info&): error: undefined reference to 'dladdr'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::dlopen(char*, int): error: undefined reference to 'dlopen'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::dlclose(NativeUInt): error: undefined reference to 'dlclose'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::dlsym(NativeUInt, char*): error: undefined reference to 'dlsym'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::dlerror(): error: undefined reference to 'dlerror'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::open(char*, int): error: undefined reference to 'open'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::__chdir(char*): error: undefined reference to 'chdir'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::__close(int): error: undefined reference to 'close'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::fchdir(int): error: undefined reference to 'fchdir'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::ftruncate(int, long): error: undefined reference to 'ftruncate'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::getcwd(char*, NativeUInt): error: undefined reference to 'getcwd'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::lseek(int, long, int): error: undefined reference to 'lseek'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::__read(int, void*, NativeUInt): error: undefined reference to 'read'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::readlink(char*, char*, NativeUInt): error: undefined reference to 'readlink'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::sysconf(int): error: undefined reference to 'sysconf'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::usleep(unsigned int): error: undefined reference to 'usleep'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::__write(int, void*, NativeUInt): error: undefined reference to 'write'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::iconv(void*, char**, NativeUInt*, char**, NativeUInt*): error: undefined reference to 'iconv'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::iconv_open(char*, char*): error: undefined reference to 'iconv_open'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::iconv_close(void*): error: undefined reference to 'iconv_close'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::stat(char*, _stat&): error: undefined reference to 'stat'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::time(long*): error: undefined reference to 'time'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::mmap(void*, NativeUInt, int, int, int, long): error: undefined reference to 'mmap'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::munmap(void*, NativeUInt): error: undefined reference to 'munmap'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::__error(): error: undefined reference to '__errno_location'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::wcscoll_l(int const*, int const*, void*): error: undefined reference to 'wcscoll_l'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::towupper_l(unsigned int, void*): error: undefined reference to 'towupper_l'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::setlocale(int, char const*): error: undefined reference to 'setlocale'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::newlocale(int, char const*, void*): error: undefined reference to 'newlocale'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::gettimeofday(timeval&, void*): error: undefined reference to 'gettimeofday'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::times(tms&): error: undefined reference to 'times'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::fegetexceptflag(unsigned short*, unsigned int): error: undefined reference to 'fegetexceptflag'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::fesetexceptflag(unsigned short*, unsigned int): error: undefined reference to 'fesetexceptflag'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::fegetround(): error: undefined reference to 'fegetround'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::fesetround(unsigned int): error: undefined reference to 'fesetround'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::fedisableexcept(unsigned int): error: undefined reference to 'fedisableexcept'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::libm_expl(long double): error: undefined reference to 'expl'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::libm_cosl(long double): error: undefined reference to 'cosl'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::libm_sinl(long double): error: undefined reference to 'sinl'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::libm_tanl(long double): error: undefined reference to 'tanl'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::libm_logl(long double): error: undefined reference to 'logl'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::libm_atanl(long double): error: undefined reference to 'atanl'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::libm_sqrtl(long double): error: undefined reference to 'sqrtl'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::llrintl(long double): error: undefined reference to 'llrintl'
  System.pas:17180: error: undefined reference to 'memset'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::_Unwind_RaiseException(_Unwind_Exception&): error: undefined reference to '_Unwind_RaiseException'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::_Unwind_GetRegionStart(_Unwind_Context*): error: undefined reference to '_Unwind_GetRegionStart'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::_Unwind_GetLanguageSpecificData(_Unwind_Context*): error: undefined reference to '_Unwind_GetLanguageSpecificData'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::_Unwind_SetGR(_Unwind_Context*, int, NativeUInt): error: undefined reference to '_Unwind_SetGR'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::_Unwind_GetIP(_Unwind_Context*): error: undefined reference to '_Unwind_GetIP'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.o:System:function System::_Unwind_SetIP(_Unwind_Context*, NativeUInt): error: undefined reference to '_Unwind_SetIP'
  System.pas:24242: error: undefined reference to 'memcpy'
  System.pas:23988: error: undefined reference to 'memcpy'
  System.pas:23989: error: undefined reference to 'memcpy'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Dlfcn.o:Posix.Dlfcn:function Posix::Dlfcn::dladdr(NativeUInt, dl_info&): error: undefined reference to 'dladdr'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Dlfcn.o:Posix.Dlfcn:function Posix::Dlfcn::dlopen(char*, int): error: undefined reference to 'dlopen'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Dlfcn.o:Posix.Dlfcn:function Posix::Dlfcn::dlclose(NativeUInt): error: undefined reference to 'dlclose'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Dlfcn.o:Posix.Dlfcn:function Posix::Dlfcn::dlsym(NativeUInt, char*): error: undefined reference to 'dlsym'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Dlfcn.o:Posix.Dlfcn:function Posix::Dlfcn::dlerror(): error: undefined reference to 'dlerror'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Fcntl.o:Posix.Fcntl:function Posix::Fcntl::__open(char*, int): error: undefined reference to 'open'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Fcntl.o:Posix.Fcntl:function Posix::Fcntl::fcntl(int, int): error: undefined reference to 'fcntl'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.SysStat.o:Posix.SysStat:function Posix::Sysstat::chmod(char*, unsigned int): error: undefined reference to 'chmod'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.SysStat.o:Posix.SysStat:function Posix::Sysstat::fstat(int, _stat&): error: undefined reference to 'fstat'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.SysStat.o:Posix.SysStat:function Posix::Sysstat::lstat(char*, _stat&): error: undefined reference to 'lstat'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.SysStat.o:Posix.SysStat:function Posix::Sysstat::__mkdir(char*, unsigned int): error: undefined reference to 'mkdir'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.SysStat.o:Posix.SysStat:function Posix::Sysstat::stat(char*, _stat&): error: undefined reference to 'stat'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Signal.o:Posix.Signal:function Posix::Signal::sigaction(int, sigaction_t*, sigaction_t*): error: undefined reference to 'sigaction'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Signal.o:Posix.Signal:function Posix::Signal::sigaddset(sigset_t&, int): error: undefined reference to 'sigaddset'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Signal.o:Posix.Signal:function Posix::Signal::kill(int, int): error: undefined reference to 'kill'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Time.o:Posix.Time:function Posix::Time::clock_gettime(int, timespec*): error: undefined reference to 'clock_gettime'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Time.o:Posix.Time:function Posix::Time::localtime_r(long&, tm&): error: undefined reference to 'localtime_r'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Time.o:Posix.Time:function Posix::Time::mktime(tm&): error: undefined reference to 'mktime'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Time.o:Posix.Time:function Posix::Time::strftime(char*, unsigned long, char*, tm const&): error: undefined reference to 'strftime'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Time.o:Posix.Time:function Posix::Time::__time(long&): error: undefined reference to 'time'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Time.o:Posix.Time:function Posix::Time::time(long*): error: undefined reference to 'time'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.SysTime.o:Posix.SysTime:function Posix::Systime::gettimeofday(timeval&, void*): error: undefined reference to 'gettimeofday'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Locale.o:Posix.Locale:function Posix::Locale::localeconv(): error: undefined reference to 'localeconv'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Locale.o:Posix.Locale:function Posix::Locale::newlocale(int, char const*, void*): error: undefined reference to 'newlocale'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Locale.o:Posix.Locale:function Posix::Locale::freelocale(void*): error: undefined reference to 'freelocale'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Locale.o:Posix.Locale:function Posix::Locale::duplocale(void*): error: undefined reference to 'duplocale'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Locale.o:Posix.Locale:function Posix::Locale::uselocale(void*): error: undefined reference to 'uselocale'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Iconv.o:Posix.Iconv:function Posix::Iconv::iconv_open(char*, char*): error: undefined reference to 'iconv_open'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Iconv.o:Posix.Iconv:function Posix::Iconv::iconv_close(void*): error: undefined reference to 'iconv_close'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Dirent.o:Posix.Dirent:function Posix::Dirent::closedir(__dirstream*): error: undefined reference to 'closedir'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Dirent.o:Posix.Dirent:function Posix::Dirent::opendir(char*): error: undefined reference to 'opendir'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Dirent.o:Posix.Dirent:function Posix::Dirent::readdir_r(__dirstream*, dirent*, dirent*&): error: undefined reference to 'readdir_r'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Errno.o:Posix.Errno:function Posix::Errno::__error(): error: undefined reference to '__errno_location'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Fnmatch.o:Posix.Fnmatch:function Posix::Fnmatch::fnmatch(char*, char*, int): error: undefined reference to 'fnmatch'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Langinfo.o:Posix.Langinfo:function Posix::Langinfo::nl_langinfo(int): error: undefined reference to 'nl_langinfo'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Langinfo.o:Posix.Langinfo:function Posix::Langinfo::nl_langinfo_l(int, void*): error: undefined reference to 'nl_langinfo_l'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Sched.o:Posix.Sched:function Posix::Sched::sched_yield(): error: undefined reference to 'sched_yield'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_exit(int&): error: undefined reference to 'pthread_exit'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_detach(unsigned long): error: undefined reference to 'pthread_detach'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_join(unsigned long, void*&): error: undefined reference to 'pthread_join'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_mutex_init(pthread_mutex_t&, pthread_mutexattr_t&): error: undefined reference to 'pthread_mutex_init'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_mutex_init(pthread_mutex_t&, pthread_mutexattr_t*): error: undefined reference to 'pthread_mutex_init'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_mutex_destroy(pthread_mutex_t&): error: undefined reference to 'pthread_mutex_destroy'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_mutex_trylock(pthread_mutex_t&): error: undefined reference to 'pthread_mutex_trylock'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_mutex_lock(pthread_mutex_t&): error: undefined reference to 'pthread_mutex_lock'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_mutex_timedlock(pthread_mutex_t&, timespec): error: undefined reference to 'pthread_mutex_timedlock'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_mutex_unlock(pthread_mutex_t&): error: undefined reference to 'pthread_mutex_unlock'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_mutexattr_init(pthread_mutexattr_t&): error: undefined reference to 'pthread_mutexattr_init'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_mutexattr_settype(pthread_mutexattr_t&, int): error: undefined reference to 'pthread_mutexattr_settype'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_cond_init(pthread_cond_t&, pthread_condattr_t*): error: undefined reference to 'pthread_cond_init'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_cond_destroy(pthread_cond_t&): error: undefined reference to 'pthread_cond_destroy'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_cond_signal(pthread_cond_t&): error: undefined reference to 'pthread_cond_signal'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_cond_broadcast(pthread_cond_t&): error: undefined reference to 'pthread_cond_broadcast'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_cond_wait(pthread_cond_t&, pthread_mutex_t&): error: undefined reference to 'pthread_cond_wait'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_cond_timedwait(pthread_cond_t&, pthread_mutex_t&, timespec): error: undefined reference to 'pthread_cond_timedwait'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_setschedparam(unsigned long, int, sched_param&): error: undefined reference to 'pthread_setschedparam'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::pthread_getschedparam(unsigned long, int&, sched_param&): error: undefined reference to 'pthread_getschedparam'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pthread.o:Posix.Pthread:function Posix::Pthread::GetCurrentThreadID(): error: undefined reference to 'pthread_self'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Stdio.o:Posix.Stdio:function Posix::Stdio::__rename(char*, char*): error: undefined reference to 'rename'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Stdlib.o:Posix.Stdlib:function Posix::Stdlib::getenv(char*): error: undefined reference to 'getenv'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Stdlib.o:Posix.Stdlib:function Posix::Stdlib::calloc(NativeUInt, NativeUInt): error: undefined reference to 'calloc'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.String_.o:Posix.String_:function Posix::String_::memcmp(void const*, void const*, NativeUInt): error: undefined reference to 'memcmp'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.String_.o:Posix.String_:function Posix::String_::strcmp(char*, char*): error: undefined reference to 'strcmp'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.String_.o:Posix.String_:function Posix::String_::strerror_r(int, char*, NativeUInt): error: undefined reference to 'strerror_r'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::euidaccess(char*, int): error: undefined reference to 'access'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::__chdir(char*): error: undefined reference to 'chdir'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::__close(int): error: undefined reference to 'close'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::ftruncate(int, long): error: undefined reference to 'ftruncate'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::getcwd(char*, NativeUInt): error: undefined reference to 'getcwd'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::getpid(): error: undefined reference to 'getpid'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::lseek(int, long, int): error: undefined reference to 'lseek'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::pathconf(char*, int): error: undefined reference to 'pathconf'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::pipe(Posix::Unistd::TPipeDescriptors&): error: undefined reference to 'pipe'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::__read(int, void*, NativeUInt): error: undefined reference to 'read'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::readlink(char*, char*, NativeUInt): error: undefined reference to 'readlink'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::__rmdir(char*): error: undefined reference to 'rmdir'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::symlink(char*, char*): error: undefined reference to 'symlink'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::sysconf(int): error: undefined reference to 'sysconf'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::unlink(char*): error: undefined reference to 'unlink'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::usleep(unsigned int): error: undefined reference to 'usleep'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Unistd.o:Posix.Unistd:function Posix::Unistd::__write(int, void*, NativeUInt): error: undefined reference to 'write'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Utime.o:Posix.Utime:function Posix::Utime::utime(char*, utimbuf&): error: undefined reference to 'utime'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Pwd.o:Posix.Pwd:function Posix::Pwd::getpwnam_r(char*, passwd&, char*, NativeUInt, passwd*&): error: undefined reference to 'getpwnam_r'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Semaphore.o:Posix.Semaphore:function Posix::Semaphore::sem_destroy(sem_t&): error: undefined reference to 'sem_destroy'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Semaphore.o:Posix.Semaphore:function Posix::Semaphore::sem_getvalue(sem_t&, int&): error: undefined reference to 'sem_getvalue'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Semaphore.o:Posix.Semaphore:function Posix::Semaphore::sem_init(sem_t&, int, unsigned int): error: undefined reference to 'sem_init'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Semaphore.o:Posix.Semaphore:function Posix::Semaphore::sem_post(sem_t&): error: undefined reference to 'sem_post'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Semaphore.o:Posix.Semaphore:function Posix::Semaphore::sem_trywait(sem_t&): error: undefined reference to 'sem_trywait'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Semaphore.o:Posix.Semaphore:function Posix::Semaphore::sem_wait(sem_t&): error: undefined reference to 'sem_wait'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Semaphore.o:Posix.Semaphore:function Posix::Semaphore::sem_timedwait(sem_t&, timespec&): error: undefined reference to 'sem_timedwait'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.SysUtsname.o:Posix.SysUtsname:function Posix::Sysutsname::uname(utsname&): error: undefined reference to 'uname'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Wchar.o:Posix.Wchar:function Posix::Wchar::wcscoll_l(int const*, int const*, void*): error: undefined reference to 'wcscoll_l'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Wchar.o:Posix.Wchar:function Posix::Wchar::wcscasecmp_l(int const*, int const*, void*): error: undefined reference to 'wcscasecmp_l'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Wctype.o:Posix.Wctype:function Posix::Wctype::towlower_l(unsigned int, void*): error: undefined reference to 'towlower_l'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.Wctype.o:Posix.Wctype:function Posix::Wctype::towupper_l(unsigned int, void*): error: undefined reference to 'towupper_l'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.Internal.ExcUtils.o:System.Internal.ExcUtils:function System::Internal::Excutils::TlsGetValue(int): error: undefined reference to 'pthread_getspecific'
  System.SysUtils.pas:978: error: undefined reference to 'memset'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.SysUtils.o:System.SysUtils:function System::Sysutils::_statfs(char*, System::Sysutils::__statfs&): error: undefined reference to 'statfs'
  System.SysUtils.pas:10027: error: undefined reference to 'memcpy'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\System.SysUtils.o:System.SysUtils:function System::Sysutils::gnu_get_libc_version(): error: undefined reference to 'gnu_get_libc_version'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.SysMman.o:Posix.SysMman:function Posix::Sysmman::mmap(void*, NativeUInt, int, int, int, long): error: undefined reference to 'mmap'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.SysMman.o:Posix.SysMman:function Posix::Sysmman::munmap(void*, NativeUInt): error: undefined reference to 'munmap'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.StrOpts.o:Posix.StrOpts:function Posix::Stropts::ioctl(int, int): error: undefined reference to 'ioctl'
  c:\program files (x86)\embarcadero\studio\19.0\lib\Linux64\debug\Posix.SysSelect.o:Posix.SysSelect:function Posix::Sysselect::select(int, fd_set*, fd_set*, fd_set*, timeval*): error: undefined reference to 'select'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_compile.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_compile.c:function pcre_compile2: error: undefined reference to 'strncmp'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_compile.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_compile.c:function pcre_compile2: error: undefined reference to 'strncmp'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_compile.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_compile.c:function pcre_compile2: error: undefined reference to 'strncmp'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_compile.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_compile.c:function pcre_compile2: error: undefined reference to 'strncmp'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_compile.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_compile.c:function pcre_compile2: error: undefined reference to '__ctype_b_loc'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_compile.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_compile.c:function pcre_compile2: error: undefined reference to '__ctype_b_loc'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_compile.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_compile.c:function pcre_compile2: error: undefined reference to 'strlen'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_compile.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_compile.c:function pcre_compile2: error: undefined reference to 'memcmp'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_compile.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_compile.c:function pcre_compile2: error: undefined reference to 'memmove'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_compile.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_compile.c:function compile_regex: error: undefined reference to 'memmove'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_compile.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_compile.c:function compile_branch: error: undefined reference to 'memmove'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_compile.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_compile.c:function compile_branch: error: undefined reference to 'strcmp'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_exec.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_exec.c:function match: error: undefined reference to 'memcmp'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_exec.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_exec.c:function match: error: undefined reference to 'memcmp'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_exec.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_exec.c:function match: error: undefined reference to 'strcmp'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_get.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_get.c:function pcre_get_stringnumber: error: undefined reference to 'strcmp'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_maketables.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_maketables.c:function pcre_maketables: error: undefined reference to 'tolower'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_maketables.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_maketables.c:function pcre_maketables: error: undefined reference to '__ctype_b_loc'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_maketables.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_maketables.c:function pcre_maketables: error: undefined reference to 'toupper'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_maketables.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_maketables.c:function pcre_maketables: error: undefined reference to 'tolower'
  c:\\program files (x86)\\embarcadero\\studio\\19.0\\lib\\Linux64\\release/libpcre_PIC.a(pcre_maketables.o):C:\Builds\tp\runtime\rtl\common\regex\pcre\source\pcre_maketables.c:function pcre_maketables: error: undefined reference to 'memchr'
[DCC Fatal Error] F2588 Linker error code: 1 ($00000001)

Comments (4)

  1. Eugene Kryukov repo owner

    What Linux do you use ? It is not related to FmxLinux, it is core RTL units. Do you able to build console app ?

  2. Adriaan Boshoff

    Ubuntu 18.04 LTS

    I'm unable to build console apps. This must be something to do with my Rad Studio install. I'll try to repair it.

  3. Log in to comment