Skip to content

Support RISCV64 #643

@qdm12

Description

@qdm12

There is the dependency github.com/prometheus/procfs which added support for riscv64 in v0.6.0 (prometheus/procfs@910e685)
Currently trying to build for riscv64:

GOARCH=riscv64 go build  ./cmd/buildx

will fail with

/go/pkg/mod/github.com/prometheus/procfs@v0.1.3/cpuinfo.go:71:9: undefined: parseCPUInfo

buildx probably depends on many dependencies using versions before v0.6.0 so it's more of a long shot than something that can be fixed in a single PR I believe. Although

go get github.com/prometheus/procfs@v0.6.0
go mod tidy

Fixes the build, but probably in a risky-ish way I guess. Not a priority issue at all, but I thought it would be useful to track it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions