https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103889
--- Comment #7 from John Doe <bau2wux4sh at pkv73 dot anonbox.net> --- (In reply to Andrew Pinski from comment #5) > I should note that libgo is not able to compile for musl on the FSF GCC > until just recently, after r12-5979. This patch is included with the Alpine version of GCC, see https://git.alpinelinux.org/aports/tree/main/gcc/0040-stddef.h-add-support-for-musl-typedef-macro-guards.patch there are also additional patches which need to be merged upstream before one can use gcc-go on musl (see the Alpine Git for the complete list). As I said: Alpine is currently working on upstreaming these patches. For example, https://gcc.gnu.org/pipermail/gcc-patches/2021-December/587142.html The problem described in this bug report should not be specific to any of those gccgo/libgo patches, it rather seems to be a problem with the default LIBRARY_PATH (see my previous comment). > Is there a way you can test GCC 12? I need to rebase the Alpine patchset for that GCC 12 then I assume, I could that do that if all else fails.