I have cracked it with some ugly hacks. fpmake was not linked to libraries correctly. The libraries not being where it wanted produced "No such file or directory" If you do
strings fpmake | grep lib
It will put out a lot of stuff but in there is hard coded libraries it tries to link to. They are:-
/lib/ld-linux-aarch64.so.1
/usr/lib/aarch64-linux-gnu/crti.o
/usr/lib/aarch64-linux-gnu/crtn.o
On my system the files are located :-
/lib64/ld-linux-aarch64.so.1
/usr/lib64/crti.o
/usr/lib64/crtn.o
The ugly hack is to sym link them so they are found.
I did not have any config files because install.sh call another script that calls fpmkcfg which did the same as fpmake. My hack fixes this too. The binary install of fpc works now too. I would like to know the correct way to point fpc to the original library versions so that programs compiled on one machine run on another. However first I shall install lazarus, tomorrow - it has been a long day.
Thanks for your help.
King regards
Duncan.