Skip to content

crtbeginS.o etc not found on mipsel

Summary

Folder for the gcc support files is not specified correctly in /etc/fpc.cfg on mipsel.
Builds on mipsel usually produce warnings

Warning: (9034) "crtbeginS.o" not found, this will probably cause a linking failure

then the link fails.

System Information

  • Operating system: <Debian 12 Bookworm>
  • Processor architecture:
  • Compiler version: <3.2.2+dfsg-18 [2023/01/07] for mipsel>
  • Device: <Server / Desktop>

Steps to reproduce

Attempt to build castle-game-engine or c-evo-dh

Example Project

https://tracker.debian.org/pkg/castle-game-engine
https://buildd.debian.org/status/package.php?p=castle-game-engine
https://tracker.debian.org/pkg/c-evo-dh
https://buildd.debian.org/status/package.php?p=c-evo-dh

What is the current bug behavior?

Builds fail at link step

What is the expected (correct) behavior?

Link should succeed

Relevant logs and/or screenshots

https://buildd.debian.org/status/fetch.php?pkg=castle-game-engine&arch=mipsel&ver=7.0%7Ealpha.2%2Bdfsg1-2&stamp=1666641050&raw=0
https://buildd.debian.org/status/fetch.php?pkg=c-evo-dh&arch=mipsel&ver=1.7-1&stamp=1676920476&raw=0
(If these links are outdated because of a rebuild,
drill down to the current build logs from the Example Project links abbove)

Possible fixes

Around line 2813 in packages/fpmkunit/src/fpmkunit.pp
there is a case statement with one line per linux architecture, but the line for mipsel is missing.
The result is that /etc/fpc.cfg on mipsel will not contain a valid folder for the gcc support files.
Need to add a line
mipsel: result := GetGccDirArch('cpumipsel','');

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information