[Pkg-pascal-devel] Bug#784569: fpc: fpc on arm64

Edmund Grimley Evans edmund.grimley.evans at gmail.com
Thu Oct 29 09:40:27 UTC 2015


> Do you by any chance would have a recipe to build this ppca64 by
> cross-compiling, starting with the current source in Debian?

Here's a recipe using the source in the Debian repo, if that counts.
I don't think the AArch64 back-end has been uploaded yet.


apt-get install binutils-aarch64-linux-gnu

git clone git://anonscm.debian.org/pkg-pascal/fpc.git
cd fpc/
git checkout experimental
# 481ad4c15ebc403a02661ec72ff67ea2a8e72248

# If things get messed up badly:
git reset --hard
git clean -dxf

perl -i -pe 's/^#// if /arm64/;' debian/patches/series 
quilt push -a

dpkg-buildpackage -B

cd fpcsrc/
utils/fpcm/bin/x86_64-linux/fpcmake -Tall `find -name Makefile.fpc`
make all OS_TARGET=linux CPU_TARGET=aarch64 \
  BINUTILSPREFIX=aarch64-linux-gnu- FPC=`pwd`/compiler/ppcx64

# You should now have compiler/ppca64



More information about the Pkg-pascal-devel mailing list