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
{{ message }}
This repository was archived by the owner on Mar 6, 2020. It is now read-only.
Cross-compiling a program that depends on Go's
runtimepackage using the following compilation flags on a amd64/Linux system:It works when just using
gb buildfor my native platform.To reproduce:
Compile this sample program from the Go runtime example with the following directory structure:
GOROOT=/path/to/go1.9.2 CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 gb buildworks.GOROOT=/path/to/go1.9.4 CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 gb buildfails with the error:According to Ian Lance Taylor, this error was newly introduced in Go 1.9.4. See: https://groups.google.com/forum/#!topic/golang-nuts/52ZHzgo6u1k
Edit: This is with a freshly-built version of gb, built with go 1.9.4.