In order to compile freepascal and lazarus from source i have installed all those debs:
sudo apt-get install -y make build-essential p7zip-full gdb sudo apt-get install -y libcairo2-dev libpango1.0-dev libatk1.0-dev libghc-x11-dev sudo apt-get install -y libgtk2-gladexml-perl libgtk2.0-bin libgtk2.0-cil libwxgtk3.0-0v5 sudo apt-get install -y libgtk2.0-dev libgdk-pixbuf2.0-dev libgpm-dev fakeroot libncurses5-dev libtinfo-dev
--(bernd@Saturn)-(/home/bernd)--
--($)-- apt-rdepends --build-depends --follow=DEPENDS lazarus
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lazarus
Build-Depends: debhelper (>= 11~) <-- only if you want to make .deb packages
Build-Depends: dh-exec (>= 0.22) <-- only if you want to make .deb packages
Build-Depends: fp-utils (>= 3.2.0~) <-- of course not if you have it already installed otherwise
Build-Depends: fpc (>= 3.2.0~) <-- of course not if you have it already installed otherwise
Build-Depends: fpc-source (>= 3.2.0~) <-- of course not if you have it already installed otherwise
Build-Depends: libgtk2.0-dev
Build-Depends: libqt5pas-dev (>= 2.6~beta-6~)
Build-Depends: po-debconf <-- only if you want to make .deb packages
Build-Depends: rdfind <-- no idea, probably also only for .deb
Build-Depends: symlinks <-- dito.
--(bernd@Saturn)-(/home/bernd)--
--($)--
The messages "crti.o not found" and "crti.n not found" tells that your gcc is not uptodate.I found this on one of my colleagues machines caused by an outdated fpc.cfg, it pointed to a non existing directory (version numbers in directory name changed), probably due to an OS update long after fpc has been installed.