tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

go package build problem: go: cannot find GOROOT directory: 'go' binary is trimmed and GOROOT is not set



Hi!

I've upgraded one of my machines from 9.3 to 10.0rc1 and started a
small bulk build.

Most packages build fine, but I have a new-to-me problem with two go
packages.

For pkglint, it looks like this:

===> Installing dependencies for pkglint-23.2.4nb3
=> Tool dependency go121-1.21.4*: found go121-1.21.4
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Overriding tools for pkglint-23.2.4nb3
===> Extracting for pkglint-23.2.4nb3
/bin/mkdir -p /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/github.com/kr/pretty/@v
cp /usr/pkgsrc/distfiles//github.com_kr_pretty_@v_v0.2.1.mod /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/github.com/kr/pretty/@v/v0.2.1.mod
/bin/mkdir -p /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/github.com/kr/pretty/@v
cp /usr/pkgsrc/distfiles//github.com_kr_pretty_@v_v0.2.1.zip /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/github.com/kr/pretty/@v/v0.2.1.zip
/bin/mkdir -p /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/github.com/kr/pty/@v
cp /usr/pkgsrc/distfiles//github.com_kr_pty_@v_v1.1.1.mod /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/github.com/kr/pty/@v/v1.1.1.mod
/bin/mkdir -p /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/github.com/kr/text/@v
cp /usr/pkgsrc/distfiles//github.com_kr_text_@v_v0.1.0.mod /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/github.com/kr/text/@v/v0.1.0.mod
/bin/mkdir -p /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/github.com/kr/text/@v
cp /usr/pkgsrc/distfiles//github.com_kr_text_@v_v0.1.0.zip /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/github.com/kr/text/@v/v0.1.0.zip
/bin/mkdir -p /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/golang.org/x/crypto/@v
cp /usr/pkgsrc/distfiles//golang.org_x_crypto_@v_v0.6.0.mod /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/golang.org/x/crypto/@v/v0.6.0.mod
/bin/mkdir -p /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/golang.org/x/crypto/@v
cp /usr/pkgsrc/distfiles//golang.org_x_crypto_@v_v0.6.0.zip /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/golang.org/x/crypto/@v/v0.6.0.zip
/bin/mkdir -p /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/golang.org/x/sys/@v
cp /usr/pkgsrc/distfiles//golang.org_x_sys_@v_v0.5.0.mod /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/golang.org/x/sys/@v/v0.5.0.mod
/bin/mkdir -p /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/golang.org/x/sys/@v
cp /usr/pkgsrc/distfiles//golang.org_x_sys_@v_v0.5.0.zip /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/golang.org/x/sys/@v/v0.5.0.zip
/bin/mkdir -p /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/gopkg.in/check.v1/@v
cp /usr/pkgsrc/distfiles//gopkg.in_check.v1_@v_v1.0.0-20201130134442-10cb98267c6c.mod /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/gopkg.in/check.v1/@v/v1.0.0-20201130134442-10cb98267c6c.mod
/bin/mkdir -p /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/gopkg.in/check.v1/@v
cp /usr/pkgsrc/distfiles//gopkg.in_check.v1_@v_v1.0.0-20201130134442-10cb98267c6c.zip /usr/pkgsrc/pkgtools/pkglint/work/.goproxy/gopkg.in/check.v1/@v/v1.0.0-20201130134442-10cb98267c6c.zip
===> Patching for pkglint-23.2.4nb3
===> Creating toolchain wrappers for pkglint-23.2.4nb3
===> Configuring for pkglint-23.2.4nb3
=> Substituting "pkglint" in pkglint.go
===> Building for pkglint-23.2.4nb3
go: cannot find GOROOT directory: 'go' binary is trimmed and GOROOT is not set
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/pkgtools/pkglint
*** Error code 1


pkgsrc is up-to-date as of a couple hours ago and the bulk build
started with an empty binary package directory.

'go121 help' works fine.

Manually running (in ${WRKSRC}):

# go121 build
go: cannot find GOROOT directory: 'go' binary is trimmed and GOROOT is not set

doesn't work either.

Any ideas about this one?

Cheers,
 Thomas


Home | Main Index | Thread Index | Old Index