View Issue Details

IDProjectCategoryView StatusLast Update
0037158FPCUtilitiespublic2020-07-15 22:43
ReporterDaniel Glöckner Assigned ToFlorian  
Status resolvedResolutionfixed 
Product Version3.3.1 
Fixed in Version3.3.1 
Summary0037158: fpcmkcfg doen not add -Fl to GCC directory
DescriptionThe fpcmkcfg utility contains a function GetDefaultGCCDir to add a -Fl line pointing to the GCC directory on x86 and PowerPC. But that line needs to be added on all architectures to find crtbegin.o and crtend.o, like it is done on {Free,Open,Net}BSD. PowerPC and x86 are special only because they have biarch toolchains. (Note that an AArch64 system might also be biarch, but one has to use separate GCC toolchains to build applications for the AArch64 and ARM architectures.)

Linking ../game/ultrastardx
ultrastardx.dpr(434) Warning: "crtbeginS.o" not found, this will probably cause a linking failure
ultrastardx.dpr(434) Warning: "crtendS.o" not found, this will probably cause a linking failure
/usr/bin/ld.bfd: warning: ../game/link.res contains output sections; did you forget -T?
/usr/bin/ld.bfd: lib/projectM/cwrapper/libprojectM-cwrapper.a(projectM-cwrapper.o): in function `__static_initialization_and_destruction_0':
/usr/include/libprojectM/Common.hpp:143: undefined reference to `__dso_handle'
/usr/bin/ld.bfd: ../game/ultrastardx: hidden symbol `__dso_handle' isn't defined
/usr/bin/ld.bfd: final link failed: bad value
ultrastardx.dpr(434) Error: Error while linking
ultrastardx.dpr(434) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcarm returned an error exitcode

__dso_handle is in crtbeginS.o
TagsNo tags attached.
Fixed in Revision45794
Attached Files


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-06-01 11:45 Daniel Glöckner New Issue
2020-07-15 22:43 Florian Assigned To => Florian
2020-07-15 22:43 Florian Status new => resolved
2020-07-15 22:43 Florian Resolution open => fixed
2020-07-15 22:43 Florian Fixed in Version => 3.3.1
2020-07-15 22:43 Florian Fixed in Revision => 45794
2020-07-15 22:43 Florian FPCTarget => -