"compile: loop" error?


I’m using go-1.16 and I got message “compile: loop”. There are no context and no clues about the origin of this message. This is reproduced on Linux and Mac.

I does dichotomic remove of some parts of my code, and the result is not consistent: it seems the problem is due to a combination of things.

This is the output:

$ go build
# temp-domain-mail-tool
compile: loop

With the -x option:

$ go build -x
mkdir -p $WORK/b001/
cat >$WORK/b001/_gomod_.go << 'EOF' # internal
package main
import _ "unsafe"
//go:linkname __debug_modinfo__ runtime.modinfo
var __debug_modinfo__ = "0w\xaf\f\x92t\b\x02A\xe1\xc1\a\xe6\xd6\x18\xe6path\ttemp-domain-mail-tool\nmod\ttemp-domain-mail-tool\t(devel)\t\n\xf92C1\x86\x18 r\x00\x82B\x10A\x16\xd8\xf2"
cat >$WORK/b001/importcfg << 'EOF' # internal
# import config
packagefile context=/usr/local/go/pkg/darwin_amd64/context.a
packagefile encoding/json=/usr/local/go/pkg/darwin_amd64/encoding/json.a
packagefile flag=/usr/local/go/pkg/darwin_amd64/flag.a
packagefile fmt=/usr/local/go/pkg/darwin_amd64/fmt.a
packagefile net=/Users/thierryfournier/Library/Caches/go-build/82/821ee3c13ccac3f84a53ea40b659575104ff226b98f8dd96b38d1eb7996dcdf9-d
packagefile os=/usr/local/go/pkg/darwin_amd64/os.a
packagefile strings=/usr/local/go/pkg/darwin_amd64/strings.a
packagefile time=/usr/local/go/pkg/darwin_amd64/time.a
packagefile runtime=/usr/local/go/pkg/darwin_amd64/runtime.a
cd /Users/thierryfournier/git/ozon/wase/temp-domain-mail-tool
/usr/local/go/pkg/tool/darwin_amd64/compile -o $WORK/b001/_pkg_.a -trimpath "$WORK/b001=>" -p main -lang=go1.16 -complete -buildid ZJbHdRI69FnjpPJcVBJo/ZJbHdRI69FnjpPJcVBJo -goversion go1.16 -D "" -importcfg $WORK/b001/importcfg -pack -c=4 ./main.go ./tag_value.go $WORK/b001/_gomod_.go
# temp-domain-mail-tool
compile: loop

So, just a question: what is the “compile loop” message ? How can I debug it ?


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.