You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building it on darwin works, on freebsd or linux it fails:
What did you expect to see?
$ GOOS=darwin go build
$ GOOS=linux go build
What did you see instead?
$ GOOS=darwin go build
$ GOOS=linux go build
runtime.gcdata: missing Go type information for global symbol .dynsym: size 72
_cgo_init: relocation target x_cgo_init not defined
_cgo_mmap: relocation target x_cgo_mmap not defined
_cgo_munmap: relocation target x_cgo_munmap not defined
_cgo_notify_runtime_init_done: relocation target x_cgo_notify_runtime_init_done not defined
_cgo_sigaction: relocation target x_cgo_sigaction not defined
_cgo_thread_start: relocation target x_cgo_thread_start 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
The text was updated successfully, but these errors were encountered:
In order to cross-compile a cgo-using Go program, you need a cross-compiling C compiler set up.
See https://pkg.go.dev/cmd/cgo look for "cross-compiling".
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Consider the following program:
or https://play.golang.org/p/Ix5EtYeTTPD
Building it on darwin works, on freebsd or linux it fails:
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: