(Delphi Linux)ld-linux.exe:错误:找不到-lgcc_s

问题描述 投票:0回答:9

我已经设置了位于以下位置的 PAserver:

C:\Program Files (x86)\Embarcadero\Studio\19.0\PAServer\LinuxPAServer19.0.tar.gz
在我的 Ubuntu Gnome 16.10 虚拟机上。

请注意,我以前从未使用过 pa 服务器,这是我第一次使用它

之后我继续在Rad Studio 10.2上进行配置文件,测试连接成功。

编译后出现此错误:

[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\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:17775: error: undefined reference to '_Unwind_Resume'
  System.pas:16961: error: undefined reference to '_Unwind_Resume'
  System.pas:16998: 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::__raise(int): error: undefined reference to 'raise'
  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::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::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::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::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_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_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:17159: 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:24170: error: undefined reference to 'memcpy'
  System.pas:23916: error: undefined reference to 'memcpy'
  System.pas:23917: 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.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::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::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.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.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.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.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::__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::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::__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::__write(int, void*, NativeUInt): error: undefined reference to 'write'
  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::gnu_get_libc_version(): error: undefined reference to 'gnu_get_libc_version'
linux delphi paserver delphi-10.2-tokyo
9个回答
6
投票

1) 安装软件包

gcc-6
linux-compiler-gcc-6-x86

2) 更新 RAD 上所选 Linux SDK 版本的本地文件缓存 (在选项->SDK管理器->“底部按钮”)


4
投票

我通过删除 SDK 并重新添加它并在要求覆盖某些文件时选择

no to all
来解决此问题。


3
投票

如果您使用 Parallels Desktop 在 Mac 上进行开发,请确保文档上没有共享文件夹。这将导致出现此消息,因为用于交叉编译的 SDK 文件夹位于此类文件夹中。共享的形式是 \Mac\Home\Documents\Studio\SDKs,编译器不喜欢这种形式。 至少确保这些路径指向本地文件夹。

希望这有帮助。


2
投票

我在 CentOS 7 上遇到同样的问题,并通过以下方法解决了

[DCC 错误] E2597 C:\Program Files (x86)\Embarcadero\Studio 9.0 in\ld-linux.exe:错误:找不到 -lgcc_s

yum 安装 glibc-static

yum 安装 glibc-devel

yum 安装 zlib-devel

或者如果还不够

yum 安装 compat-libstdc++-33

yum 安装 compat-gcc-44-c++


2
投票

当您使用 Parallels VM 时,这个问题在 Delphi 10.3.3 Rio 中仍然出现(我不知道其他 VM 是否也会出现)。

问题在于虚拟机共享主机的 Documents 文件夹,该文件夹类似于“\Mac\Home\Documents\...”。

解决方案是将Linux SDK复制到VM内的文件夹中,例如文件夹“C:\Users\Public\Documents\Embarcadero\Studio\20.0\PlatformSDKs”(这是默认的本地文件夹)。

然后,将 Delphi“选项 | IDE | 环境变量”中的 BDSPLATFORMSDKSDIR 环境变量更改为您复制 Linux SDK 的本地文件夹。

最后,转到(选项 | 部署 | SDK Manager),选择 Linux SDK 并按“更新本地文件缓存”按钮。

完成。重新编译你的项目,它就会工作了。


0
投票

这是我的回答:

您缺少 gcc 软件包,因此您可以使用以下命令安装它:

sudo apt install gcc


0
投票

如果您碰巧在 Mac 上的 Parallels 上运行 Delphi,并且已完成此处建议的所有其他操作,但它仍然无法正常工作,我可以通过更改 Delphi IDE 中 BDSPLATFORMSDKSDIR 的环境变量来修复它。问题是,当我设置完这个后,Delphi 决定为我的本地项目等使用共享文件夹,我没有意识到这一点,但它也将 SDKs 文件夹放在那里。由于某种原因,它无法执行共享文件夹中的任何内容。

我刚刚使用指向我的公共文档文件夹的覆盖更改了 BDSPLATFORMSDKSDIR 值,然后返回到我安装的每个 Linux SDK 并刷新本地缓存。然后它从 Linux 重新安装所有库等,但安装到公共文档文件夹中。

然后所有问题都消失了。看起来这表现为一个 Linux 错误,但实际上这只是我从共享文件夹执行的 Windows 权限。

希望这可以帮助别人。


-1
投票

您必须安装官方支持的 Ubuntu Server 版本 16.04.2 LTS


-2
投票

尝试一下,在终端中:

1) 安装开发包,使用:

sudo apt-get install joe wget p7zip-完整的curl build-essential zlib1g-dev libcurl4-gnutls-dev

如果这还不够,请安装整个 SDK,如下所示:

2)

sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt update && sudo apt dist-upgrade && sudo apt install ubuntu-sdk-ide

希望对你有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.