{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/12888","labels_url":"https://api.github.com/repos/golang/go/issues/12888/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/12888/comments","events_url":"https://api.github.com/repos/golang/go/issues/12888/events","html_url":"https://github.com/golang/go/issues/12888","id":110641867,"number":12888,"title":"runtime/cgo: can't cross compile from os x to linux with cgo","user":{"login":"Thomasdezeeuw","id":3159064,"avatar_url":"https://avatars.githubusercontent.com/u/3159064?v=3","gravatar_id":"","url":"https://api.github.com/users/Thomasdezeeuw","html_url":"https://github.com/Thomasdezeeuw","followers_url":"https://api.github.com/users/Thomasdezeeuw/followers","following_url":"https://api.github.com/users/Thomasdezeeuw/following{/other_user}","gists_url":"https://api.github.com/users/Thomasdezeeuw/gists{/gist_id}","starred_url":"https://api.github.com/users/Thomasdezeeuw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thomasdezeeuw/subscriptions","organizations_url":"https://api.github.com/users/Thomasdezeeuw/orgs","repos_url":"https://api.github.com/users/Thomasdezeeuw/repos","events_url":"https://api.github.com/users/Thomasdezeeuw/events{/privacy}","received_events_url":"https://api.github.com/users/Thomasdezeeuw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-09T11:49:00Z","updated_at":"2015-10-10T12:31:04Z","closed_at":"2015-10-09T14:04:21Z","body":"What version of Go are you using (go version)?\r\n`go version go1.5.1 darwin/amd64` and\r\n`go version devel +3e6334e Tue Oct 6 07:05:51 2015 +0000 darwin/amd64`\r\n\r\nWhat operating system and processor architecture are you using?\r\nOS X 10.10.5, 64 bit.\r\n\r\nWhat did you do?\r\nHave a simple go program with cgo (I think is mainly cgo). The code I used:\r\n\r\n```go\r\npackage main\r\n\r\nimport \"net\"\r\n\r\nfunc main() {\r\n\tln, err := net.Listen(\"unix\", \"/var/log/nginx.sock\")\r\n\tif err != nil {\r\n\t\tpanic(err)\r\n\t}\r\n\tdefer ln.Close()\r\n\r\n\tfor {\r\n\t\tconn, err := ln.Accept()\r\n\t\tif err != nil {\r\n\t\t\tpanic(err)\r\n\t\t}\r\n\t\tconn.Close()\r\n\t}\r\n}\r\n```\r\n\r\nThen try to cross compile from OS X to linux, running: `GOOS=linux go build`.\r\n\r\nWhat did you expect to see?\r\nA build linux binary.\r\n\r\nWhat did you see instead?\r\nError message:\r\n```\r\n# runtime/cgo\r\nld: unknown option: --build-id=none\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n```\r\n\r\nExtra notes:\r\n\r\nCross compiling to windows works just fine.\r\n\r\nOutput of `GOOS=linux go build -v`:\r\n```\r\nruntime\r\nsync/atomic\r\nerrors\r\nmath\r\nsort\r\nruntime/cgo\r\nsync\r\ninternal/singleflight\r\nio\r\nsyscall\r\n# runtime/cgo\r\nld: unknown option: --build-id=none\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\ntime\r\nmath/rand\r\nos\r\n```\r\n\r\nOutput of `GOOS=linux go build -x`:\r\n\r\n```\r\nWORK=/var/folders/lq/rzq0zxld0bb5mcy4jl1txrf00000gn/T/go-build464459186\r\nmkdir -p $WORK/runtime/_obj/\r\nmkdir -p $WORK/\r\ncd /go/go/src/runtime\r\n/go/go/pkg/tool/darwin_amd64/compile -o $WORK/runtime.a -trimpath $WORK -p runtime -+ -buildid f4db31d312311c278e863eda6fdb573d33eefb7e -D _/go/go/src/runtime -I $WORK -pack -asmhdr $WORK/runtime/_obj/go_asm.h ./alg.go ./arch_amd64.go ./atomic_amd64x.go ./atomic_pointer.go ./cgo.go ./cgo_mmap.go ./cgocall.go ./cgocallback.go ./chan.go ./compiler.go ./complex.go ./cpuprof.go ./cputicks.go ./debug.go ./defs_linux_amd64.go ./env_posix.go ./error.go ./extern.go ./fastlog2.go ./fastlog2table.go ./hash64.go ./hashmap.go ./hashmap_fast.go ./heapdump.go ./iface.go ./lfstack.go ./lfstack_amd64.go ./lock_futex.go ./malloc.go ./mbarrier.go ./mbitmap.go ./mcache.go ./mcentral.go ./mem_linux.go ./mfinal.go ./mfixalloc.go ./mgc.go ./mgcmark.go ./mgcsweep.go ./mgcwork.go ./mheap.go ./mprof.go ./msize.go ./mstats.go ./mstkbar.go ./netpoll.go ./netpoll_epoll.go ./os1_linux.go ./os2_linux.go ./os_linux.go ./panic.go ./panic1.go ./parfor.go ./print1.go ./print1_write.go ./proc.go ./proc1.go ./race0.go ./rdebug.go ./rune.go ./runtime.go ./runtime1.go ./runtime2.go ./select.go ./sema.go ./signal1_unix.go ./signal2_unix.go ./signal_amd64x.go ./signal_linux.go ./signal_linux_amd64.go ./signal_unix.go ./sigpanic_unix.go ./sigqueue.go ./slice.go ./softfloat64.go ./sqrt.go ./stack1.go ./stack2.go ./string.go ./string1.go ./stubs.go ./stubs2.go ./symtab.go ./sys_x86.go ./time.go ./trace.go ./traceback.go ./type.go ./typekind.go ./typekind1.go ./unaligned1.go ./vdso_linux_amd64.go ./wbfat.go ./zgoarch_amd64.go ./zgoos_linux.go ./zversion.go\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/runtime/_obj/asm.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./asm.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/runtime/_obj/asm_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./asm_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/runtime/_obj/duff_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./duff_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/runtime/_obj/memclr_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./memclr_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/runtime/_obj/memmove_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./memmove_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/runtime/_obj/rt0_linux_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./rt0_linux_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/runtime/_obj/sys_linux_amd64.o -trimpath $WORK -I $WORK/runtime/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./sys_linux_amd64.s\r\npack r $WORK/runtime.a $WORK/runtime/_obj/asm.o $WORK/runtime/_obj/asm_amd64.o $WORK/runtime/_obj/duff_amd64.o $WORK/runtime/_obj/memclr_amd64.o $WORK/runtime/_obj/memmove_amd64.o $WORK/runtime/_obj/rt0_linux_amd64.o $WORK/runtime/_obj/sys_linux_amd64.o # internal\r\nmkdir -p $WORK/errors/_obj/\r\ncd /go/go/src/errors\r\n/go/go/pkg/tool/darwin_amd64/compile -o $WORK/errors.a -trimpath $WORK -p errors -complete -buildid df2c76951e51fe1bd3345f24c2f19f9edb45296e -D _/go/go/src/errors -I $WORK -pack ./errors.go\r\nmkdir -p $WORK/sync/atomic/_obj/\r\nmkdir -p $WORK/sync/\r\ncd /go/go/src/sync/atomic\r\n/go/go/pkg/tool/darwin_amd64/compile -o $WORK/sync/atomic.a -trimpath $WORK -p sync/atomic -buildid d186629dc0bf30729a39822bcceb09bf758e9a54 -D _/go/go/src/sync/atomic -I $WORK -pack -asmhdr $WORK/sync/atomic/_obj/go_asm.h ./doc.go ./value.go\r\nmkdir -p $WORK/math/_obj/\r\ncd /go/go/src/math\r\n/go/go/pkg/tool/darwin_amd64/compile -o $WORK/math.a -trimpath $WORK -p math -buildid f7ac6fae7e626a4046fa536785c2546683f2ce8f -D _/go/go/src/math -I $WORK -pack -asmhdr $WORK/math/_obj/go_asm.h ./abs.go ./acosh.go ./asin.go ./asinh.go ./atan.go ./atan2.go ./atanh.go ./bits.go ./cbrt.go ./const.go ./copysign.go ./dim.go ./erf.go ./exp.go ./expm1.go ./floor.go ./floor_asm.go ./frexp.go ./gamma.go ./hypot.go ./j0.go ./j1.go ./jn.go ./ldexp.go ./lgamma.go ./log.go ./log10.go ./log1p.go ./logb.go ./mod.go ./modf.go ./nextafter.go ./pow.go ./pow10.go ./remainder.go ./signbit.go ./sin.go ./sincos.go ./sinh.go ./sqrt.go ./tan.go ./tanh.go ./unsafe.go\r\nmkdir -p $WORK/sort/_obj/\r\ncd /go/go/src/sort\r\n/go/go/pkg/tool/darwin_amd64/compile -o $WORK/sort.a -trimpath $WORK -p sort -complete -buildid ffc617af88004900ab77444c58916894b99810f3 -D _/go/go/src/sort -I $WORK -pack ./search.go ./sort.go\r\nmkdir -p $WORK/runtime/cgo/_obj/\r\nmkdir -p $WORK/runtime/\r\ncd /go/go/src/runtime/cgo\r\nCGO_LDFLAGS=\"-g\" \"-O2\" \"-lpthread\" /go/go/pkg/tool/darwin_amd64/cgo -objdir $WORK/runtime/cgo/_obj/ -importpath runtime/cgo -import_runtime_cgo=false -import_syscall=false -- -I $WORK/runtime/cgo/_obj/ -Wall -Werror cgo.go\r\ncd /go/go/src/sync/atomic\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/sync/atomic/_obj/asm_amd64.o -trimpath $WORK -I $WORK/sync/atomic/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./asm_amd64.s\r\npack r $WORK/sync/atomic.a $WORK/sync/atomic/_obj/asm_amd64.o # internal\r\nmkdir -p $WORK/sync/_obj/\r\ncd /go/go/src/sync\r\n/go/go/pkg/tool/darwin_amd64/compile -o $WORK/sync.a -trimpath $WORK -p sync -buildid 5ecc9434e0a8da6603a4d6082c646c6602f32738 -D _/go/go/src/sync -I $WORK -pack ./cond.go ./mutex.go ./once.go ./pool.go ./race0.go ./runtime.go ./rwmutex.go ./waitgroup.go\r\ncd /go/go/src/runtime/cgo\r\nclang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -print-libgcc-file-name\r\nclang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/_cgo_main.o -c $WORK/runtime/cgo/_obj/_cgo_main.c\r\nclang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/_cgo_export.o -c $WORK/runtime/cgo/_obj/_cgo_export.c\r\nclang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/cgo.cgo2.o -c $WORK/runtime/cgo/_obj/cgo.cgo2.c\r\nmkdir -p $WORK/io/_obj/\r\ncd /go/go/src/io\r\n/go/go/pkg/tool/darwin_amd64/compile -o $WORK/io.a -trimpath $WORK -p io -complete -buildid 1f11f4f749237d117d4a43928609be7a309a1f16 -D _/go/go/src/io -I $WORK -pack ./io.go ./multi.go ./pipe.go\r\nmkdir -p $WORK/internal/singleflight/_obj/\r\ncd /go/go/src/runtime/cgo\r\nclang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_fatalf.o -c ./gcc_fatalf.c\r\nmkdir -p $WORK/internal/\r\ncd /go/go/src/internal/singleflight\r\n/go/go/pkg/tool/darwin_amd64/compile -o $WORK/internal/singleflight.a -trimpath $WORK -p internal/singleflight -complete -buildid bac1bf700eeff2a67ec0f2a5c8376d432ddecb47 -D _/go/go/src/internal/singleflight -I $WORK -pack ./singleflight.go\r\nmkdir -p $WORK/syscall/_obj/\r\ncd /go/go/src/syscall\r\n/go/go/pkg/tool/darwin_amd64/compile -o $WORK/syscall.a -trimpath $WORK -p syscall -buildid 6b68edc0f88c74e06a29277e484a4b44f6832858 -D _/go/go/src/syscall -I $WORK -pack -asmhdr $WORK/syscall/_obj/go_asm.h ./env_unix.go ./exec_linux.go ./exec_unix.go ./flock.go ./lsf_linux.go ./netlink_linux.go ./race0.go ./sockcmsg_linux.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_linux.go ./syscall_linux_amd64.go ./syscall_unix.go ./zerrors_linux_amd64.go ./zsyscall_linux_amd64.go ./zsysnum_linux_amd64.go ./ztypes_linux_amd64.go\r\ncd /go/go/src/runtime/cgo\r\nclang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_libinit.o -c ./gcc_libinit.c\r\nclang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_linux_amd64.o -c ./gcc_linux_amd64.c\r\nclang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_mmap.o -c ./gcc_mmap.c\r\ncd /go/go/src/math\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/abs_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./abs_amd64.s\r\ncd /go/go/src/runtime/cgo\r\nclang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_setenv.o -c ./gcc_setenv.c\r\ncd /go/go/src/math\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/asin_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./asin_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/atan2_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./atan2_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/atan_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./atan_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/dim_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./dim_amd64.s\r\ncd /go/go/src/runtime/cgo\r\nclang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_util.o -c ./gcc_util.c\r\ncd /go/go/src/math\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/exp2_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./exp2_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/exp_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./exp_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/expm1_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./expm1_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/floor_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./floor_amd64.s\r\ncd /go/go/src/runtime/cgo\r\nclang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -I $WORK/runtime/cgo/_obj/ -g -O2 -Wall -Werror -o $WORK/runtime/cgo/_obj/gcc_amd64.o -c ./gcc_amd64.S\r\ncd /go/go/src/math\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/frexp_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./frexp_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/hypot_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./hypot_amd64.s\r\ncd /go/go/src/runtime/cgo\r\nclang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -o $WORK/runtime/cgo/_obj/_cgo_.o $WORK/runtime/cgo/_obj/_cgo_main.o $WORK/runtime/cgo/_obj/_cgo_export.o $WORK/runtime/cgo/_obj/cgo.cgo2.o $WORK/runtime/cgo/_obj/gcc_fatalf.o $WORK/runtime/cgo/_obj/gcc_libinit.o $WORK/runtime/cgo/_obj/gcc_linux_amd64.o $WORK/runtime/cgo/_obj/gcc_mmap.o $WORK/runtime/cgo/_obj/gcc_setenv.o $WORK/runtime/cgo/_obj/gcc_util.o $WORK/runtime/cgo/_obj/gcc_amd64.o -g -O2 -lpthread\r\ncd /go/go/src/math\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/ldexp_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./ldexp_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/log10_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./log10_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/log1p_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./log1p_amd64.s\r\ncd /go/go/src/runtime/cgo\r\n/go/go/pkg/tool/darwin_amd64/cgo -objdir $WORK/runtime/cgo/_obj/ -dynpackage cgo -dynimport $WORK/runtime/cgo/_obj/_cgo_.o -dynout $WORK/runtime/cgo/_obj/_cgo_import.go -dynlinker\r\ncd /go/go/src/math\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/log_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./log_amd64.s\r\ncd /go/go/src/runtime/cgo\r\nclang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -o $WORK/runtime/cgo/_obj/_all.o $WORK/runtime/cgo/_obj/_cgo_export.o $WORK/runtime/cgo/_obj/cgo.cgo2.o $WORK/runtime/cgo/_obj/gcc_fatalf.o $WORK/runtime/cgo/_obj/gcc_libinit.o $WORK/runtime/cgo/_obj/gcc_linux_amd64.o $WORK/runtime/cgo/_obj/gcc_mmap.o $WORK/runtime/cgo/_obj/gcc_setenv.o $WORK/runtime/cgo/_obj/gcc_util.o $WORK/runtime/cgo/_obj/gcc_amd64.o -g -O2 -Wl,-r -nostdlib -Wl,--build-id=none\r\ncd /go/go/src/math\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/mod_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./mod_amd64.s\r\n# runtime/cgo\r\nld: unknown option: --build-id=none\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/modf_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./modf_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/remainder_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./remainder_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/sin_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./sin_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/sincos_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./sincos_amd64.s\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/sqrt_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./sqrt_amd64.s\r\ncd /go/go/src/syscall\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/syscall/_obj/asm.o -trimpath $WORK -I $WORK/syscall/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./asm.s\r\ncd /go/go/src/math\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/math/_obj/tan_amd64.o -trimpath $WORK -I $WORK/math/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./tan_amd64.s\r\ncd /go/go/src/syscall\r\n/go/go/pkg/tool/darwin_amd64/asm -o $WORK/syscall/_obj/asm_linux_amd64.o -trimpath $WORK -I $WORK/syscall/_obj/ -I /go/go/pkg/include -D GOOS_linux -D GOARCH_amd64 ./asm_linux_amd64.s\r\ncd /go/go/src/math\r\npack r $WORK/math.a $WORK/math/_obj/abs_amd64.o $WORK/math/_obj/asin_amd64.o $WORK/math/_obj/atan2_amd64.o $WORK/math/_obj/atan_amd64.o $WORK/math/_obj/dim_amd64.o $WORK/math/_obj/exp2_amd64.o $WORK/math/_obj/exp_amd64.o $WORK/math/_obj/expm1_amd64.o $WORK/math/_obj/floor_amd64.o $WORK/math/_obj/frexp_amd64.o $WORK/math/_obj/hypot_amd64.o $WORK/math/_obj/ldexp_amd64.o $WORK/math/_obj/log10_amd64.o $WORK/math/_obj/log1p_amd64.o $WORK/math/_obj/log_amd64.o $WORK/math/_obj/mod_amd64.o $WORK/math/_obj/modf_amd64.o $WORK/math/_obj/remainder_amd64.o $WORK/math/_obj/sin_amd64.o $WORK/math/_obj/sincos_amd64.o $WORK/math/_obj/sqrt_amd64.o $WORK/math/_obj/tan_amd64.o # internal\r\nmkdir -p $WORK/math/rand/_obj/\r\nmkdir -p $WORK/math/\r\ncd /go/go/src/math/rand\r\n/go/go/pkg/tool/darwin_amd64/compile -o $WORK/math/rand.a -trimpath $WORK -p math/rand -complete -buildid 6729a6ad7948404fdeb492dde299e3bea99d4f2a -D _/go/go/src/math/rand -I $WORK -pack ./exp.go ./normal.go ./rand.go ./rng.go ./zipf.go\r\ncd /go/go/src/syscall\r\npack r $WORK/syscall.a $WORK/syscall/_obj/asm.o $WORK/syscall/_obj/asm_linux_amd64.o # internal\r\nmkdir -p $WORK/time/_obj/\r\ncd /go/go/src/time\r\n/go/go/pkg/tool/darwin_amd64/compile -o $WORK/time.a -trimpath $WORK -p time -buildid 7052eb61585600d47e0cf37981b696ee6850d669 -D _/go/go/src/time -I $WORK -pack ./format.go ./sleep.go ./sys_unix.go ./tick.go ./time.go ./zoneinfo.go ./zoneinfo_read.go ./zoneinfo_unix.go\r\nmkdir -p $WORK/os/_obj/\r\ncd /go/go/src/os\r\n/go/go/pkg/tool/darwin_amd64/compile -o $WORK/os.a -trimpath $WORK -p os -buildid a727ccb78b2b5b38d7170dbd5fd6f19831d64131 -D _/go/go/src/os -I $WORK -pack ./dir_unix.go ./doc.go ./env.go ./error.go ./error_unix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./pipe_linux.go ./proc.go ./stat_linux.go ./sticky_notbsd.go ./str.go ./sys_linux.go ./sys_unix.go ./types.go ./types_notwin.go\r\n```"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/147085286","html_url":"https://github.com/golang/go/issues/12888#issuecomment-147085286","issue_url":"https://api.github.com/repos/golang/go/issues/12888","id":147085286,"user":{"login":"Thomasdezeeuw","id":3159064,"avatar_url":"https://avatars.githubusercontent.com/u/3159064?v=3","gravatar_id":"","url":"https://api.github.com/users/Thomasdezeeuw","html_url":"https://github.com/Thomasdezeeuw","followers_url":"https://api.github.com/users/Thomasdezeeuw/followers","following_url":"https://api.github.com/users/Thomasdezeeuw/following{/other_user}","gists_url":"https://api.github.com/users/Thomasdezeeuw/gists{/gist_id}","starred_url":"https://api.github.com/users/Thomasdezeeuw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thomasdezeeuw/subscriptions","organizations_url":"https://api.github.com/users/Thomasdezeeuw/orgs","repos_url":"https://api.github.com/users/Thomasdezeeuw/repos","events_url":"https://api.github.com/users/Thomasdezeeuw/events{/privacy}","received_events_url":"https://api.github.com/users/Thomasdezeeuw/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T12:31:04Z","updated_at":"2015-10-10T12:31:04Z","body":"@ianlancetaylor thanks for the quick response.\r\n\r\nFor people with the same issues, I ended up just running linux inside VirtualBox. I tried using gcc, installed via Homebrew, but that didn't work either."}}