Forum

× CodeTyphon Platforms (Win, GTK2/3, QT4/5, Cocoa, etc) Development, discussions and problems

Idea Linker warnings "crtbegin.o" not found, "crtend.o" on Raspberry

  • Jürgen Abel
  • Jürgen Abel's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • PASCAL Enthusiast
More
8 months 2 weeks ago - 8 months 2 weeks ago #11251 by Jürgen Abel
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.
Last edit: 8 months 2 weeks ago by Jürgen Abel.
The following user(s) said Thank You: Laurent

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
8 months 2 weeks ago #11252 by Sternas Stefanos
Yes Sir
this is and our way-suggestion

I don't know why exists so many gcc versions... on Linux OS

CodeTyphon Architect and Programmer

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

More
8 months 2 weeks ago #11260 by Laurent
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.