Hello!
Right now FreePascal has no support for the P5040, the developer Chain-Q is looking for a suitable machine:
"I would probably need a few days with permanent access to an X5000 with AmigaOS4 to fix this issue. If there is a volunteer X5000 owner in the Berlin area (Germany, EU), or surroundings, contact me at: charlie (at) amigaspirit (dot) hu."
https://blog.alb42.de/2020/06/20/freepascal-3-2-0/
FreePascal support
FreePascal support
Enjoy the power of ARexx http://aminet.net/package/gfx/conv/GPS2URL