NetBSD-Users archive

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

problems upgrading go112 (and go111) on NetBSD-8.99.32/amd64



So, the following has been happening (and for go111), but I don't
understand the errors, nor have I any clue as to their cause.

Note that I do have Go 1.11.1 installed and working A-OK on this same
machine, but built against somewhat older OS.

	13:31 [510] $ go version
	go version go1.11.1 netbsd/amd64

	13:43 [516] $ /usr/sbin/pkg_info -Q BUILD_HOST go111
	NetBSD future 7.99.34 NetBSD 7.99.34 (XEN3_DOMU) #2: Sun Jul  9 15:31:37 PDT 2017  woods@future:/build/woods/future/current-amd64-amd64-obj/building/work/woods/m-NetBSD-current/sys/arch/amd64/compile/XEN3_DOMU amd64

The host is now a reasonably recent current build (running in a Xen
domU):

	NetBSD future 8.99.32 NetBSD 8.99.32 (XEN3_DOMU) #0: Mon Feb  4 15:01:05 PST 2019  woods@future:/build/woods/future/current-amd64-amd64-obj/building/work/woods/m-NetBSD-current/sys/arch/amd64/compile/XEN3_DOMU amd64

The only thing that I think I've done since upgrading (and upgrading
other packages) is to run "postinstall fix obsolete" to clean out a
bunch of old cruft, most notably old libraries (there was more than a
couple of years of cruft lying about).

When building the go111 package I encounter very similar errors.

