You should also be aware that FPC needs the
gcc binary as it is used to get the path to the libgcc. Installing
gcc via apk on Alpine increases the size of the image by ~100mb.
/ # gcc -m32 -print-libgcc-file-name
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/libgcc.a
/ # gcc -m64 -print-libgcc-file-name
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/libgcc.a
Otherwise it throws several errors with
Could not find libgcc on installing FPC from official files as well as
│/bin/sh: gcc: not found on compiling the compiler and RTL with
make all.