I anticipated needing to debug some stuff on an RPi that couldn't be done on a PC, since it needed simultaneous I2C and GPIO access.
Since I've recently upgraded my main development PC to (locally built) FPC 3.2.2 and Lazarus 2.2.0 I thought it appropriate to do the same on the RPi in case there were any issues with .lpi format etc. This is something I've done plenty of times before on various platforms.
Curiously, I was able to build both "all" and "bigide" for gtk2 and "all" for qt5, but "bigide" for qt5 failed in unpredictable ways.
It turns out that the RPi swapfile was set to 100Mb, editing /etc/dphys-swapfile to 2048Mb and rebooting fixed the problem.
I don't know whether Lazarus+qt5 suddenly requires more resources, whether the RPi upgrade I did a few weeks ago is defaulting to a smaller swapfile, or whether I last built FPC+Lazarus on that platform using Debian with a much larger swap partition. But it certainly looks as though swap <1024Mb won't work: I've normally assumed 512Mb as a safe minimum even on systems with vastly less RAM.
Of course, during the time it took me to sort that out I also fixed and tested the kernel modules that support a CH341A card, so was able to do the work on a PC after all.
MarkMLl