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/tools/gopls: TestAssembly failed with CALL/RET not found on riscv64 #67960

Closed
mengzhuo opened this issue Jun 13, 2024 · 3 comments
Closed

x/tools/gopls: TestAssembly failed with CALL/RET not found on riscv64 #67960

mengzhuo opened this issue Jun 13, 2024 · 3 comments
Assignees
Labels
arch-riscv Issues solely affecting the riscv64 architecture. gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@mengzhuo
Copy link
Contributor

Go version

go version go1.22.3 linux/riscv64

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='riscv64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='riscv64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/root/go'
GOPRIVATE=''
GOPROXY='https://goproxy.cn'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_riscv64'
GOVCS=''
GOVERSION='go1.22.3'
GCCGO='gccgo'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/root/tools/gopls/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1899499080=/tmp/go-build -gno-record-gcc-switches'

What did you do?

Found this failure on LUCI and I try run this on my riscv64 box is real.
https://ci.chromium.org/ui/p/golang/builders/ci/x_tools-go1.22-linux-riscv64/b8745302670138690817/test-results?sortby=&groupby=

What did you see happen?

I found this in

input did not match wanted pattern "CALL\truntime.morestack_noctxt"; got:
...
JAL     X5, runtime.morestack_noctxt(SB)

Maybe something changed in obj/asm?

What did you expect to see?

Test pass

@mengzhuo mengzhuo added the arch-riscv Issues solely affecting the riscv64 architecture. label Jun 13, 2024
@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Jun 13, 2024
@gopherbot gopherbot added this to the Unreleased milestone Jun 13, 2024
@gabyhelp
Copy link

@findleyr
Copy link
Member

Thanks for the report. Looks like we need to skip this test or loosen it's assumptions w.r.t. generated assembly.

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/592476 mentions this issue: gopls/internal/test/integration/misc: skip ASM assertions on risc64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-riscv Issues solely affecting the riscv64 architecture. gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

5 participants