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

what's mean about it?what can I do to install go #12928

Closed
Memroy91 opened this issue Oct 14, 2015 · 15 comments
Closed

what's mean about it?what can I do to install go #12928

Memroy91 opened this issue Oct 14, 2015 · 15 comments

Comments

@Memroy91
Copy link

[root@redhat2 src]# ./make.bash

Building C bootstrap tool.

cmd/dist
go tool dist: unknown architecture: ppc64

@davecheney
Copy link
Contributor

Which version of go are you using? You need go 1.5 or later for ppc64
support. (I'm assuming that your hardware is ppc64)

On Wed, 14 Oct 2015, 19:40 Terryshakj notifications@github.com wrote:

[root@redhat2 src]# ./make.bash
Building C bootstrap tool.

cmd/dist
go tool dist: unknown architecture: ppc64


Reply to this email directly or view it on GitHub
#12928.

@Memroy91
Copy link
Author

yes,my hardware is ppc64,but i find that if i want to install go 1.5,i need to install go1.4 first?is this a bug?

@Memroy91
Copy link
Author

Because of go1.4 does not support ppc64, I just need to install go1.5, if installation go1.5 must install go1.4, what am I supposed to do, this is not a dead cycle

@davecheney
Copy link
Contributor

Ahh, yes.

You will need a bootstrap version of Go, but you can do this.

  1. Install Go 1.5 from source on an intel machine (you may also need go 1.4
    to bootstrap go 1.5)
  2. cd go/src and run GOOS=linux GOARCH=ppc64 ./bootstrap.bash

This will make a .tgz two directories up, you can copy this to your ppc64
machine, unpaxk it then use that as your GO_BOOTSTRAP_ROOT.

Let me know how you go, if you have a problem will write up a blog post
with a detailed procedure.

Dave

On Wed, 14 Oct 2015, 19:52 Terryshakj notifications@github.com wrote:

yes,my hardware is ppc64,but i find that if i want to install go 1.5,i
need to install go1.4 first?is this a bug?


Reply to this email directly or view it on GitHub
#12928 (comment).

@Memroy91
Copy link
Author

I'm just a beginner ,let me try this solution first

@davecheney
Copy link
Contributor

Let me know how you go, I can write up a more comprehensive procedure if
you get stuck.

On Wed, 14 Oct 2015, 20:05 Terryshakj notifications@github.com wrote:

I'm just a beginner ,let me try this solution first


Reply to this email directly or view it on GitHub
#12928 (comment).

@Memroy91
Copy link
Author

ok ,thanks

@Memroy91
Copy link
Author

I hava installed Go 1.5 from source on an intel machine(I used go 1.4 to bootstrap go 1.5),but I don't know is properly installed.when i cd/bin ,then input go version ,it shows go version go1.4.2 linux/amd64 ?
but i see some logs shows Go version is "go1.5.1".

install logs:

../test
API check

Go version is "go1.5.1", ignoring -next /data/packages/go/api/next.txt

ALL TESTS PASSED

@davecheney
Copy link
Contributor

It sounds like you may have combined the source for go1.4 and go 1.5.

Never the less, if you change to.the go 1.5 directory and run then
bootstrap script above you may be able to produce a working bootstrap go
version which will let you build go 1.5 on ppc64

On Wed, 14 Oct 2015, 21:01 Terryshakj notifications@github.com wrote:

I hava installed Go 1.5 from source on an intel machine(I used go 1.4 to
bootstrap go 1.5),but I don't know is properly installed.when i cd/bin
,then input go version ,it shows go version go1.4.2 linux/amd64 ?
but i see some logs shows Go version is "go1.5.1".

install logs:
../test API check

Go version is "go1.5.1", ignoring -next /data/packages/go/api/next.txt

ALL TESTS PASSED


Reply to this email directly or view it on GitHub
#12928 (comment).

@Memroy91
Copy link
Author

I got a folder : go-linux-ppc64-bootstrap,copy the folder to ppc64 machine and then put it under the folder "/root/go1.4" ,and then use it to bootstrap go 1.5?

@davecheney
Copy link
Contributor

Unpack it to /root on the target, you'll get something like
go-bootstrap-linux-ppc64, the set

GO_BOOTSTRAP_ROOT=/root/go-bootstrap-linux-ppc64 and then run ./all.bash

On Wed, 14 Oct 2015, 21:18 Terryshakj notifications@github.com wrote:

I got a folder : go-linux-ppc64-bootstrap,copy the folder to ppc64 machine
and then put it under the folder "/root/go1.4" ,and then use it to
bootstrap go 1.5?


Reply to this email directly or view it on GitHub
#12928 (comment).

@Memroy91
Copy link
Author

some error occured when i use it to bootstrap go 1.5.
Although have compiled out bin folder,but i can't execute it.report error:
-bash: /usr/local/go/bin/go: cannot execute binary file

@bradfitz
Copy link
Contributor

Until there's a bug, please move this discussion to a forum of some sort.

See https://golang.org/wiki/Questions for potential venues.

@laboger
Copy link
Contributor

laboger commented Oct 15, 2015

Please be aware that once you get go1.5 built on ppc64, it is not
complete yet for ppc64 or ppc64le. It does not provide support for
external linking which is necessary for building applications like
Docker which link against external (non-Go) packages.

I opened an issue on this against ppc64le.
#11184.
There are CLs to add this support for ppc64le but they are waiting to be
reviewed.

On 10/14/2015 05:44 AM, Terryshakj wrote:

some error occured when i use it to bootstrap go 1.5.
Although have compiled out bin folder,but i can't execute it.report error:
-bash: /usr/local/go/bin/go: cannot execute binary file


Reply to this email directly or view it on GitHub
#12928 (comment).

@davecheney
Copy link
Contributor

@Terryshakj I have written up the procedure here http://dave.cheney.net/2015/10/16/bootstrapping-go-1-5-on-non-intel-platforms

If there are errors or omissions, please open a thread on the mailing list. Do not continue the discussion on this issue as it is closed.

Thanks

Dave

@golang golang locked and limited conversation to collaborators Oct 17, 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

5 participants