Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/mobile: cryptic error message trying to bind package main #15515

Closed
dskinner opened this issue May 3, 2016 · 1 comment
Closed

x/mobile: cryptic error message trying to bind package main #15515

dskinner opened this issue May 3, 2016 · 1 comment
Milestone

Comments

@dskinner
Copy link
Member

@dskinner dskinner commented May 3, 2016

Attempting to bind a package main results in non-obvious error:

gomobile bind -target=android github.com/pbdesign/selphy
gomobile: loadExportData failed go install -p=4 -pkgdir=/home/daniel/local/pkg/gomobile/pkg_android_arm -tags="" -gcflags=-shared -ldflags=-shared github.com/pbdesign/selphy failed: exit status 2
# github.com/pbdesign/selphy
/home/daniel/local/go/pkg/tool/linux_amd64/link: -shared and -buildmode=pie are incompatible

If possible, this should instead error out before attempting build stating that binding a package main is not supported.

@bradfitz bradfitz added this to the Unreleased milestone May 4, 2016
@gopherbot

This comment has been minimized.

Copy link

@gopherbot gopherbot commented May 5, 2016

CL https://golang.org/cl/22802 mentions this issue.

@golang golang locked and limited conversation to collaborators May 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.