https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86535
--- Comment #15 from Ian Lance Taylor <ian at airs dot com> --- I committed a patch that should fix the nanotime problem. Some of the other issues you describe will most likely require a fix in the libgo/mkrsysinfo.sh script, which generates the file runtime_sysinfo.go. For example, that is likely the problem with _CTL_HW and _HW_PAGESIZE. For sysctl we'll need a declaration with a //extern comment. I'm happy to advise but I don't realistically have the time to do the work myself.