https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80803
--- Comment #3 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Looks like this arises from this code in libgo/Makefile.in: if $(SHELL) $(srcdir)/testsuite/gotest --goarch=$(GOARCH) --goos=$(GO\ OS) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfile\ s="$$files" $(GOTESTFLAGS) >>$@-testlog 2>&1; then \ echo "PASS: $(@D)" >> $@-testlog; \ echo "PASS: $(@D)"; \ echo "PASS: $(@D)" > $@-testsum; \ else \ echo "FAIL: $(@D)" >> $@-testlog; \ cat $@-testlog; \ echo "FAIL: $(@D)" > $@-testsum; \ exit 1; \ fi; \ gotest must be spewing garbage into net/check-testlog when $@=net/check, so presumably gotest (or something it invokes) is miscompiled. It must return failure to invoke "cat $@-testlog;".