Free Pascal support arm64 architecture since version 3.2.0 The patch is trivial: --- gentoo/dev-lang/fpc/fpc-3.2.2.ebuild 2021-07-01 01:09:39.000000000 +0300 +++ pi/dev-lang/fpc/fpc-3.2.2.ebuild 2021-07-18 10:59:09.368572368 +0300 @@ -11,12 +11,13 @@ mirror://sourceforge/freepascal/fpc-${PV}.source.tar.gz amd64? ( mirror://sourceforge/freepascal/${P}.x86_64-linux.tar ) x86? ( mirror://sourceforge/freepascal/${P}.i386-linux.tar ) + arm64? ( mirror://sourceforge/freepascal/${P}.aarch64-linux.tar ) doc? ( mirror://sourceforge/freepascal/Documentation/${PV}/doc-html.tar.gz -> ${P}-doc-html.tar.gz )" S="${WORKDIR}/fpcbuild-${PV}/fpcsrc" LICENSE="GPL-2 LGPL-2.1-with-linking-exception" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~x86 ~arm64" IUSE="doc source" RESTRICT="strip" #269221 @@ -47,6 +48,10 @@ FPC_ARCH="i386" PV_BIN="${PV}" ;; + arm64) + FPC_ARCH="aarch64" + PV_BIN="${PV}" + ;; *) die "This ebuild doesn't support ${ARCH}" ;; esac @@ -79,6 +84,10 @@ FPC_ARCH="386" FPC_PARCH="i386" ;; + arm64) + FPC_ARCH="a64" + FPC_PARCH="aarch64" + ;; *) die "This ebuild doesn't support ${ARCH}" ;; esac Most likely support for arm 32 bits is very simple, too, but I do not have a Gentoo 32 bits to test. It is tested on Raspberry Pi 4B, tests on others arm platforms are welcome.
Thanks! *** This bug has been marked as a duplicate of bug 817899 ***