Skip to content

Issue building ARM Graviton on AWS #2190

@vsoch

Description

@vsoch

I downloaded go 1.24.x linux/arm64 and am having issues building. Note that I have the

export GOOS=linux
export GOARCH=arm64

[root@ip-192-168-26-164 node-feature-discovery]# make build
go build -v -o bin/ -tags osusergo,netgo -ldflags "-s -w -extldflags=-static -X sigs.k8s.io/node-feature-discovery/pkg/version.version=341bdb63 -X sigs.k8s.io/node-feature-discovery/pkg/utils/hostpath.pathPrefix=/" ./cmd/nfd-master
go build -v -o bin/ -tags osusergo,netgo -ldflags "-s -w -extldflags=-static -X sigs.k8s.io/node-feature-discovery/pkg/version.version=341bdb63 -X sigs.k8s.io/node-feature-discovery/pkg/utils/hostpath.pathPrefix=/" ./cmd/nfd-worker
sigs.k8s.io/node-feature-discovery/source/cpu
# sigs.k8s.io/node-feature-discovery/source/cpu
source/cpu/cpu.go:210:63: undefined: getCpuidFlags
source/cpu/cpu.go:211:19: undefined: getCpuidAttributes
make: *** [Makefile:99: build-nfd-worker] Error 1

# System info
[root@ip-192-168-26-164 node-feature-discovery]# uname -a
Linux ip-192-168-26-164.ec2.internal 6.1.141-155.222.amzn2023.aarch64 #1 SMP Tue Jun 17 10:29:19 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux

# This doesn't work either
# go build -v -o bin/ ./cmd/*
sigs.k8s.io/node-feature-discovery/source/cpu
# sigs.k8s.io/node-feature-discovery/source/cpu
source/cpu/cpu.go:210:63: undefined: getCpuidFlags
source/cpu/cpu.go:211:19: undefined: getCpuidAttributes

Could you please advise? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions