Repository: go
Issue: x/build: build and test failures on openbsd-amd64 builders
Labels: OS-OpenBSD,Builders,NeedsInvestigation

```
#!watchflakes
default <- builder ~ `openbsd-amd64` && repo == "go" && (mode == "build" || pkg ~ `cmd/` || `resource temporarily unavailable` || `\[build failed\]`)
```
There have been various build and test failures on gotip-openbsd-amd64 builder, many are tests in cmd/ which involves in building some source code. Many failures (but not all) include "resource temporarily unavailable".
See also #66496, #66495, #66494, #66493, #66492, #66487, #66486, #66482.

Issue created automatically to collect these failures.

Example ([log](https://ci.chromium.org/b/8752866974899030961)):

    [I2024-03-21T02:31:29.087224-07:00 71644 0 sink.go:276] SinkServer: warm-up started
    [I2024-03-21T02:31:29.087481-07:00 71644 0 sink.go:346] SinkServer: starting HTTP server...
    [I2024-03-21T02:31:29.092237-07:00 71644 0 sink.go:281] SinkServer: warm-up ended
    [I2024-03-21T02:31:29.094772-07:00 71644 0 cmd_stream.go:473] rdb-stream: starting the test command - ["/home/swarming/.swarming/w/ir/cache/tools/bin/result_adapter" "go" "-v=false" "--" "/home/swarming/.swarming/w/ir/x/w/goroot/bin/go" "tool" "dist" "test" "-json" "cmd/go/internal/modfetch/codehost" "cmd/go/internal/modload" "cmd/go/internal/vcs" "cmd/go/internal/vcweb/vcstest" "cmd/gofmt" "cmd/internal/bootstrap_test" "cmd/internal/goobj" "cmd/internal/moddeps" "cmd/internal/obj/ppc64" "cmd/internal/obj/riscv" "cmd/internal/obj/x86" "cmd/link" "cmd/link/internal/ld" "cmd/objdump" "cmd/pprof" "cmd/vet" "hash/maphash:purego" "crypto/...:purego" "runtime:cpu1" "runtime:cpu2" "runtime:cpu4" "iter:iter" "sync:cpu10" "runtime/race:race" "flag:race" "net:race" "os:race" "os/exec:race" "encoding/gob:race" "flag:race-external" "os/exec:race-external" "cmd/cgo/internal/test:internal" "cmd/cgo/internal/test:external-g0" "cmd/cgo/internal/test:static" "cmd/cgo/internal/test:auto-static" "archive/tar" "bufio" "compress/bzip2" "crypto/ed25519" "crypto/hmac" "crypto/internal/alias" "crypto/internal/boring" "crypto/x509" "debug/buildinfo" "debug/elf" "debug/gosym" "embed" "encoding/base32" "encoding/base64" "encoding/hex" "encoding/json" "fmt" "go/doc" "go/printer" "go/scanner" "hash/fnv" "html/template" "image" "image/png" "internal/buildcfg" "internal/coverage/cmerge" "internal/coverage/slicereader" "internal/diff" "internal/itoa" "internal/xcoff" "log/slog" "net/http/httputil" "net/http/internal/ascii" "net/internal/cgotest" "net/smtp" "net/textproto" "path" "path/filepath" "regexp/syntax" "runtime/debug" "runtime/internal/wasitest" "testing/slogtest" "text/tabwriter" "cmd/cgo/internal/swig" "cmd/cgo/internal/testgodefs" "cmd/compile/internal/noder" "cmd/go/internal/modindex" "cmd/go/internal/par" "cmd/go/internal/toolchain" "cmd/go/internal/vcweb" "cmd/internal/archive" "cmd/internal/buildid" "cmd/internal/edit" "cmd/internal/obj" "cmd/cgo/internal/testtls:static" "cmd/internal/testdir:2_10" "cmd/internal/testdir:4_10" "cmd/internal/testdir:8_10"]
    debug/gosym: /home/swarming/.swarming/w/ir/x/w/goroot/pkg/tool/openbsd_amd64/compile: fork/exec /home/swarming/.swarming/w/ir/x/w/goroot/pkg/tool/openbsd_amd64/compile: resource temporarily unavailable
    go tool dist: Failed: exit status 1
    ok  	cmd/go/internal/modfetch/codehost	108.433s
    ok  	cmd/go/internal/modload	0.128s
    ok  	cmd/go/internal/vcs	0.147s
    ok  	cmd/go/internal/vcweb/vcstest	113.199s
    ...
    Warning: no '=' in invocation-link-artifacts pair: "", ignoring
    [I2024-03-21T02:34:34.180039-07:00 71644 0 cmd_stream.go:469] rdb-stream: the test process terminated
    [I2024-03-21T02:34:34.182768-07:00 71644 0 sink.go:371] SinkServer: shutdown started
    [I2024-03-21T02:34:34.183067-07:00 71644 0 sink.go:349] SinkServer: HTTP server stopped with "http: Server closed"
    [I2024-03-21T02:34:34.183112-07:00 71644 0 sink_server.go:95] SinkServer: draining TestResult channel started
    [I2024-03-21T02:34:34.615469-07:00 71644 0 sink_server.go:97] SinkServer: draining TestResult channel ended
    [I2024-03-21T02:34:34.615514-07:00 71644 0 sink_server.go:99] SinkServer: draining Artifact channel started
    [I2024-03-21T02:34:34.789840-07:00 71644 0 sink_server.go:101] SinkServer: draining Artifact channel ended
    [I2024-03-21T02:34:34.790157-07:00 71644 0 sink.go:374] SinkServer: shutdown completed successfully
    [I2024-03-21T02:34:34.790339-07:00 71644 0 cmd_stream.go:401] rdb-stream: exiting with 1


— [watchflakes](https://go.dev/wiki/Watchflakes)