Skip to content

AIX build fails to run with CGO_ENABLED=0 #1806

@atoulme

Description

@atoulme

Describe the bug
See https://github.com/open-telemetry/opentelemetry-collector/actions/runs/13653662476/job/38167780904?pr=12540

On update to v4.25.2, we see a compilation error for aix:

pushd cmd/otelcorecol && CGO_ENABLED=0 go build -trimpath -o ../../bin/otelcorecol_aix_ppc64 \
	-tags  ./cmd/otelcorecol && popd
~/work/opentelemetry-collector/opentelemetry-collector/cmd/otelcorecol ~/work/opentelemetry-collector/opentelemetry-collector
# github.com/shirou/gopsutil/v4/net
Error: /home/runner/go/pkg/mod/github.com/shirou/gopsutil/v4@v4.25.2/net/net_aix_nocgo.go:[9](https://github.com/open-telemetry/opentelemetry-collector/actions/runs/13653662476/job/38167780904?pr=12540#step:5:10)2:10: not enough return values
	have ([]IOCountersStat)
	want ([]IOCountersStat, error)
make: *** [Makefile:159: otelcorecol] Error 1

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions