-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
Description
What version of Go are you using (go version
)?
$ go version go version go1.15.5 darwin/amd64
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/neilalexander/Library/Caches/go-build" GOENV="/Users/neilalexander/Library/Application Support/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOINSECURE="" GOMODCACHE="/Users/neilalexander/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/neilalexander/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/Users/neilalexander/go/src/github.com/yggdrasil-network/yggdrasil-go/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/cv/wv7k9w2s4qdfjfd60nd7_5t40000gn/T/go-build915392521=/tmp/go-build -gno-record-gcc-switches -fno-common"
This problem started with macOS Big Sur. It worked on Catalina.
What did you do?
git clone https://github.com/yggdrasil-network/yggdrasil-go
cd yggdrasil-go
./build -i
... which is effectively doing the usual gomobile bind
:
gomobile bind -target ios -tags mobile ...
What did you expect to see?
A completed build with an output .framework
.
What did you see instead?
gomobile: darwin-arm64: go build -tags mobile ios -ldflags -X github.com/yggdrasil-network/yggdrasil-go/src/version.buildName=yggdrasil-develop -X github.com/yggdrasil-network/yggdrasil-go/src/version.buildVersion=0.3.15-0082 -s -w -buildmode=c-archive -o /var/folders/cv/wv7k9w2s4qdfjfd60nd7_5t40000gn/T/gomobile-work-621527419/yggdrasil-arm64.a ./gobind failed: exit status 1
go: downloading golang.org/x/mobile v0.0.0-20200801112145-973feb4309de
go: downloading github.com/yggdrasil-network/yggdrasil-extras v0.0.0-20201115133139-13e9439a0b5a
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/Arceliar/phony v0.0.0-20191006174943-d0c68492aca0
go: downloading github.com/hjson/hjson-go v3.0.2-0.20200316202735-d5d0e8b0617d+incompatible
go: downloading github.com/gologme/log v0.0.0-20181207131047-4e5d8ccb38e8
go: found github.com/yggdrasil-network/yggdrasil-go/src/config in github.com/yggdrasil-network/yggdrasil-go v0.0.0-00010101000000-000000000000
go: found github.com/yggdrasil-network/yggdrasil-go/src/yggdrasil in github.com/yggdrasil-network/yggdrasil-go v0.0.0-00010101000000-000000000000
go: found github.com/yggdrasil-network/yggdrasil-go/src/address in github.com/yggdrasil-network/yggdrasil-go v0.0.0-00010101000000-000000000000
go: found github.com/yggdrasil-network/yggdrasil-go/src/crypto in github.com/yggdrasil-network/yggdrasil-go v0.0.0-00010101000000-000000000000
go: found github.com/yggdrasil-network/yggdrasil-go/src/defaults in github.com/yggdrasil-network/yggdrasil-go v0.0.0-00010101000000-000000000000
go: found github.com/yggdrasil-network/yggdrasil-go/src/util in github.com/yggdrasil-network/yggdrasil-go v0.0.0-00010101000000-000000000000
go: found github.com/yggdrasil-network/yggdrasil-go/src/admin in github.com/yggdrasil-network/yggdrasil-go v0.0.0-00010101000000-000000000000
go: found github.com/yggdrasil-network/yggdrasil-go/src/multicast in github.com/yggdrasil-network/yggdrasil-go v0.0.0-00010101000000-000000000000
go: downloading golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d
go: downloading golang.org/x/net v0.0.0-20200301022130-244492dfa37a
go: downloading golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527
go build runtime/cgo: invalid flag in go:cgo_ldflag: -fembed-bitcode
myroid