Thursday, January 03, 2019

go build failure on amd64 because of retpoline?

Seems the package is missing on mirrors, I tried to build it myself on a fresh installed snapshot:

OpenBSD 6.4-current (GENERIC) #531: Wed Jan 2 20:25:22 MST 2019
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC



Building Go cmd/dist using /usr/local/go/bootstrap.
Building Go toolchain1 using /usr/local/go/bootstrap.
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 openbsd/amd64.
# cmd/go
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/net.a(_x005.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and net(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x003.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x004.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x005.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x006.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x007.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
_cgo_init: relocation target x_cgo_init not defined
_cgo_notify_runtime_init_done: relocation target x_cgo_notify_runtime_init_done not defined
_cgo_thread_start: relocation target x_cgo_thread_start not defined
net._cgo_71591c345085_C2func_getaddrinfo: relocation target _cgo_71591c345085_C2func_getaddrinfo not defined
net._cgo_71591c345085_Cfunc_freeaddrinfo: relocation target _cgo_71591c345085_Cfunc_freeaddrinfo not defined
net._cgo_71591c345085_Cfunc_gai_strerror: relocation target _cgo_71591c345085_Cfunc_gai_strerror not defined
runtime._cgo_setenv: relocation target x_cgo_setenv not defined
runtime._cgo_unsetenv: relocation target x_cgo_unsetenv not defined
runtime.cgo_yield: relocation target _cgo_yield not defined
# cmd/pprof
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/net.a(_x005.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and net(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x003.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x004.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x005.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x006.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x007.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
_cgo_init: relocation target x_cgo_init not defined
_cgo_notify_runtime_init_done: relocation target x_cgo_notify_runtime_init_done not defined
_cgo_thread_start: relocation target x_cgo_thread_start not defined
net._cgo_71591c345085_C2func_getaddrinfo: relocation target _cgo_71591c345085_C2func_getaddrinfo not defined
net._cgo_71591c345085_Cfunc_freeaddrinfo: relocation target _cgo_71591c345085_Cfunc_freeaddrinfo not defined
net._cgo_71591c345085_Cfunc_gai_strerror: relocation target _cgo_71591c345085_Cfunc_gai_strerror not defined
runtime._cgo_setenv: relocation target x_cgo_setenv not defined
runtime._cgo_unsetenv: relocation target x_cgo_unsetenv not defined
runtime.cgo_yield: relocation target _cgo_yield not defined
# cmd/trace
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/net.a(_x005.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and net(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x003.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x004.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x005.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x006.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
loadelf: /home/ports/pobj/amd64/go-1.11.4/go/pkg/openbsd_amd64/runtime/cgo.a(_x007.o): duplicate symbol reference: __llvm_retpoline_r11 in both net(.text.__llvm_retpoline_r11) and runtime/cgo(.text.__llvm_retpoline_r11)
_cgo_init: relocation target x_cgo_init not defined
_cgo_notify_runtime_init_done: relocation target x_cgo_notify_runtime_init_done not defined
_cgo_thread_start: relocation target x_cgo_thread_start not defined
net._cgo_71591c345085_C2func_getaddrinfo: relocation target _cgo_71591c345085_C2func_getaddrinfo not defined
net._cgo_71591c345085_Cfunc_freeaddrinfo: relocation target _cgo_71591c345085_Cfunc_freeaddrinfo not defined
net._cgo_71591c345085_Cfunc_gai_strerror: relocation target _cgo_71591c345085_Cfunc_gai_strerror not defined
runtime._cgo_setenv: relocation target x_cgo_setenv not defined
runtime._cgo_unsetenv: relocation target x_cgo_unsetenv not defined
runtime.cgo_yield: relocation target _cgo_yield not defined
go tool dist: FAILED: /home/ports/pobj/amd64/go-1.11.4/go/pkg/tool/openbsd_amd64/go_bootstrap install -gcflags=all= -ldflags=all= std cmd: exit status 2
*** Error 2 in . (Makefile:66 'do-build': @cd /home/ports/pobj/amd64/go-1.11.4/go/src && CC="cc" CXX="c++" GOROOT=/home/ports/pobj/amd64/...)
*** Error 1 in . (/home/ports/infrastructure/mk/bsd.port.mk:2782 '/home/ports/pobj/amd64/go-1.11.4/build-amd64/.build_done')
*** Error 1 in . (/home/ports/infrastructure/mk/bsd.port.mk:2009 '/home/ports/packages/amd64/all/go-1.11.4.tgz')
*** Error 1 in . (/home/ports/infrastructure/mk/bsd.port.mk:2475 '_internal-package')
*** Error 1 in . (/home/ports/infrastructure/mk/bsd.port.mk:2454 'package')
*** Error 1 in . (/home/ports/infrastructure/mk/bsd.port.mk:2027 '/var/db/pkg/go-1.11.4/+CONTENTS')
*** Error 1 in /home/ports/lang/go (/home/ports/infrastructure/mk/bsd.port.mk:2454 'install')

No comments:

Post a Comment