ok for the latest version from GIT it says 'illegal processor' for Z80
Results as shown in my reply is based on git (when I posted, plusminus 10 minutes)
so can someone just tell me how to get the 'trunk' version. As I am not a GIT expert.
Do you have a working FPC 3.2.2 compiler that is able to compile from a terminal/command window ?
here is the large and complicated Make file from the wiki:
https://wiki.freepascal.org/Z80#ZX_Spectrum
That is not considered long and complicated but bare minimum that is necessary (you can omit the options that you don't use/need to save a few lines).
step 1:
https://wiki.freepascal.org/Installing_the_Free_Pascal_Compiler#Downloading_FPC_sources_from_Git_or_zipstep 2:
https://wiki.freepascal.org/Installing_the_Free_Pascal_Compiler#Compiling_the_FPC_source.2C_using_preinstalled_FPCthen follow the steps as in your link (minus the cloning as you already have done that in step 1). The rest of that article in your provided link is for creating the cross-compiler. Make sure to install to the same INSTALL_PREFIX directory as used in step 2
Before you can compile the cross compiler you need to make sure you have a working fpc.cfg file that is setup for the trunk compiler (so all paths should point to your INSTALL_PREFIX directory (or somewhere below that directory)).
If you want detailed instructions (do express that if wanted) and in case coming from me then you would have to wait a couple of hours for me to be able to get home.
Note that I do not know if the cross compiler is actually able to create a working executable for zx-spectrum and/or if other dependencies are required (zx-spectrum support /is/ experimental, so I have no idea).