https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86535
--- Comment #23 from Ian Lance Taylor <ian at airs dot com> --- Look for _kern in runtime.inc. See what struct it is part of. The struct is likely defined in the generated file runtime_sysinfo.go. You may need to modify libgo/mkrsysinfo.sh to not add that struct to runtime_sysinfo.go, or you may need to modify mkrsysinfo.sh to define __usem2.