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/compile: race is not supported on linux/riscv64 #58739

Closed
ArchFeh opened this issue Feb 26, 2023 · 2 comments
Closed

cmd/compile: race is not supported on linux/riscv64 #58739

ArchFeh opened this issue Feb 26, 2023 · 2 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge

Comments

@ArchFeh
Copy link

ArchFeh commented Feb 26, 2023

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

$ go version
go version go1.20.1 linux/riscv64

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
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://proxy.golang.org,direct"
GOROOT="/usr/lib/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_riscv64"
GOVCS=""
GOVERSION="go1.20.1"
GCCGO="gccgo"
AR="ar"
CC="riscv64-unknown-linux-gnu-gcc"
CXX="riscv64-unknown-linux-gnu-g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2295547135=/tmp/go-build -gno-record-gcc-switches"

What did you do?

I just run

go test -race

What did you expect to see?

It run.

What did you see instead?

-race is not supported on linux/riscv64

Is there any plan to let race support riscv64?

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Feb 26, 2023
@wdvxdr1123
Copy link
Contributor

wdvxdr1123 commented Feb 26, 2023

According to https://github.com/llvm/llvm-project/blob/aa56e66bf7520512fd1209cbb7d099604a5f6277/compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake#L63-L64, ThreadSanitizer for riscv64 is not supported in LLVM. We need to wait for upstream support for this feature.

@ianlancetaylor
Copy link
Contributor

Closing because this isn't something that the Go project can fix.

@ianlancetaylor ianlancetaylor closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2023
@golang golang locked and limited conversation to collaborators Feb 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

4 participants