https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82043
--- Comment #6 from martin <mfe at live dot de> --- Created attachment 42122 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42122&action=edit recompiled-gcc7.2-with-patch ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:867:7: error: type mismatch between switch value and case clause case _MSpanStack: ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:871:7: error: type mismatch between switch value and case clause case _MSpanInUse: ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:887:10: error: incompatible types in assignment (cannot use type mSpanState as type uint8) s.state = _MSpanFree ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:904:26: error: incompatible types in binary expression if t != nil && t.state == _MSpanFree { ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:912:12: error: incompatible types in assignment (cannot use type mSpanState as type uint8) t.state = _MSpanDead ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:918:26: error: incompatible types in binary expression if t != nil && t.state == _MSpanFree { ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:924:12: error: incompatible types in assignment (cannot use type mSpanState as type uint8) t.state = _MSpanDead ^ ../../../gcc-7.2.0/libgo/go/runtime/mheap.go:1023:13: error: incompatible types in assignment (cannot use type mSpanState as type uint8) span.state = _MSpanDead ^ make[4]: *** [Makefile:3331: runtime.lo] Error 1 make[4]: Leaving directory '/c/media/gcc-7.2.0-go/sparc-unknown-linux-gnu/libgo' make[3]: *** [Makefile:2746: all-recursive] Error 1 make[3]: Leaving directory '/c/media/gcc-7.2.0-go/sparc-unknown-linux-gnu/libgo' make[2]: *** [Makefile:1344: all] Error 2 make[2]: Leaving directory '/c/media/gcc-7.2.0-go/sparc-unknown-linux-gnu/libgo' make[1]: *** [Makefile:18527: all-target-libgo] Error 2 make[1]: Leaving directory '/c/media/gcc-7.2.0-go' make: *** [Makefile:931: all] Error 2 nas-02-90-38:/media/gcc-7.2.0-go# nas-02-90-38:/media/gcc-7.2.0-go# /usr/local/bin/make >&log.log