As tested with gcc 12.3.0 if you use the latest ubuntu (and any version in the last few years) on RPi it works fine.
Someone has already come to my pool #gekko channel with this error and verified that even the earlier versions
of the RPiOS compile OK also.
The error is clearly false.
If you check further up in your error output you will see that it is a bug in gcc, since it effectively claims
(TMPBUFSIZ / 2 - 1) is greater than TMPBUFSIZ
(which is obviously not correct)
api.c:5061 is:
However buf defined above that is:
So I can only guess there are rather blatant bugs in the version of gcc on the RPiOS
since obviously (TMPBUFSIZ / 2 - 1) is NOT greater than TMPBUFSIZ
Thanks for the info Kano,
I'd tried this on a Raspberry PI 5 a few times and ran into the same issues. I even tried downgrading GCC to 11 but that appears to have the same problem. There's no package for the PI5 distro for earlier versions of GCC than 11.
I've succesfully built CGMiner using GCC 10.2.1 on the PI3B and PI-Zero-2W and that is my main driver for my set-ups. While I can get the executable running on the PI5 it'd be nice to be able to build it there too.
I'm wondering if I can build GCC 10 from source, but thats giving me a headache just thinking about it.
Anyway, thanks for your help on this topic.