My order for a fresh install for trunk/main on ubuntu linux64 is to install 3.2.2 first:
cd ~/
sudo apt install git
git clone
https://gitlab.com/freepascal.org/fpc/source.git fpc
sudo apt install build-essential
sudo apt install fp-compiler
Then rename the compiler:
sudo mv /usr/bin/ppcx64 /usr/bin/ppcx64-322
Then build the full compiler:
cd ~/fpc
sudo make clean all install PP=/usr/bin/ppcx64-322 PREFIX=/usr
Copy over the newly build compiler (or create a symlink).
sudo cp /usr/lib/fpc/3.3.1 ppcx64 /usr/bin
Ready.
In the case of a trunk/main install,you need to regularly update, say once a week or when you see an important commit or a feature anouncement.
Updating an install goes like this:
cd ~/fpc
git pull
sudo make clean all install PP=/usr/bin/ppcx64-322 PREFIX=/usr
sudo cp /usr/lib/fpc/3.3.1 ppcx64 /usr/bin
So the generic order for any linux is:
1. you need git, make sure it is installed
2. change to the usr root and clone the full fpc sources
3. make sure build-essential is installed
4. install and rename the bootstrap compiler (fp-compiler is enough)
5. change to ~/fpc and make with PP=the bootstrap compiler and the install prefix = /usr
6. copy or symlink the compiler from /usr/lib/fpc/<version, like 3.3.1>/ppc<platform> to /usr/bin
Ready.