calabs, Juhu, I too have an old eMachine, love it.
It has Debian 12 on it, I brought that up to date, installed the debian repo FPC 322, pulled down the current Lazarus 3.0 source and it built fine.
sudo apt update
sudo apt upgrade
sudo apt install fpc
mkdir -p bin/Lazarus/LazConfigs
cd bin/Lazarus
wget https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/lazarus_3_0/lazarus-lazarus_3_0.zip
unzip lazarus-lazarus_3_0.zip
mv lazarus-lazarus_3_0 lazarus_3_0
cd lazarus_3_0
cat > lazarus.cfg
--pcp=/home/dbannon/bin/Lazarus/LazConfigs/lazarus_3_0
ctrl-D
make bigide
(wait quite a while, poor little atom cpu working hard !)
All good !
(if you follow that set of commands, don't forget, your username is probably not "dbannon".)
Davo