On 2023/04/24 17:20, Matthieu Herrb wrote: > Hi, > > After some head scratching I figured out why I couldn't build lang/go > on one of my machines : > > I'm using git to get the ports tree from github on it. > > Sure it's not a supported configuration, but still it's a weird > failure mode. Any clue if I this can be fixed / worked around (other > than by moving .git away while building) ?
As a workaround, there's a good chance that this will disappear if you use something other than /usr/ports/pobj as your build directory (set WRKOBJDIR in mk.conf, perhaps to /home/pobj or something). > ===> Building for go-1.20.1 > Building Go cmd/dist using > /usr/ports/pobj/go-1.20.1/go-openbsd-amd64-bootstrap. (go1.19.4 openbsd/amd64) > Building Go toolchain1 using > /usr/ports/pobj/go-1.20.1/go-openbsd-amd64-bootstrap. > error obtaining VCS status: exit status 128 > Use -buildvcs=false to disable VCS stamping. > error obtaining VCS status: exit status 128 > Use -buildvcs=false to disable VCS stamping. > error obtaining VCS status: exit status 128 > Use -buildvcs=false to disable VCS stamping. > error obtaining VCS status: exit status 128 > Use -buildvcs=false to disable VCS stamping. > go tool dist: FAILED: > /usr/ports/pobj/go-1.20.1/go-openbsd-amd64-bootstrap/bin/go install > -tags=math_big_pure_go compiler_bootstrap purego bootstrap/cmd/...: exit > status 1 > *** Error 2 in . (Makefile:108 'do-build': @cd > /usr/ports/pobj/go-1.20.1/go/src && ulimit -S -d $(ulimit -H -d) && > /usr/bin/env -i GO386=...) > *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2956 > '/usr/ports/pobj/go-1.20.1/build-amd64/.build_done': @cd /usr/ports/lang/...) > *** Error 2 in /usr/ports/lang/go > (/usr/ports/infrastructure/mk/bsd.port.mk:2600 'all': @lock=go-1.20.1; > export _LOCKS_HELD=" go-1.20.1";...) >
