Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Linux linker error in RadStudio Tokyo



Permlink Replies: 2 - Last Post: Apr 28, 2017 10:37 AM Last Post By: Quentin Correll
Eric Grajales

Posts: 9
Registered: 5/15/99
Linux linker error in RadStudio Tokyo
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 26, 2017 7:57 AM
Hi,

I just downloaded and installed Radstudio Tokyo on my Macbook Pro, running VMWare.
I'm compiling a simple hello world app.

I built an Ubunto 16.04.2 VM as specified in
http://chapmanworld.com/2016/12/29/configure-delphi-and-redhat-or-ubuntu-for-linux-development/
and also the Linux Wiki page. Then created the platform SDK, however,
during the linker stage I get library not found gcc_s, c, pthread, ...

I believe there is a linker option missing or some configuration option is incorrect.
In the /vmware/.../lib/x86_64-linux-gnu folder there's the libgcc_s.so.1, ... library files

Here is the link command during the build:

Embarcadero Delphi for Linux 64 bit compiler version 32.0
Copyright (c) 1983,2016 Embarcadero Technologies, Inc.
Linker command line: "c:\program files (x86)\embarcadero\studio\19.0\bin\ld-linux.exe"
-o .
Linux64
Release
Project1 -e _ZN8Project114initializationEv --gc-sections
--dynamic-list .
Linux64
Release
Project1.exp
-z relro --build-id --eh-frame-hdr -m elf_x86_64 --dynamic-linker /lib64/ld-linux-x86-64.so.2 -s
--sysroot "\\\\vmware-host
Shared Folders
Documents
Embarcader
Studio
SDKs
ubuntu16.04.sdk"
-L "c:
program files (x86)
embarcadero
studio
19.0
lib
Linux64
release"
-L "\\\\vmware-host
Shared Folders
Documents
Embarcadero
Studio
19.0
Imports"
-L "c:
program files (x86)
embarcadero
studio
19.0
Imports"
-L C:
Users
Public
Documents
Embarcadero
Studio
19.0
Dcp
Linux64
-L "c:
program files (x86)
embarcadero
studio
19.0
include"
-L "c:
program files (x86)
embarcadero
studio
19.0
redist
Linux64"
-L C:
Users
Public
Documents
Embarcadero
Studio
19.0
Bpl
Linux64
-L "\\\\vmware-host
Shared Folders
Documents
Embarcadero
Studio
SDKs
ubuntu16.04.sdk
lib
x86_64-linux-gnu"
-L "\\\\vmware-host
Shared Folders
Documents
Embarcadero
Studio
SDKs
ubuntu16.04.sdk
usr
lib
gcc
x86_64-linux-gnu
5"
-L "\\\\vmware-host
Shared Folders
Documents
Embarcadero
Studio
SDKs
ubuntu16.04.sdk
usr
lib
x86_64-linux-gnu"
@.
Linux64
Release
Project1.lnk -lgcc_s -lrtlhelper_PIC -lc -ldl -lpthread -lm -rpath $ORIGIN

Thanks,
Eric

Eric Grajales

Posts: 9
Registered: 5/15/99
Re: Linux linker error in RadStudio Tokyo
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 28, 2017 7:38 AM   in response to: Eric Grajales in response to: Eric Grajales
Found a solution.

Moved the platform SDK from VMWare shared folder to local C: drive, and
everything worked properly.

Eric

Quentin Correll


Posts: 2,412
Registered: 12/1/99
Re: Linux linker error in RadStudio Tokyo
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 28, 2017 10:37 AM   in response to: Eric Grajales in response to: Eric Grajales
Eric,

Thanks for the update!

--

Q -- XanaNews 1.19.1.372 - 2017-04-28 10:36:50
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02