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

cmd/dist: bootstrap build failed on arm64 #39701

Closed
zhangfannie opened this issue Jun 19, 2020 · 2 comments
Closed

cmd/dist: bootstrap build failed on arm64 #39701

zhangfannie opened this issue Jun 19, 2020 · 2 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@zhangfannie
Copy link
Contributor

What version of Go are you using (go version)?

$ go version
bootstrap go version:
go1.10.4 linux/arm64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="arm64"
GOBIN=""
GOCACHE="/home/fanzha02/.cache/go-build"
GOEXE=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/fanzha02/go"
GORACE=""
GOROOT="/usr/lib/go-1.10"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.10/pkg/tool/linux_arm64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build855651681=/tmp/go-build -gno-record-gcc-switches"

What did you do?

./make.bash

What did you expect to see?

pass

What did you see instead?

bootstrap/cmd/compile/internal/ssa

asm: illegal combination: 00008 (/home/fanzha02/work/go_project/gomain/pkg/bootstrap/src/bootstrap/cmd/compile/internal/ssa/flags_arm64_test.s:32) TST R1, R0 REG REG NONE, 7 0
asm: illegal combination: 00008 (/home/fanzha02/work/go_project/gomain/pkg/bootstrap/src/bootstrap/cmd/compile/internal/ssa/flags_arm64_test.s:32) TST R1, R0 REG REG NONE, 7 0
asm: illegal combination: 00008 (/home/fanzha02/work/go_project/gomain/pkg/bootstrap/src/bootstrap/cmd/compile/internal/ssa/flags_arm64_test.s:32) TST R1, R0 REG REG NONE, 7 0
asm: 00008 (/home/fanzha02/work/go_project/gomain/pkg/bootstrap/src/bootstrap/cmd/compile/internal/ssa/flags_arm64_test.s:32) TST R1, R0: bad brr TST

@zhangfannie
Copy link
Contributor Author

This issue is caused by the go1.10 assembler does not support arm64 TST instruction, so we do not need to copy the"_arm64_test.s" files for bootstrap build. I will submit a patch to fix issue.

@gopherbot
Copy link

Change https://golang.org/cl/238679 mentions this issue: cmd/dist: don't copy arm64 specific files for bootstap build

@dmitshur dmitshur added this to the Go1.15 milestone Jun 19, 2020
@dmitshur dmitshur added the NeedsFix The path to resolution is known, but the work has not been done. label Jun 19, 2020
@dmitshur dmitshur changed the title bootstrap build failed on arm64. cmd/dist: bootstrap build failed on arm64 Jun 19, 2020
@golang golang locked and limited conversation to collaborators Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants