-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/compile: illegal Instruction on POWER7 with go 1.13 #43229
Comments
From https://github.com/golang/go/wiki/MinimumRequirements#ppc64-big-endian ppc64 (big endian) ppc64le (little endian) So go 1.13 doesn't support POWER7. |
It means that i should build go 1.8? |
Yes, if you want to build for POWER7 big endian then 1.8 should work. |
thank you, now it's working, but i ran into new error: |
That error is pretty self-explanatory. That mode isn't supported on that platform. |
you mean it's not supported in any version of go? |
Correct.
Does docker need PIE? Try building it without PIE.
If you're requesting that we add PIE support to tip, yes. See #27144 for an example.
Someone has successfully built docker, see https://developer.ibm.com/devpractices/devops/tutorials/d-docker-on-power-linux-platform/ |
i am using docker srpm: docker-ce-19.03.9-3.el7.src.rpm do you think someone can help me about this? |
The issue tracker isn't the right place for getting help. You might look into these forums:
It may be possible to do yourself, but the Go project will not be doing that. 1.8 is unsupported and will not be receiving updates of any kind.
Same answer for power7, we already decided to not support that architecture any more. |
i am very thankful to you |
@randall77 do you know how can i convert go command with it's flags to gccgo command? |
https://golang.org/doc/install/gccgo
There is no internal linking in gccgo so you don't have to specify
linkmode=external.
If you are familiar with gcc, the options to build for pie are the same on
gccgo as gcc.
…On Thu, Dec 17, 2020 at 12:05 PM moria7757 ***@***.***> wrote:
@randall77 <https://github.com/randall77> do you know how can i convert
go command with it's flags to gccgo command?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#43229 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACH7BDDNHLEH6JFYO2NKMY3SVJB6ZANCNFSM4U6PERLA>
.
|
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
with 1.15 & 1,14, I ran into another error in earlier steps.
when i executed 'env GOOS=linux GOARCH=ppc64 ./bootstrap.bash', 'unsupported GOARCH ppc64' was shown in logs.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Build Go 1.4 on linux/amd64:
git clone https://go.googlesource.com/go $HOME/go1.4
cd $HOME/go1.4/src
git checkout release-branch.go1.4
./make.bash
Build Go 1.13 on linux/amd64:
git clone https://go.googlesource.com/go $HOME/go
cd $HOME/go/src
git checkout release-branch.go1.15
env GOROOT_BOOTSTRAP=$HOME/go1.4 ./make.bash
Build a bootstrap distribution for linux/ppc64 on linux/amd64
cd $HOME/go/src
env GOOS=linux GOARCH=ppc64 ./bootstrap.bash
scp .tbz file to linux/ppc64 $HOME
Build Go 1.13 on linux/ppc64:
tar -xvjf go-linux-ppc64-bootstrap.tbz
git clone https://go.googlesource.com/go $HOME/go
cd $HOME/go/src
git checkout release-branch.go1.13
env GOROOT_BOOTSTRAP=$HOME/go-linux-ppc64-bootstrap ./all.bash
What did you expect to see?
ALL TESTS PASSED
Installed Go for linux/ppc64 in $HOME/go.
Installed commands in $HOME/go/bin.
*** You need to add $HOME/go/bin to your $PATH. ***
What did you see instead?
Building Go bootstrap tool.
cmd/dist
./make.bash: line 121: 24013 Illegal instruction GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" "$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist
The text was updated successfully, but these errors were encountered: