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/cmd/gomobile: gomobile init => gomobile: exit status 1 #10739

Closed
hbfs opened this issue May 7, 2015 · 9 comments
Closed

x/mobile/cmd/gomobile: gomobile init => gomobile: exit status 1 #10739

hbfs opened this issue May 7, 2015 · 9 comments
Milestone

Comments

@hbfs
Copy link

hbfs commented May 7, 2015

Running OS X 10.10.3

Cloned tip. Bootstrapped with go version go1.4.2 darwin/amd64 successfully:

go version devel +965d00f Thu May 7 02:56:23 2015 +0000 darwin/amd64

When running gomobile init => gomobile: exit status 1

@minux minux changed the title gomobile init => gomobile: exit status 1 x/mobile/cmd/gomobile: gomobile init => gomobile: exit status 1 May 7, 2015
@hbfs
Copy link
Author

hbfs commented May 7, 2015

Rewinded to 32d6fbc per #10598 and gomobile init completed successfully.

@hbfs hbfs closed this as completed May 7, 2015
@rakyll
Copy link
Contributor

rakyll commented May 7, 2015

I was not able to reproduce it against the go tip (965d00f) and mobile tip (a18cedb28dd03f0eb991a448197a008062eca52f). Could you sync to those versions and retry? If it fails again, could you do a gomobile init -v?

@hbfs
Copy link
Author

hbfs commented May 7, 2015

Hmm.. deleted everything and confirmed starting point of go tip (965d00f) and mobile tip (a18cedb28dd03f0eb991a448197a008062eca52f) and it completed successfully with gomobile init -v. If I'm able to recreate will post again.. but leaving it closed for now.

@weitzj
Copy link

weitzj commented May 31, 2015

I guess it would be good to mention in the documentation that gomobile init needs GOROOT_BOOTSTRAP as well

@rakyll
Copy link
Contributor

rakyll commented May 31, 2015

@weitzj, we document the requirement at gomobile docs, see http://godoc.org/golang.org/x/mobile/cmd/gomobile.

@weitzj
Copy link

weitzj commented May 31, 2015

Ah. Then it was a misunderstanding. It looked like for building GO I need GOROOT_BOOTSTRAP, but not necessary for gomobile init.

@pftbest
Copy link

pftbest commented Jun 6, 2015

gomobile docs are not clear. I already had go1.5 installed, so I skipped 'building go1.5' part, and there is no mention that I need to set GOROOT_BOOTSTRAP for gomobile init anyway. Error message is not clear either. Luckily I found this post on google.

@rakyll rakyll reopened this Jun 6, 2015
@rakyll rakyll self-assigned this Jun 6, 2015
@rakyll
Copy link
Contributor

rakyll commented Jun 7, 2015

Building cross compilers requires much work, I am wondering whether we can automate this process by checking out the source code if no GOROOT and/or GOROOT_BOOTSTRAP is set.

/cc @crawshaw @hyangah

@rakyll rakyll added this to the Go1.5 milestone Jun 8, 2015
@rakyll rakyll removed their assignment Jun 19, 2015
@crawshaw
Copy link
Member

Fixed by golang/mobile@743b9bf.

@crawshaw crawshaw self-assigned this Jul 11, 2015
@golang golang locked and limited conversation to collaborators Aug 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants