Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[exporter/signalfx] hostmetadata fails to compile on multiple platforms #6813

Closed
jpkrohling opened this issue Dec 15, 2021 · 4 comments · Fixed by #7062
Closed

[exporter/signalfx] hostmetadata fails to compile on multiple platforms #6813

jpkrohling opened this issue Dec 15, 2021 · 4 comments · Fixed by #7062
Assignees
Labels
bug Something isn't working ci-cd CI, CD, testing, build issues comp:splunk Splunk components

Comments

@jpkrohling
Copy link
Member

When building the contrib distribution as part of the releases repository, the signalfx exporter fails to compile, due to:

Error: /home/runner/go/pkg/mod/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/[email protected]/internal/hostmetadata/host_linux.go:37:68: cannot use uname.Version[:] (type []uint8) as type []int8 in argument to int8ArrayToByteArray
Error: /home/runner/go/pkg/mod/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/[email protected]/internal/hostmetadata/host_linux.go:47:62: cannot use uname.Machine[:] (type []uint8) as type []int8 in argument to int8ArrayToByteArray

cc @pmcollins @asuresh4 @dmitryax

@jpkrohling jpkrohling added bug Something isn't working ci-cd CI, CD, testing, build issues comp:splunk Splunk components labels Dec 15, 2021
@jpkrohling
Copy link
Member Author

jpkrohling commented Dec 15, 2021

Note: I was able to run goreleaser locally without problems, so, not sure this is happening only in the CI.

@jpkrohling jpkrohling changed the title [exporter/signalfx] hostmetadata fails to compile on armv6 [exporter/signalfx] hostmetadata fails to compile on multiple platforms Dec 16, 2021
@jpkrohling
Copy link
Member Author

Same with s390x:

   ⨯ release failed after 167.48s error=failed to build for linux_s390x: exit status 2: # github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/internal/hostmetadata
/home/jpkroehling/go/pkg/mod/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/[email protected]/internal/hostmetadata/host_linux.go:37:68: cannot use uname.Version[:] (type []uint8) as type []int8 in argument to int8ArrayToByteArray
/home/jpkroehling/go/pkg/mod/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/[email protected]/internal/hostmetadata/host_linux.go:47:62: cannot use uname.Machine[:] (type []uint8) as type []int8 in argument to int8ArrayToByteArray

make: *** [Makefile:27: goreleaser-verify] Error 1

@jpkrohling
Copy link
Member Author

And armv7:

   ⨯ release failed after 10.31s error=failed to build for linux_arm_7: exit status 2: # github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter/internal/hostmetadata
/home/jpkroehling/go/pkg/mod/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/[email protected]/internal/hostmetadata/host_linux.go:37:68: cannot use uname.Version[:] (type []uint8) as type []int8 in argument to int8ArrayToByteArray
/home/jpkroehling/go/pkg/mod/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/[email protected]/internal/hostmetadata/host_linux.go:47:62: cannot use uname.Machine[:] (type []uint8) as type []int8 in argument to int8ArrayToByteArray

@dmitryax dmitryax self-assigned this Jan 4, 2022
@dmitryax
Copy link
Member

dmitryax commented Jan 4, 2022

I was able to reproduce it with otel builder. Will submit a PR shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci-cd CI, CD, testing, build issues comp:splunk Splunk components
Projects
None yet
2 participants