I build an arm cross-compiler with support for golang, but am getting
build error on gcc-11. I've tried a couple toolchain creators (ie
crosstool-ng) with the same results.
kernel 2.6.36.4
arm soft-float (no fpu)
using uclibc-ng for my c-library
runtime.inc (which I guess is generated because it's not present until
building) seems to be missing a couple struct definitions? I don't see
any includes, so I'm wondering if they somehow get missed in generation?
Please cc me.
thanks,
Lance
In file included from ../../../libgo/runtime/runtime.h:105,
from ../../../libgo/runtime/go-main.c:17:
./runtime.inc:1357:29: error: field ‘__state’ has incomplete type
1357 | struct ___mbstate_t __state;
| ^~~~~~~
./runtime.inc:1360:33: error: field ‘__lock’ has incomplete type
1360 | struct _pthread_mutex_t __lock;
| ^~~~~~