I decided to press on and backed up my current Lazarus_aarch64 folder and my ~/.lazarus config folder. I installed FPC 3.2.2 and FPC 3.2.2 Src, although since seeing the comments about using 3.3.1, I've since deleted them again. Meanwhile, I downloaded the Aarch64 version of Lazarus, unzipped the file and placed the Lazarus folder under my /Applications folder and renamed it to Lazarus_4.0.
....
Sigh, you had a working FPC install, one that would probably have built Lazarus 4.0. All you needed to do was to download the Lazarus 4.0-rc1 source, into a suitable dir
in you home dir space, un zip it, cd into it and run "make bigide" !
If it built ok, you would then, sensibly,
copy your existing Lazarus config, point your new one to the copy (with a
lazarus.cfg file) and run "make useride") to build a functionally equivalent Lazarus, setup some way to start it easily and you are done !
Think of Lazarus as just another FPC project, if you can build a project with FPC, you can build Lazarus. If you can run a project built with FPC, you can run your Lazarus built with FPC !
Davo