[fpc-pascal] Updated FPC from svn but make does not work..

Bo Berglund bo.berglund at gmail.com
Sun Nov 8 13:06:20 CET 2015


On Sun, 8 Nov 2015 12:14:10 +0100 (CET), Michael Van Canneyt
<michael at freepascal.org> wrote:

>> How am I supposed to update fpc 3.1.1?
>
>You must always start with a released (currently 2.6.4) compiler. 
>That is normal.
>
>To do this, you can e.g. make a symlink to the 2.6.4 compiler 
>(name it ppcarm-2.6.4) and use that when calling make:
>
>make all PP=ppcarm-2.6.4

Good suggestion!
I did this and fpc is now being built:
root at rpi2-jessie:/usr/local/fpc/source# time make all PP=ppcarm-2.6.4

Unfortunately it ends with an error:

/usr/local/fpc/source/rtl/units/arm-linux/cprt0.o: In function
`_haltproc_eabi':
(.text+0x88): undefined reference to `_fini'
/usr/local/fpc/source/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:1698: recipe for target 'fpmake' failed
make[2]: *** [fpmake] Error 1
make[2]: Leaving directory '/usr/local/fpc/source/packages'
Makefile:2699: recipe for target 'packages_smart' failed
make[1]: *** [packages_smart] Error 2
make[1]: Leaving directory '/usr/local/fpc/source'
Makefile:2895: recipe for target 'build-stamp.arm-linux' failed
make: *** [build-stamp.arm-linux] Error 2

real    12m33.806s
user    11m6.580s
sys     1m8.590s

If this can be solved:

Next question:
--------------
Do I need to also run the following commands afterwards:

 make install OPT=-dFPC_ARMHF PREFIX=/usr/local
 make install sourceinstall OPT=-dFPC_ARMHF PREFIX=/usr/local

and do these also need the PP=ppcarm-2.6.4 parameter?

-- 
Bo Berglund
Developer in Sweden




More information about the fpc-pascal mailing list