Welcome, Guest
Username: Password: Remember me
CodeTyphon Platforms (Win32/64, GTK2/3/4, QT4/5/6, Cocoa, FpGUI etc) Development, discussions and problems
  • Page:
  • 1

TOPIC:

Linker warnings "crtbegin.o" not found, "crtend.o" on Raspberry 5 years 1 month ago #11251

  • Jürgen Abel
  • Jürgen Abel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • PASCAL Enthusiast
  • Posts: 8
  • Thank you received: 1
The path to crtbegin.o and crtend.o is missing on arm-linux for raspberry and causes some nasty linker warnings.
We have to locate the path using
sudo find / -name crtbegin.o

In my case, I had several files crtbegin.o on my system, so I used
/usr/lib/gcc/arm-linux-gnueabihf/6/crtbegin.o

Next we need to find the path to the fpc.cfg file of typhon32:
sudo find / -name fpc.cfg
/usr/local/codetyphon/fpc/fpc32/bin/arm-linux/fpc.cfg

Now we can add the path information by editing fpc.cfg:
nano /usr/local/codetyphon/fpc/fpc32/bin/arm-linux/fpc.cfg

and add the path inside the file:
# path to the gcclib
-Fl/usr/lib/gcc/arm-linux-gnueabihf/6

Done; the warnings don't show up any more.
The following user(s) said Thank You: Laurent

Please Log in or Create an account to join the conversation.

Last edit: by Jürgen Abel.

Linker warnings "crtbegin.o" not found, "crtend.o" on Raspberry 5 years 1 month ago #11252

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4443
  • Thank you received: 1074
Yes Sir
this is and our way-suggestion

I don't know why exists so many gcc versions... on Linux OS
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Linker warnings "crtbegin.o" not found, "crtend.o" on Raspberry 5 years 4 weeks ago #11260

  • Laurent
  • Laurent's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 6
  • Thank you received: 0
Thanks for the solution.

On my Ubuntu 16.04, the path is /usr/lib/gcc/i686-linux-gnu/5

Now, it's OK ... no warning.

Please Log in or Create an account to join the conversation.

Linker warnings "crtbegin.o" not found, "crtend.o" on Raspberry 4 years 1 month ago #13002

  • Jürgen Abel
  • Jürgen Abel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • PASCAL Enthusiast
  • Posts: 8
  • Thank you received: 1
Update:

The config file has a new name: "fpc.cnf" instead of "fpc.cfg".

Path in my case (I updated to codetyphon 6.6) is the same:

sudo find / -name fpc.cnf
/usr/local/codetyphon/fpc/fpc32/bin/arm-linux/fpc.cnf

Please Log in or Create an account to join the conversation.

Linker warnings "crtbegin.o" not found, "crtend.o" on Raspberry 4 years 1 month ago #13003

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4443
  • Thank you received: 1074
Yes
From CT 6.5 we have changed FPC configuration file from "fpc.cfg" to "fpc.cnf".
From CT 6.7 we have changed Pas2js configuration file from "pas2js.cfg" to "pas2js.cnf".

Because, many fpc.cfg and pas2js.cfg can exists in CT user HostPC at the same time.
This can break CodeTyphon Building...
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1