go: cmd/cgo: go 1.9.4 cgo issue: invalid flag in #cgo LDFLAGS
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version
)?
go 1.9.4
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env
)?
macOS High Sierra 10.13.3 / amd64
What did you do?
go build programusingcgo.go
What did you expect to see?
successful building process (built fine with go 1.9.3 and earlier versions)
What did you see instead?
$go build programusingcgo.go github.com/samplepkg: invalid flag in #cgo LDFLAGS: github.com/samplepkg/mylib_darwin_amd64.a $
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (11 by maintainers)
Commits related to this issue
- stop using GB, convert to dep/gox/GOPATH model GB seems semi-abandoned, and currently doesn't cross compile with either go-1.9.4 or go-1.10 ([bug][1]). Possibly due to the new cgo flag whitelisting (... — committed to cactus/go-camo by dropwhile 6 years ago
- stop using GB, convert to dep/gox/GOPATH model GB seems semi-abandoned, and currently doesn't cross compile with either go-1.9.4 or go-1.10 ([bug][1]). Possibly due to the new cgo flag whitelisting (... — committed to cactus/go-camo by dropwhile 6 years ago
- stop using GB, convert to dep/gox/GOPATH model GB seems semi-abandoned, and currently doesn't cross compile with either go-1.9.4 or go-1.10 ([bug][1]). Possibly due to the new cgo flag whitelisting (... — committed to cactus/go-camo by dropwhile 6 years ago
- stop using GB, convert to dep/gox/GOPATH model GB seems semi-abandoned, and currently doesn't cross compile with either go-1.9.4 or go-1.10 ([bug][1]). Possibly due to the new cgo flag whitelisting (... — committed to cactus/go-camo by dropwhile 6 years ago
- stop using GB, convert to dep/gox/GOPATH model GB seems semi-abandoned, and currently doesn't cross compile with either go-1.9.4 or go-1.10 ([bug][1]). Possibly due to the new cgo flag whitelisting (... — committed to cactus/go-camo by dropwhile 6 years ago
- stop using GB, convert to dep/gox/GOPATH model GB seems semi-abandoned, and currently doesn't cross compile with either go-1.9.4 or go-1.10 ([bug][1]). Possibly due to the new cgo flag whitelisting (... — committed to cactus/go-camo by dropwhile 6 years ago
- stop using GB, convert to dep/gox/GOPATH model GB seems semi-abandoned, and currently doesn't cross compile with either go-1.9.4 or go-1.10 ([bug][1]). Possibly due to the new cgo flag whitelisting (... — committed to cactus/go-camo by dropwhile 6 years ago
- stop using GB, convert to dep/gox/GOPATH model GB seems semi-abandoned, and currently doesn't cross compile with either go-1.9.4 or go-1.10 ([bug][1]). Possibly due to the new cgo flag whitelisting (... — committed to cactus/go-camo by dropwhile 6 years ago
- stop using GB, convert to dep/gox/GOPATH model GB seems semi-abandoned, and currently doesn't cross compile with either go-1.9.4 or go-1.10 ([bug][1]). Possibly due to the new cgo flag whitelisting (... — committed to cactus/go-camo by dropwhile 6 years ago
- stop using GB, convert to dep/gox/GOPATH model GB seems semi-abandoned, and currently doesn't cross compile with either go-1.9.4 or go-1.10 ([bug][1]). Possibly due to the new cgo flag whitelisting (... — committed to cactus/go-camo by dropwhile 6 years ago
- stop using GB, convert to dep/gox/GOPATH model GB seems semi-abandoned, and currently doesn't cross compile with either go-1.9.4 or go-1.10 ([bug][1]). Possibly due to the new cgo flag whitelisting (... — committed to cactus/go-camo by dropwhile 6 years ago
- stop using GB, convert to dep/gox/GOPATH model GB seems semi-abandoned, and currently doesn't cross compile with either go-1.9.4 or go-1.10 ([bug][1]). Possibly due to the new cgo flag whitelisting (... — committed to cactus/go-camo by dropwhile 6 years ago
- Downgrade golang to 1.9.3 UI lib doesn't support golang >= 1.9.3 More info https://github.com/golang/go/issues/23739 — committed to metacoma/silverkey by deleted user 6 years ago
workaround for
github.com/miekg/pkcs11
on Linux -CGO_LDFLAGS_ALLOW='-Wl,--no-as-needed' go install
(same forgo test
)@ruiadrmartins - https://github.com/miekg/pkcs11/issues/63
@raydac andlabs/ui must be updated to cope with the new Go release. I’ve opened a bug (andlabs/ui#268).
@susugagalala we need to see the
#cgo LDFLAGS
line that is rejected by the compiler.