I am attempting to configure Free Pascal 3.0 and Lazarus packages for Raspberry Pi and am running into a failure when making fpc.
Here are the steps leading to the failure:
I am starting with a working copy of fpc 2.6.4 linux arm on my Raspberry Pi.
I check out fpc branch fixes_3_0 from the free pascal subversion server on my Raspberry Pi.
I change to the fpc folder (containing branch fixes_3_0)and type "make all" on my Raspberry Pi.
After about five minutes of build time, the make process stops with the following output:
fpmake.pp(49) Warning: "crtend.o" not found, this will probably cause a linking failure
fpmake.pp(49) Warning: "crtn.o" not found, this will probably cause a linking failure
/usr/bin/ld: warning: link.res contains output sections; did you forget -T? /home/pi/Development/Base/fpc/rtl/units/arm-linux/cprt0.o: In function `_haltproc_eabi':
(.text+0x88): undefined reference to `_fini'
/home/pi/Development/Base/fpc/rtl/units/arm-linux/cprt0.o: In function `_haltproc_eabi':
(.text+0x90): undefined reference to `_init'
fpmake.pp(49) Error: Error while linking
fpmake.pp(49) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
Makefile:1658: recipe for target 'fpmake' failed
make[2]: *** [fpmake] Error 1
make[2]: Leaving directory '/home/pi/Development/Base/fpc/packages' Makefile:2616: recipe for target 'packages_smart' failed make[1]: *** [packages_smart] Error 2
make[1]: Leaving directory '/home/pi/Development/Base/fpc' Makefile:2812: recipe for target 'build-stamp.arm-linux' failed make: *** [build-stamp.arm-linux] Error 2
