First of all, I know pretty much nothing about Linux and have only recently begun to use it. Even then, I mostly use it for compiling my project for Linux (I mainly use macOS and Windows).
You are coming from Mac. On Mac (afaik) fpc is by default installed in such a way that it can build 64 and 32 bit binaries.
On the other Platforms this in not the case.
That gives 2 options.
- You have 2 independent fpc installs (rather tricky on linux).
- You use a cross compiler
On Windows there are installers for cross compilers. Once the cross compiler is installed you can change the "target" settings for the project.
If you use 2 independent fpc then you need to change compiler in Tools >Options.
I am not sure, if there is an installer for a cross compiler on linux.
If there is => good.
If not...
You could install an independent 32 bit fpc, but then the 2 fpc will have a fight for /etc/fpc.cfg
That can be solved, but needs a bit of knowlegde.
You can build a cross compiler yourself.
You can try fpcupdeluxe (I have not used it myself, but many people seem to think it is really good).