Skip to content

How to build AIX binary since I have seen AIX supported 3 weeks ago #3162

@PaulYuanJ

Description

@PaulYuanJ

Host operating system: output of uname -a

Linux ip-172-31-8-215 6.8.0-1016-aws #17-Ubuntu SMP Mon Sep 2 13:48:07 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

I want make a new version for node_exporter on ubuntu system for AIX 6.1.0.0

GOOS=aix GOARCH=ppc64 CGO_ENABLED=0 make build
fatal: not a git repository (or any of the parent directories): .git
>> building binaries
/home/ubuntu/go/bin/promu --config .promu-cgo.yml build --prefix /home/ubuntu/node_exporter/sources-Td0pXGgt7K 
 >   node_exporter
# runtime/cgo
gcc: error: unrecognized command-line option ‘-maix64’
!! command failed: build -o /home/ubuntu/node_exporter/sources-Td0pXGgt7K/node_exporter -ldflags -X github.com/prometheus/common/version.Version=1.8.1 -X github.com/prometheus/common/version.Revision=non-git -X github.com/prometheus/common/version.Branch=non-git -X github.com/prometheus/common/version.BuildUser=ubuntu@ip-172-31-8-215 -X github.com/prometheus/common/version.BuildDate=20241021-15:04:07  -extldflags '-static' github.com/prometheus/node_exporter: exit status 1
make: *** [Makefile.common:204: common-build] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions