freebsd-amd64-12_3 at 089f437c6a90d763b62489d74aa4dab6a1f5b7da :: Running /tmp/workdir/go/src/make.bash with args ["/tmp/workdir/go/src/make.bash" "-force"] and env ["PATH=/bin:/sbin:/usr/bin:/usr/local/bin" "HOME=/" "RC_PID=28" "BLOCKSIZE=K" "WORKDIR=/tmp/workdir" "GOROOT_BOOTSTRAP=/tmp/workdir/go1.4" "GO_BUILDER_NAME=freebsd-amd64-12_3" "GOBIN=" "TMPDIR=/tmp/workdir/tmp" "GOCACHE=/tmp/workdir/gocache" "GOPLSCACHE=/tmp/workdir/goplscache" "PWD=/tmp/workdir/go/src"] in dir /tmp/workdir/go/src Building Go cmd/dist using /tmp/workdir/go1.4. (go1.20.6 freebsd/amd64) Building Go toolchain1 using /tmp/workdir/go1.4. Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1. Building Go toolchain2 using go_bootstrap and Go toolchain1. Building Go toolchain3 using go_bootstrap and Go toolchain2. Building packages and commands for freebsd/amd64. --- Installed Go for freebsd/amd64 in /tmp/workdir/go Installed commands in /tmp/workdir/go/bin *** You need to add /tmp/workdir/go/bin to your PATH. ##### Test execution environment. # GOARCH: amd64 # CPU: Intel(R) Xeon(R) CPU @ 2.20GHz # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok archive/tar 0.134s ok archive/zip 0.244s ok bufio 0.048s ok bytes 0.176s ok cmp 0.006s ok compress/bzip2 0.046s ok compress/flate 0.592s ok compress/gzip 1.066s ok compress/lzw 0.051s ok compress/zlib 0.344s ok container/heap 0.007s ok container/list 0.006s ok container/ring 0.023s ok context 0.021s ok crypto 0.283s ok crypto/aes 0.027s ok crypto/cipher 0.010s ok crypto/des 0.009s ok crypto/dsa 0.005s ok crypto/ecdh 0.033s ok crypto/ecdsa 0.025s ok crypto/ed25519 0.045s ok crypto/elliptic 0.009s ok crypto/hmac 0.004s ok crypto/internal/alias 0.006s ok crypto/internal/bigmod 0.046s ok crypto/internal/boring 0.004s ok crypto/internal/boring/bcache 0.066s ok crypto/internal/edwards25519 0.071s ok crypto/internal/edwards25519/field 0.015s ok crypto/internal/hpke 0.006s ok crypto/internal/mlkem768 0.254s ok crypto/internal/nistec 0.121s ok crypto/internal/nistec/fiat 0.003s [no tests to run] ok crypto/md5 0.005s ok crypto/rand 0.047s ok crypto/rc4 0.023s ok crypto/rsa 0.268s ok crypto/sha1 0.006s ok crypto/sha256 0.005s ok crypto/sha512 0.006s ok crypto/subtle 0.156s ok crypto/tls 0.401s ok crypto/x509 0.283s ok database/sql 0.513s ok database/sql/driver 0.012s ok debug/buildinfo 0.018s ok debug/dwarf 0.027s ok debug/elf 0.191s ok debug/gosym 0.025s ok debug/macho 0.017s ok debug/pe 0.030s ok debug/plan9obj 0.021s ok embed 0.021s [no tests to run] ok embed/internal/embedtest 0.020s ok encoding/ascii85 0.008s ok encoding/asn1 0.007s ok encoding/base32 0.020s ok encoding/base64 0.007s ok encoding/binary 0.011s ok encoding/csv 0.012s ok encoding/gob 2.704s ok encoding/hex 0.007s ok encoding/json 0.703s ok encoding/pem 1.180s ok encoding/xml 0.229s ok errors 0.011s ok expvar 0.009s ok flag 0.186s ok fmt 0.094s ok go/ast 0.019s ok go/build 2.571s ok go/build/constraint 0.022s ok go/constant 0.014s ok go/doc 0.062s ok go/doc/comment 0.889s ok go/format 0.009s ok go/importer 0.163s ok go/internal/gccgoimporter 0.011s ok go/internal/gcimporter 1.594s ok go/internal/srcimporter 5.349s ok go/parser 0.247s ok go/printer 0.254s ok go/scanner 0.005s ok go/token 0.013s ok go/types 8.523s ok go/version 0.006s ok hash 0.007s ok hash/adler32 0.014s ok hash/crc32 0.019s ok hash/crc64 0.019s ok hash/fnv 0.028s ok hash/maphash 0.248s ok html 0.015s ok html/template 0.076s ok image 0.079s ok image/color 0.052s ok image/draw 0.115s ok image/gif 0.159s ok image/jpeg 0.169s ok image/png 0.275s ok index/suffixarray 0.125s ok internal/abi 0.041s ok internal/buildcfg 0.004s ok internal/chacha8rand 0.020s ok internal/concurrent 0.146s ok internal/coverage/cfile 0.558s ok internal/coverage/cformat 0.019s ok internal/coverage/cmerge 0.020s ok internal/coverage/pods 0.021s ok internal/coverage/slicereader 0.016s ok internal/coverage/slicewriter 0.010s ok internal/coverage/test 0.008s ok internal/cpu 0.012s ok internal/dag 0.014s ok internal/diff 0.012s ok internal/fmtsort 0.012s ok internal/fuzz 0.015s ok internal/godebug 0.331s ok internal/godebugs 6.680s ok internal/gover 0.011s ok internal/itoa 0.006s ok internal/platform 1.712s ok internal/poll 0.027s ok internal/profile 0.005s ok internal/reflectlite 0.011s ok internal/runtime/atomic 0.070s ok internal/saferio 0.077s ok internal/singleflight 0.063s ok internal/sysinfo 0.011s ok internal/testenv 0.217s ok internal/trace 6.527s ok internal/trace/internal/oldtrace 0.199s ok internal/types/errors 1.540s ok internal/unsafeheader 0.018s ok internal/weak 0.105s ok internal/xcoff 0.026s ok internal/zstd 1.235s ok io 0.038s ok io/fs 0.298s ok io/ioutil 0.012s ok iter 0.009s ok log 0.013s ok log/slog 0.022s ok log/slog/internal/benchmarks 0.007s ok log/slog/internal/buffer 0.008s ok log/syslog 1.263s ok maps 0.008s ok math 0.010s ok math/big 0.748s ok math/bits 0.010s ok math/cmplx 0.006s ok math/rand 0.172s ok math/rand/v2 0.251s ok mime 0.017s ok mime/multipart 0.588s ok mime/quotedprintable 0.034s ok net 7.684s ##### Test execution environment. # GOARCH: amd64 # CPU: AMD EPYC 7B12 # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok net/http 3.310s ##### Test execution environment. # GOARCH: amd64 # CPU: Intel(R) Xeon(R) CPU @ 2.20GHz # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok net/http/cgi 0.127s ok net/http/cookiejar 0.009s ok net/http/fcgi 0.223s ok net/http/httptest 0.036s ok net/http/httptrace 0.007s ok net/http/httputil 0.587s ok net/http/internal 0.167s ok net/http/internal/ascii 0.005s ok net/http/pprof 5.229s ok net/internal/cgotest 0.003s ok net/internal/socktest 0.003s ok net/mail 0.007s ok net/netip 0.713s ok net/rpc 0.085s ok net/rpc/jsonrpc 0.033s ok net/smtp 0.022s ok net/textproto 0.085s ok net/url 0.033s ok os 0.464s ok os/exec 0.298s ok os/exec/internal/fdtest 0.005s ok os/signal 2.199s ok os/user 0.011s ok path 0.011s ok path/filepath 0.118s ok plugin 0.021s ok reflect 0.165s ok regexp 0.379s ok regexp/syntax 0.701s ok runtime 40.793s ok runtime/cgo 0.014s ok runtime/debug 0.097s ok runtime/internal/math 0.014s ok runtime/internal/sys 0.014s ok runtime/internal/wasitest 0.018s ok runtime/metrics 0.012s ##### Test execution environment. # GOARCH: amd64 # CPU: AMD EPYC 7B12 # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok runtime/pprof 15.494s ##### Test execution environment. # GOARCH: amd64 # CPU: Intel(R) Xeon(R) CPU @ 2.20GHz # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok runtime/trace 0.218s ok slices 0.179s ok sort 0.134s ok strconv 0.317s ok strings 0.509s ok sync 0.301s ok sync/atomic 0.359s ok testing/fstest 0.010s ok testing/iotest 0.008s ok testing/quick 0.043s ok syscall 1.428s ##### Test execution environment. # GOARCH: amd64 # CPU: AMD EPYC 7B12 # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok testing 2.220s ##### Test execution environment. # GOARCH: amd64 # CPU: Intel(R) Xeon(R) CPU @ 2.20GHz # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok testing/slogtest 0.009s ok text/scanner 0.019s ok text/tabwriter 0.007s ok text/template 0.020s ok text/template/parse 0.007s ok time 6.488s ok unicode 0.006s ok unicode/utf16 0.005s ok unicode/utf8 0.010s ok unique 0.062s ok cmd/addr2line 0.482s ok cmd/api 11.292s ok cmd/asm/internal/asm 0.377s ok cmd/asm/internal/lex 0.005s ok cmd/cgo/internal/swig 0.014s ok cmd/cgo/internal/test 0.255s ##### Test execution environment. # GOARCH: amd64 # CPU: AMD EPYC 7B12 # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/cgo/internal/testcarchive 41.413s ok cmd/cgo/internal/testcshared 3.489s ok cmd/cgo/internal/testerrors 6.745s ##### Test execution environment. # GOARCH: amd64 # CPU: Intel(R) Xeon(R) CPU @ 2.20GHz # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/cgo/internal/testfortran 0.011s ok cmd/cgo/internal/testgodefs 0.543s ok cmd/cgo/internal/testlife 0.618s ok cmd/cgo/internal/testnocgo 0.003s ok cmd/cgo/internal/testplugin 37.596s ok cmd/cgo/internal/testsanitizers 19.961s ok cmd/cgo/internal/testshared 0.004s ok cmd/cgo/internal/testtls 0.005s ok cmd/compile/internal/abt 0.007s ok cmd/cgo/internal/testso 1.280s ##### Test execution environment. # GOARCH: amd64 # CPU: AMD EPYC 7B12 # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/cgo/internal/teststdio 1.006s ##### Test execution environment. # GOARCH: amd64 # CPU: Intel(R) Xeon(R) CPU @ 2.20GHz # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/compile/internal/amd64 0.005s ok cmd/compile/internal/base 0.004s ok cmd/compile/internal/compare 0.004s ok cmd/compile/internal/devirtualize 0.004s ok cmd/compile/internal/logopt 0.171s ok cmd/compile/internal/dwarfgen 0.227s ok cmd/compile/internal/importer 0.883s ##### Test execution environment. # GOARCH: amd64 # CPU: AMD EPYC 7B12 # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/compile/internal/inline/inlheur 0.438s ok cmd/compile/internal/ir 0.003s ok cmd/compile/internal/liveness 0.013s ##### Test execution environment. # GOARCH: amd64 # CPU: Intel(R) Xeon(R) CPU @ 2.20GHz # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/compile/internal/loopvar 0.004s ##### Test execution environment. # GOARCH: amd64 # CPU: AMD EPYC 7B12 # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/compile/internal/noder 0.004s ok cmd/compile/internal/rangefunc 0.004s ##### Test execution environment. # GOARCH: amd64 # CPU: Intel(R) Xeon(R) CPU @ 2.20GHz # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/compile/internal/reflectdata 0.004s [no tests to run] ##### Test execution environment. # GOARCH: amd64 # CPU: AMD EPYC 7B12 # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/compile/internal/ssa 8.535s ok cmd/compile/internal/syntax 0.025s ok cmd/compile/internal/test 9.409s ok cmd/compile/internal/typecheck 0.198s ##### Test execution environment. # GOARCH: amd64 # CPU: Intel(R) Xeon(R) CPU @ 2.20GHz # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/compile/internal/types 0.003s ##### Test execution environment. # GOARCH: amd64 # CPU: AMD EPYC 7B12 # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/compile/internal/types2 5.948s ok cmd/covdata 0.006s ok cmd/cover 1.283s ##### Test execution environment. # GOARCH: amd64 # CPU: Intel(R) Xeon(R) CPU @ 2.20GHz # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/dist 0.004s ok cmd/distpack 0.004s ##### Test execution environment. # GOARCH: amd64 # CPU: AMD EPYC 7B12 # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/doc 0.069s ##### Test execution environment. # GOARCH: amd64 # CPU: Intel(R) Xeon(R) CPU @ 2.20GHz # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. ok cmd/fix 0.875s ##### Test execution environment. # GOARCH: amd64 # CPU: AMD EPYC 7B12 # GOOS: freebsd # OS Version: FreeBSD 12.3-STABLE FreeBSD 12.3-STABLE r371460 GENERIC amd64 ##### Testing packages. vcs-test.golang.org rerouted to http://127.0.0.1:59632 https://vcs-test.golang.org rerouted to https://127.0.0.1:59633 go test proxy running at GOPROXY=http://127.0.0.1:59636/mod --- FAIL: TestScript (0.05s) --- FAIL: TestScript/mod_import_cycle (0.03s) script_test.go:135: 2024-08-12T16:07:28Z script_test.go:137: $WORK=/tmp/workdir/tmp/cmd-go-test-814321081/tmpdir2095556787/mod_import_cycle456687678 script_test.go:159: > env GO111MODULE=on # 'go list all' should fail with a reasonable error message (0.027s) > ! go list all [stderr] package m imports m/a from m.go imports m/b from a.go imports m/a from b.go: import cycle not allowed [exit status 1] > stderr '^package m\n\timports m/a\n\timports m/b\n\timports m/a: import cycle not allowed' script_test.go:159: FAIL: testdata/script/mod_import_cycle.txt:5: stderr '^package m\n\timports m/a\n\timports m/b\n\timports m/a: import cycle not allowed': no match for `(?m)^package m\n\timports m/a\n\timports m/b\n\timports m/a: import cycle not allowed` in stderr --- FAIL: TestScript/list_test_cycle (0.07s) script_test.go:135: 2024-08-12T16:07:34Z script_test.go:137: $WORK=/tmp/workdir/tmp/cmd-go-test-814321081/tmpdir2095556787/list_test_cycle3115239071 script_test.go:159: > go list ./p [stdout] example/p > stdout 'example/p' matched: example/p > ! go list -json=ImportPath -test ./p [stderr] go: can't load test package: package : import cycle not allowed in test [exit status 1] > cmp stderr wanterr.txt diff stderr wanterr.txt --- stderr +++ wanterr.txt @@ -1,1 +1,4 @@ -go: can't load test package: package : import cycle not allowed in test +go: can't load test package: package example/p + imports example/q + imports example/r + imports example/p: import cycle not allowed in test script_test.go:159: FAIL: testdata/script/list_test_cycle.txt:5: cmp stderr wanterr.txt: stderr and wanterr.txt differ --- FAIL: TestScript/list_import_cycle_deps_errors (0.04s) script_test.go:135: 2024-08-12T16:07:37Z script_test.go:137: $WORK=/tmp/workdir/tmp/cmd-go-test-814321081/tmpdir2095556787/list_import_cycle_deps_errors1877400380 script_test.go:159: > go list -e -deps -json=ImportPath,Error,DepsErrors m/a [stdout] { "ImportPath": "m/c", "DepsErrors": [ { "ImportStack": [ "m/a", "m/b", "m/c", "m/a" ], "Pos": "", "Err": "import cycle not allowed" } ] } { "ImportPath": "m/b", "DepsErrors": [ { "ImportStack": [ "m/a", "m/b", "m/c", "m/a" ], "Pos": "", "Err": "import cycle not allowed" } ] } { "ImportPath": "m/a", "Error": { "ImportStack": [ "m/a", "m/b", "m/c", "m/a" ], "Pos": "", "Err": "import cycle not allowed" }, "DepsErrors": [ { "ImportStack": [ "m/a", "m/b", "m/c", "m/a" ], "Pos": "", "Err": "import cycle not allowed" } ] } > cmp stdout want diff stdout want --- stdout +++ want @@ -4,9 +4,9 @@ { "ImportStack": [ "m/a", - "m/b", - "m/c", - "m/a" + "m/b from a.go", + "m/c from b.go", + "m/a from c.go" ], "Pos": "", "Err": "import cycle not allowed" @@ -19,9 +19,9 @@ { "ImportStack": [ "m/a", - "m/b", - "m/c", - "m/a" + "m/b from a.go", + "m/c from b.go", + "m/a from c.go" ], "Pos": "", "Err": "import cycle not allowed" @@ -33,9 +33,9 @@ "Error": { "ImportStack": [ "m/a", - "m/b", - "m/c", - "m/a" + "m/b from a.go", + "m/c from b.go", + "m/a from c.go" ], "Pos": "", "Err": "import cycle not allowed" @@ -44,9 +44,9 @@ { "ImportStack": [ "m/a", - "m/b", - "m/c", - "m/a" + "m/b from a.go", + "m/c from b.go", + "m/a from c.go" ], "Pos": "", "Err": "import cycle not allowed" script_test.go:159: FAIL: testdata/script/list_import_cycle_deps_errors.txt:2: cmp stdout want: stdout and want differ FAIL FAIL cmd/go 31.385s FAIL go tool dist: Failed: exit status 1 Error: tests failed: dist test failed: {go_test:cmd/go cmd/go}: exit status 1