OK, I have established, in this situation, that fpc, with an unmodified fpc.cfg, does not look in the dir Michael suggested -
"$FPC_DIR"/lib/fpc/3.3.1/units/arm-embedded/armv6m/eabi/rtl/files
but it does look in
"$FPC_DIR"/lib/fpc/3.3.1/units/arm-embedded/armv6m/files
# note: minus the eabi/rtl
Michael knows far (far, far) more than I about embedded, but I suggest that does solve the problem he is worried about ? 'armv6m' is enough to distinguish which cpu we are talking about ? As I understand it, armv6m implies ABI=eabi ? Dropping the 'rtl' is a pity but for obvious reasons, 'rtl' means something quite different in the embedded world (IMHO).
Of course, that approach would still involve changes to the Makefile, its the one who creates the original abbreviated subdir as demonstrated here (its obviously not a full list) -
==== This is after running make crossinstall but before the other, tidy up things =====
testFPC/FPC/fpc-3.3.1/lib/fpc/3.3.1/units/arm-embedded/rtl contains 63 files
-rw-r--r-- 1 dbannon dbannon 23296 Mar 9 11:37 charset.o
-rw-r--r-- 1 dbannon dbannon 18101 Mar 9 11:37 charset.ppu
-rw-r--r-- 1 dbannon dbannon 844608 Mar 9 11:37 classes.o
-rw-r--r-- 1 dbannon dbannon 954543 Mar 9 11:37 classes.ppu
....
-rw-r--r-- 1 dbannon dbannon 802772 Mar 9 11:37 system.o
-rw-r--r-- 1 dbannon dbannon 969333 Mar 9 11:37 system.ppu
....
-rw-r--r-- 1 dbannon dbannon 2020 Mar 9 11:37 uuchar.o
-rw-r--r-- 1 dbannon dbannon 1515 Mar 9 11:37 uuchar.ppu
==== However, we have missed these files, back in SRC ========
testFPC/FPC/SRC/fpc-3.3.1/fpc/rtl/embedded/arm/ contains 48 files
-rw-r--r-- 1 dbannon dbannon 3566 Nov 24 14:46 allwinner_a20.pp
-rw-r--r-- 1 dbannon dbannon 33207 Nov 24 14:46 at91sam7x256.pp
-rw-r--r-- 1 dbannon dbannon 2105 Nov 24 14:46 cortexm0.pp
....
-rw-r--r-- 1 dbannon dbannon 4531 Nov 24 14:46 raspi2.pp
-rw-r--r-- 1 dbannon dbannon 21574 Nov 24 14:46 rp2040.pp
....
-rw-r--r-- 1 dbannon dbannon 89634 Nov 24 14:46 stm32f756.pp
-rw-r--r-- 1 dbannon dbannon 26138 Nov 24 14:46 xmc4500.pp
WRT suggestions it should work like fpcupdeluxe, I still don't know what fpcupdeluxe does here, new error when compiling Lazarus and I don't see how I can just install a Pico FPC. Dare I mention, again, this is expected sometimes when you use main ?
(3104) Compiling lazutf8.pas
(3104) Compiling lazutilsstrconsts.pas
(3104) Compiling uitypes.pas
/home/dbannon/fpcupdeluxe/lazarus/components/lazutils/uitypes.pas(105,14) Error: (3285) Expected another 2 array elements
/home/dbannon/fpcupdeluxe/lazarus/components/lazutils/uitypes.pas(93,58) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /home/dbannon/fpcupdeluxe/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
fpcupdeluxe: ERROR: Lazarus Native Installer (BuildModuleCustom: Lazbuild): make returned exit status #512.
That leaves me with an incomplete fpc cross compiler, presumably because it does Lazarus before the cross compiler.
Davo