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
1 year 9 months ago - 1 year 9 months 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: 1 year 9 months 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
1 year 9 months 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

PilotLogic Architect and Core Programmer

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

More
1 year 9 months 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.

  • Jürgen Abel
  • Jürgen Abel's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • PASCAL Enthusiast
More
9 months 2 weeks ago #13002 by Jürgen Abel
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.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
9 months 2 weeks ago #13003 by Sternas Stefanos
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.