go: cmd/link: "x86_64-w64-mingw32/bin/ld.exe: Error: export ordinal too large" after upgrading to Go 1.15
I have a Travis build that fails on Windows after upgrading to Go 1.15, see:
See: https://travis-ci.org/github/gohugoio/hugo/builds/717877247
Or more specific: https://travis-ci.org/github/gohugoio/hugo/jobs/717877253
x86_64-w64-mingw32/bin/ld.exe: Error: export ordinal too large: 77173
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 6
- Comments: 23 (6 by maintainers)
Links to this issue
Commits related to this issue
- fix go1.15 windows builds failing Something about DLLs and too many symbols https://github.com/golang/go/issues/40795 Signed-off-by: Bohan Chen <bochen@pivotal.io> — committed to concourse/ci by chenbh 4 years ago
- chore: downgrade go builder version golang/go#40795 Signed-off-by: Goren G <yong.gu@qlink.mobi> — committed to qlcchain/go-qlc by deleted user 4 years ago
- Fix building for Windows. Don't merge this on master! Applies a temporary fix similar to https://github.com/grafana/grafana/pull/28557 before go 1.15.5+ fixes https://github.com/golang/go/issues/4079... — committed to ivandeex/rclone by ivandeex 4 years ago
- Fix building for Windows. Don't merge this on master! Applies a temporary fix similar to https://github.com/grafana/grafana/pull/28557 before go 1.15.6+ fixes https://github.com/golang/go/issues/4079... — committed to ivandeex/rclone by ivandeex 4 years ago
- Fix building for Windows. Don't merge this on master! Applies a temporary fix similar to https://github.com/grafana/grafana/pull/28557 before go 1.15.6+ fixes https://github.com/golang/go/issues/4079... — committed to ivandeex/rclone by ivandeex 4 years ago
- Fix building for Windows. Don't merge this on master! Applies a temporary fix similar to https://github.com/grafana/grafana/pull/28557 before go 1.15.6+ fixes https://github.com/golang/go/issues/4079... — committed to ivandeex/rclone by ivandeex 4 years ago
- Fix windows build with golang 1.15 With golang 1.15.5, attempting the windows cross build fails with mingw ld reporting "Error: export ordinal too large: 69634", which is: https://github.com/golang/... — committed to multi-arch/operator-registry by yselkowitz 4 years ago
- build: Temporary fix for Windows build errors Applies a temporary fix similar to https://github.com/grafana/grafana/pull/28557 before go 1.15.6+ fixes https://github.com/golang/go/issues/40795 — committed to urykhy/rclone by ivandeex 4 years ago
- build: Temporary fix for Windows build errors Applies a temporary fix similar to https://github.com/grafana/grafana/pull/28557 before go 1.15.6+ fixes https://github.com/golang/go/issues/40795 — committed to rclone/rclone by ivandeex 4 years ago
- Fix windows build with golang 1.15 With golang 1.15.5, attempting the windows cross build fails with mingw ld reporting "Error: export ordinal too large: 69634", which is: https://github.com/golang/... — committed to multi-arch/operator-registry by yselkowitz 4 years ago
- build: Temporary fix for Windows build errors Applies a temporary fix similar to https://github.com/grafana/grafana/pull/28557 before go 1.15.6+ fixes https://github.com/golang/go/issues/40795 — committed to rclone/rclone by ivandeex 4 years ago
- Run conformance tests for Kuberentes secret store (#673) * Run K8s secret store tests * Add workaround for https://github.com/golang/go/issues/40795 * Add clarity to the hack — committed to dapr/components-contrib by tcnghia 3 years ago
- build: fix windows build for go1.15 Closes: https://github.com/influxdata/influxdb/issues/21018 See https://github.com/golang/go/issues/40795 — committed to influxdata/influxdb by lesam 3 years ago
- build: fix windows build for go1.15 Closes: https://github.com/influxdata/influxdb/issues/21018 See https://github.com/golang/go/issues/40795 — committed to influxdata/influxdb by lesam 3 years ago
- build: fix windows build for go1.15 (#21041) Closes: https://github.com/influxdata/influxdb/issues/21018 See https://github.com/golang/go/issues/40795 — committed to influxdata/influxdb by lesam 3 years ago
- [release-branch.go1.15] cmd/link: avoid exporting all symbols on windows buildmode=pie Marking one functions with __declspec(dllexport) forces mingw to create .reloc section without having to export ... — committed to golang/go by qmuntal 4 years ago
- Fix windows build with golang 1.15 With golang 1.15.5, attempting the windows cross build fails with mingw ld reporting "Error: export ordinal too large: 69634", which is: https://github.com/golang/... — committed to ankitathomas/operator-framework-olm by yselkowitz 4 years ago
This looks like a case of needing the flag
-buildmode=exe
when building Go programs for Windows that use CGo. Seems linking Windows ASLR executables is what is not working.buildmode
is go command flag. See https://golang.org/cmd/go for details.Alex
@gopherbot please backport to 1.15
buildmode=pie became the default in 1.15, so folks have to manually set buildmode=exe to work around this bug.