[fpc-devel] Building 2.7.1 on current Raspbian fails
Paul Michell
Paul at michellcomputing.co.uk
Fri Oct 17 12:09:17 CEST 2014
I'm currently trying to build 2.7.1 from SVN on the latest Raspbian (2014-09-09).
I've previously built this with either 2.6.0 from the repository, or with Thaddy de Koning's build from March 2014.
Currently, neither of these will build 2.7.1 on a Raspberry Pi. So I have also tried with the generic arm-linux
release archive (fpc-2.6.4.arm-linux.tar). This installed without error and I can compile projects on the Pi with it.
However, when trying to build 2.7.1 (make all) it creates a compiler binary, but fails whilst compiling fpmake.
This looks similar to the bug 0024056 which is flagged as resolved. The solution suggested there is to install
build-essential, but this is installed by default on Raspbian, so I think there must be something else wrong?
Could anyone suggest what I could try now?
Thanks,
Paul Michell
------------------------------------------------------------------------------------------------
/home/pi/Projects/FreePascal/fpctmp/compiler/ppcarm fpmake.pp -Fu/home/pi/Projects/FreePascal/fpctmp/packages/fpmkunit/units_bs/arm-linux -Fu/home/pi/Projects/FreePascal/fpctmp/rtl/units/arm-linux
Free Pascal Compiler version 2.7.1 [2014/10/17] for arm
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Linux for ARMEL
Compiling fpmake.pp
fpmake.pp(16,3) Note: Local variable "T" is assigned but never used
Assembling fpmake
Linking fpmake
fpmake.pp(46) Warning: "crti.o" not found, this will probably cause a linking failure
fpmake.pp(46) Warning: "crtbegin.o" not found, this will probably cause a linking failure
fpmake.pp(46) Warning: "crtend.o" not found, this will probably cause a linking failure
fpmake.pp(46) 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/Projects/FreePascal/fpctmp/rtl/units/arm-linux/cprt0.o: In function `_haltproc_eabi':
(.text+0x88): undefined reference to `_fini'
/home/pi/Projects/FreePascal/fpctmp/rtl/units/arm-linux/cprt0.o: In function `_haltproc_eabi':
(.text+0x90): undefined reference to `_init'
fpmake.pp(46) Error: Error while linking
fpmake.pp(46) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Makefile:1645: recipe for target 'fpmake' failed
make[2]: *** [fpmake] Error 1
make[2]: Leaving directory '/home/pi/Projects/FreePascal/fpctmp/packages'
Makefile:2599: recipe for target 'packages_smart' failed
make[1]: *** [packages_smart] Error 2
make[1]: Leaving directory '/home/pi/Projects/FreePascal/fpctmp'
Makefile:2795: recipe for target 'build-stamp.arm-linux' failed
make: *** [build-stamp.arm-linux] Error 2
More information about the fpc-devel
mailing list