-SNIP-
Ubuntu runs on the RPi5, RPi4, RPi3, RPi2zeroW etc
Latest version works fine for RPi5, with a more recent GCC than the buggy old RPi OS by the Raspberry people
As I've said already it is the Raspberry OS GCC that is broken, it says (TMPBUFSIZ/2)-1 is greater than TMPBUFSIZ (8192)
you can't fix that - obviously, you need to fix that GCC, which Raspberry will probably never bother to do, so don't use it, use a more recent Ubuntu
Thanks Kano,
With PI i've always used the stock images from Raspberry, I think its bullseye that I'm running on most of my boards, for the most part it just works.
Though with one of my set-ups I've seen some weird issues with USB and LIBUSB dissappears up its own behind. I think it might just be that one PI board though, all the rest run fine.
Its only on the PI5 there's ever been an issue with building CGMiner, for exactly the reasons you mention.
I worked around that by copying the binary from a build off an earlier PI, that works fine on the PI5. I've had that running one of my rigs for about 2 months now.
I've not tried running Ubuntu on PI. Now you've mentioned it I'll give it a go at some point.
Cheers
G.