Hi,
I'm having troubles with cross-compilation on OSX 10.10.5
$ uname -a
Darwin ... 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64
$ go version
go version go1.5.2 darwin/amd64
$ printenv | grep GO
GOPATH=/Users/radeksimko/gopath
I have installed the latest go via
Homebrew.
I'm unable to compile it for linux/amd64:
$ CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -v -o linux-amd64-bin.o
runtime
errors
sync/atomic
math
unicode/utf8
unicode
runtime/cgo
sync
io
syscall
strings
# runtime/cgo
ld: unknown option: --build-id=none
clang: error: linker command failed with exit code 1 (use -v to see invocation)
strconv
time
reflect
os
fmt
Is there anything wrong with my approach to the cross-compilation or is it a bug in go itself?
Radek Simko