I'm posting here instead of just submitting a PR or issue on github
because I've been unable to find very much at all relating to these
errors, and I don't know how to diagnose it much deeper.  On the other
hand I'll be first to admit that my installation isn't quite standard
(it's definitely not an out-of-the-stock-ISO install), and so I would
really like to dig deeper to find the root cause of the problem as I'm
guessing this is a problem specific to my system and not something more
generic as I've found no other complaints about upgrading Go on
NetBSD/amd64.

The only thing that's close seems to be about the confusing nature of
some of the linker errors:  https://github.com/golang/go/issues/29852
(but that's unrelated to the root cause of the specific errors I see)

(Adding '-v' to the "make.bash" invocation doesn't really show anything
more useful or interesting at all, especially not the exact command-line
that's failing.)

13:21 [506] $ cd lang/go112
/usr/pkgsrc/lang/go112
13:21 [507] $ make clean
===> Cleaning for go112-1.12.1nb1
make13:21 [508] $ make
=> Bootstrap dependency digest>=20010302: found digest-20180917
=> Checksum SHA1 OK for go1.12.1.src.tar.gz
=> Checksum RMD160 OK for go1.12.1.src.tar.gz
=> Checksum SHA512 OK for go1.12.1.src.tar.gz
===> Installing dependencies for go112-1.12.1nb1
=> Tool dependency gtar-base>=1.13.25: found gtar-base-1.30
=> Build dependency go14-1.4*: found go14-1.4.3nb7
=> Full dependency bash-[0-9]*: found bash-4.4.019
=> Full dependency perl>=5.0: found perl-5.28.0nb2
===> Overriding tools for go112-1.12.1nb1 (in /var/package-obj/woods/lang/go112/work/.tools)
===> Extracting for go112-1.12.1nb1
/bin/rm -r -f /var/package-obj/woods/lang/go112/work/go/test/fixedbugs/issue27836*
===> Patching for go112-1.12.1nb1
=> Applying pkgsrc patches for go112-1.12.1nb1
No such line 530 in input file, ignoring
===> Creating toolchain wrappers for go112-1.12.1nb1
=> Creating AS wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/as
==> Searching for 'AS' program in: /var/package-obj/woods/lang/go112/work/.wrapper/bin:/var/package-obj/woods/lang/go112/work/.buildlink/bin:/var/package-obj/woods/lang/go112/work/.gcc/bin:/var/package-obj/woods/lang/go112/work/.tools/bin:/usr/pkg/bin:/home/more/woods/go/bin:/home/more/woods/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/usr/X11R7/bin:/usr/games:
==> using '/usr/bin/as' for AS wrapper script
=> Creating CC wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/gcc
=> Linking CC wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/cc
=> Linking CC wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/ada
=> Creating CPP wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/cpp
=> Creating CXX wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/c++
=> Linking CXX wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/g++
=> Linking CXX wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/CC
=> Linking CXX wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/cxx
=> Creating FC wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/gfortran
=> Linking FC wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/f77
=> Linking FC wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/g77
=> Creating LD wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/ld
==> Searching for 'LD' program in: /var/package-obj/woods/lang/go112/work/.wrapper/bin:/var/package-obj/woods/lang/go112/work/.buildlink/bin:/var/package-obj/woods/lang/go112/work/.gcc/bin:/var/package-obj/woods/lang/go112/work/.tools/bin:/usr/pkg/bin:/home/more/woods/go/bin:/home/more/woods/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/usr/X11R7/bin:/usr/games:
==> using '/usr/bin/ld' for LD wrapper script
=> Creating AR wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/ar
==> Searching for 'AR' program in: /var/package-obj/woods/lang/go112/work/.wrapper/bin:/var/package-obj/woods/lang/go112/work/.buildlink/bin:/var/package-obj/woods/lang/go112/work/.gcc/bin:/var/package-obj/woods/lang/go112/work/.tools/bin:/usr/pkg/bin:/home/more/woods/go/bin:/home/more/woods/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/usr/X11R7/bin:/usr/games:
==> using '/usr/bin/ar' for AR wrapper script
=> Creating RANLIB wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/ranlib
==> Searching for 'RANLIB' program in: /var/package-obj/woods/lang/go112/work/.wrapper/bin:/var/package-obj/woods/lang/go112/work/.buildlink/bin:/var/package-obj/woods/lang/go112/work/.gcc/bin:/var/package-obj/woods/lang/go112/work/.tools/bin:/usr/pkg/bin:/home/more/woods/go/bin:/home/more/woods/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/usr/X11R7/bin:/usr/games:
==> using '/usr/bin/ranlib' for RANLIB wrapper script
BuildLink packages:
===> Configuring for go112-1.12.1nb1
=> Replacing bash interpreter in doc/articles/wiki/test.bash doc/codewalk/run lib/time/update.bash misc/arm/a misc/benchcmp misc/cgo/fortran/test.bash misc/cgo/testgodefs/test.bash misc/cgo/testplugin/test.bash misc/nacl/go_nacl_386_exec misc/nacl/go_nacl_amd64p32_exec misc/nacl/go_nacl_arm_exec misc/wasm/go_js_wasm_exec src/all.bash src/androidtest.bash src/bootstrap.bash src/buildall.bash src/clean.bash src/cmd/go/mkalldocs.sh src/cmd/vendor/github.com/google/pprof/internal/binutils/testdata/build_mac.sh src/cmd/vendor/golang.org/x/sys/unix/mkall.sh src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh src/internal/trace/mkcanned.bash src/internal/x/fiximports.bash src/iostest.bash src/make.bash src/naclmake.bash src/nacltest.bash src/race.bash src/run.bash src/runtime/mknacl.sh src/syscall/mkall.sh src/syscall/mkerrors.sh src/syscall/mksysnum_plan9.sh.
=> Replacing Perl interpreter in src/cmd/vendor/golang.org/x/sys/unix/*.pl src/net/http/cgi/testdata/test.cgi src/regexp/syntax/make_perl_groups.pl src/syscall/*.pl.
===> Building for go112-1.12.1nb1
cd /var/package-obj/woods/lang/go112/work/go/src && env GOROOT_BOOTSTRAP=/usr/pkg/go14 GOROOT_FINAL=/usr/pkg/go112  /usr/pkg/bin/bash ./make.bash
Building Go cmd/dist using /usr/pkg/go14.
Building Go toolchain1 using /usr/pkg/go14.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
Building packages and commands for netbsd/amd64.
# cmd/trace
.dynsym: missing Go type information for global symbol: size 72
net(.text): relocation target __errno not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target getnameinfo not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target __errno not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target getaddrinfo not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target freeaddrinfo not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target gai_strerror not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __libc_mutex_lock not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __libc_cond_wait not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __libc_mutex_unlock not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __libc_cond_broadcast not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target pthread_create not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __nanosleep50 not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target pthread_detach not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target strerror not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __sF not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target fprintf not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target abort not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target free not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __sigaltstack14 not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target pthread_attr_init not defined for ABI0 (but is defined for ABI0)
/build/package-obj/woods/lang/go112/work/go/pkg/tool/netbsd_amd64/link: too many errors
# cmd/go
.dynsym: missing Go type information for global symbol: size 72
net(.text): relocation target __errno not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target getnameinfo not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target __errno not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target getaddrinfo not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target freeaddrinfo not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target gai_strerror not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __libc_mutex_lock not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __libc_cond_wait not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __libc_mutex_unlock not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __libc_cond_broadcast not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target pthread_create not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __nanosleep50 not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target pthread_detach not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target strerror not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __sF not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target fprintf not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target abort not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target free not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __sigaltstack14 not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target pthread_attr_init not defined for ABI0 (but is defined for ABI0)
/build/package-obj/woods/lang/go112/work/go/pkg/tool/netbsd_amd64/link: too many errors
# cmd/pprof
.dynsym: missing Go type information for global symbol: size 72
net(.text): relocation target __errno not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target getnameinfo not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target __errno not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target getaddrinfo not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target freeaddrinfo not defined for ABI0 (but is defined for ABI0)
net(.text): relocation target gai_strerror not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __libc_mutex_lock not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __libc_cond_wait not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __libc_mutex_unlock not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __libc_cond_broadcast not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target pthread_create not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __nanosleep50 not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target pthread_detach not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target strerror not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __sF not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target fprintf not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target abort not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target free not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target __sigaltstack14 not defined for ABI0 (but is defined for ABI0)
runtime/cgo(.text): relocation target pthread_attr_init not defined for ABI0 (but is defined for ABI0)
/build/package-obj/woods/lang/go112/work/go/pkg/tool/netbsd_amd64/link: too many errors
go tool dist: FAILED: /build/package-obj/woods/lang/go112/work/go/pkg/tool/netbsd_amd64/go_bootstrap install -gcflags=all= -ldflags=all= std cmd: exit status 2
*** Error code 2

Stop.
make[1]: stopped in /building/work/woods/m-NetBSD-pkgsrc-current/lang/go112
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/go112

--
					Greg A. Woods <gwoods%acm.org@localhost>

+1 250 762-7675                           RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>     Avoncote Farms <woods%avoncote.ca@localhost>

Attachment: pgpvpfxvzVmDc.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index