https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68931
--- Comment #5 from Daniel Santos <daniel.santos at pobox dot com> --- Created attachment 49393 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49393&action=edit Patch for musl compatibility The root problem is that musl defines off64_t and loff_t as preprocessor macros. These end up in gen-sysinfo.go as "// undefinedmacro" entries. Perhaps the real solution would be for -fdump-go-spec to attempt to determine when a macro is for a type? There is also a problem currently with struct sysinfo being defined multiple times due to musl defining it in sys/sysinfo.h instead of including linux/sysinfo.h -- I've just altered the musl header for now.