You have to compile the units first.

fpc -O3 -Us system
fpc -O3 fpintres
fpc -O3 sysinitpas
fpc -O3 -XsX -CX yourcode