Repository: go
Issue: cmd/go: TestScript/build_issue6480 failures
Labels: NeedsInvestigation

```
#!watchflakes
default <- pkg == "cmd/go" && test == "TestScript/build_issue6480"
```

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8740892736608357473)):

    === RUN   TestScript/build_issue6480
    === PAUSE TestScript/build_issue6480
    === CONT  TestScript/build_issue6480
        script_test.go:135: 2024-07-31T13:33:47Z
        script_test.go:137: $WORK=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-3658158135/tmpdir1719308732/build_issue6480459020170
        script_test.go:159: 
            PATH=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-3658158135/tmpdir1719308732/testbin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/cache/tools/bin:/home/swarming/.swarming/w/ir/bbagent_utility_packages:/home/swarming/.swarming/w/ir/bbagent_utility_packages/bin:/home/swarming/.swarming/w/ir/cipd_bin_packages:/home/swarming/.swarming/w/ir/cipd_bin_packages/bin:/home/swarming/.swarming/w/ir/cipd_bin_packages/cpython3:/home/swarming/.swarming/w/ir/cipd_bin_packages/cpython3/bin:/home/swarming/.swarming/w/ir/cache/cipd_client:/home/swarming/.swarming/w/ir/cache/cipd_client/bin:/home/swarming/.swarming/cipd_cache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
            HOME=/no-home
            CCACHE_DISABLE=1
            GOARCH=386
    ...
            GOROOT='/home/swarming/.swarming/w/ir/x/w/goroot' /home/swarming/.swarming/w/ir/x/w/goroot/pkg/tool/linux_386/link -o $WORK/b001/errors.test -importcfg $WORK/b001/importcfg.link -X=runtime.godebugDefault=asynctimerchan=1,gotypesalias=0,httplaxcontentlength=1,httpmuxgo121=1,httpservecontentkeepheaders=1,netedns0=0,panicnil=1,tls10server=1,tls3des=1,tlskyber=0,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1 -buildmode=exe -buildid=XQDpGFl1Bf4EyKstHI9s/S5izqp-FPvRPDuU3DWxw/mind0_7HgbPN3Ga3Oa3W/XQDpGFl1Bf4EyKstHI9s -X testing.testBinary=1 -extld=gcc $WORK/b001/_pkg_.a
            /home/swarming/.swarming/w/ir/x/w/goroot/pkg/tool/linux_386/buildid -w $WORK/b001/errors.test # internal
            mkdir -p /home/swarming/.swarming/w/ir/x/t/cmd-go-test-3658158135/tmpdir1719308732/build_issue6480459020170/gopath/src/
            mv $WORK/b001/errors.test /home/swarming/.swarming/w/ir/x/t/cmd-go-test-3658158135/tmpdir1719308732/build_issue6480459020170/gopath/src/errors.test
            rm -rf $WORK/b001/
            > ! stderr '[\\/]link|gccgo' # make sure up-to-date test binary is not relinked
            matched: GOROOT='/home/swarming/.swarming/w/ir/x/w/goroot' /home/swarming/.swarming/w/ir/x/w/goroot/pkg/tool/linux_386/link -o $WORK/b001/errors.test -importcfg $WORK/b001/importcfg.link -X=runtime.godebugDefault=asynctimerchan=1,gotypesalias=0,httplaxcontentlength=1,httpmuxgo121=1,httpservecontentkeepheaders=1,netedns0=0,panicnil=1,tls10server=1,tls3des=1,tlskyber=0,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0,x509keypairleaf=0,x509negativeserial=1 -buildmode=exe -buildid=XQDpGFl1Bf4EyKstHI9s/S5izqp-FPvRPDuU3DWxw/mind0_7HgbPN3Ga3Oa3W/XQDpGFl1Bf4EyKstHI9s -X testing.testBinary=1 -extld=gcc $WORK/b001/_pkg_.a
        script_test.go:159: FAIL: testdata/script/build_issue6480.txt:22: stderr [\\/]link|gccgo: unexpected success
    2024/07/31 13:33:56 serving /git/retract-pseudo/git-upload-pack
    --- FAIL: TestScript/build_issue6480 (9.65s)


— [watchflakes](https://go.dev/wiki/Watchflakes)