Skip to content

Makefile REL_OSARCH Paramter is ERROR #2588

Closed
@azxs6400949

Description

@azxs6400949

I had make volcano in arm64 computer, but the computer cmd log report:

#16 15.24 CC=cc CGO_ENABLED=0 /go/bin/gox -osarch=linux/arm64 -ldflags " -X 'volcano.sh/volcano/pkg/version.GitSHA=git rev-parse HEAD' -X 'volcano.sh/volcano/pkg/version.Built=date "+%Y-%m-%d %H:%M:%S"' -X 'volcano.sh/volcano/pkg/version.Version=latest'" -output _output/bin/vc-controller-manager ./cmd/controller-manager
#16 35.01 No valid platforms to build for. If you specified a value
#16 35.01 for the 'os', 'arch', or 'osarch' flags, make sure you're
#16 35.01 using a valid value.
#16 35.01 make: *** [Makefile:81: vc-controller-manager] Error 1

I found gox osarch only support -osarch=linux/arm After consulting the relevant information, can not use -osarch=linux/arm64
so I change the makefile REL_OSARCH Paramter linux/arm64 to linux/arm, and last the image is succeed.

maybe you can verify it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions