New comment by CameronNemo on void-packages repository https://github.com/void-linux/void-packages/issues/39083#issuecomment-1236160344 Comment: Also when trying to get a useful build log from failing go packages, you probably want to set XBPS_MAKEJOBS=1 so that the error is the last log message (or close to it). Multiple jobs typically causes the error to get lost in the shuffle of logs. For example this is the syncthing log I got:
log ``` => syncthing-1.20.4_1: running do_build ... WORK=/tmp/go-build3356811540 mkdir -p $WORK/b337/ cat >$WORK/b337/importcfg << 'EOF' # internal # import config packagefile crypto=/usr/lib/go/pkg/linux_amd64/crypto.a packagefile crypto/cipher=/usr/lib/go/pkg/linux_amd64/crypto/cipher.a packagefile crypto/tls=/host/gocache-glibc/3b/3be91765b0cd9a80c809f19b94dd68417dc956f9e4f0f268f2c71891d108d0f2-d packagefile github.com/marten-seemann/qtls-go1-18=/host/gocache-glibc/53/535e785ace1b5b21edab486fa8ffc6d61ebf334dd5a131445523cea347d10931-d packagefile net=/host/gocache-glibc/6a/6a24ec9242586a43d069abb6ff06ce7b50b4b4876a95ec785bf7ebd9cd4fec13-d EOF cd /builddir/syncthing-1.20.4 /usr/lib/go/pkg/tool/linux_amd64/compile -o $WORK/b337/_pkg_.a -trimpath "$WORK/b337=>" -p github.com/lucas-clemente/quic-go/internal/qtls -lang=go1.16 -complete -buildid Omu6ayi7ABK4vInTcMyh/Omu6ayi7ABK4vInTcMyh -goversion go1.19 -c=12 -nolocalimports -importcfg $WORK/b337/importcfg -pack ./_build-syncthing-xbps/pkg/mod/github.com/lucas-clemente/quic-go@v0.27.0/internal/qtls/go118.go ./_build-syncthing-xbps/pkg/mod/github.com/lucas-clemente/quic-go@v0.27.0/internal/qtls/go119.go # github.com/lucas-clemente/quic-go/internal/qtls _build-syncthing-xbps/pkg/mod/github.com/lucas-clemente/quic-go@v0.27.0/internal/qtls/go119.go:6:13: cannot use "The version of quic-go you're using can't be built on Go 1.19 yet. For more details, please see https://github.com/lucas-clemente/quic-go/wiki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built on Go 1.19 yet. F...) as int value in variable declaration => ERROR: syncthing-1.20.4_1: do_build: 'go install -p "$XBPS_MAKEJOBS" -mod="${go_mod_mode}" -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}' exited with 2 => ERROR: in do_build() at common/build-style/go.sh:43 ```