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

Build failure: opentelemetry-collector-contrib #356708

Closed
Scrumplex opened this issue Nov 17, 2024 · 7 comments · Fixed by #362159
Closed

Build failure: opentelemetry-collector-contrib #356708

Scrumplex opened this issue Nov 17, 2024 · 7 comments · Fixed by #362159
Labels
0.kind: build failure A package fails to build

Comments

@Scrumplex
Copy link
Member

Steps To Reproduce

Steps to reproduce the behavior:

  1. build opentelemetry-collector-contrib
  2. view contents of result

Build log

Build Log
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/g3kmgm4z39khdfm18lr924xbkpgsh1g4-source
source root is source/cmd/otelcontribcol
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
shrinking RPATHs of ELF executables and libraries in /nix/store/vlqk2b12bak2ajjkc4kmamdqpqr8wil9-opentelemetry-collector-contrib-0.112.0
checking for references to /build/ in /nix/store/vlqk2b12bak2ajjkc4kmamdqpqr8wil9-opentelemetry-collector-contrib-0.112.0...
patching script interpreter paths in /nix/store/vlqk2b12bak2ajjkc4kmamdqpqr8wil9-opentelemetry-collector-contrib-0.112.0

Additional context

While the package "builds", it produces no output. I bisected this and its last package bump caused this: c65eb72

Metadata

Notify maintainers

@06kellyjac @uri-canva


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@Scrumplex Scrumplex added the 0.kind: build failure A package fails to build label Nov 17, 2024
@yelite
Copy link
Contributor

yelite commented Nov 18, 2024

It's caused by open-telemetry/opentelemetry-collector-contrib#34844. Generated code is removed.

@domenkozar
Copy link
Member

#357386

@06kellyjac
Copy link
Member

@domenkozar I saw your comment on the other PR about a broken MacOS build. Is the idea to close this issue and make a fresh one for the MacOS build failure or does it all work fine now?

@zimbatm
Copy link
Member

zimbatm commented Dec 5, 2024

Let's keep this open to track the issue.

@zimbatm zimbatm reopened this Dec 5, 2024
@zimbatm
Copy link
Member

zimbatm commented Dec 5, 2024

It's not super clear to me why obc doesn't work on macOS

opentelemetry-collector is fine

$ nix-build -A opentelemetry-collector-contrib.src
ls /nix/store/826c7yhicwki16hp9n20xzjp6cw0ypnr-otelcol-contrib
components.go	go.mod		go.sum		main.go		main_others.go	main_windows.go
$ nix-build -A opentelemetry-collector-contrib
<snip>
Building subPackage .
vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuremonitorexporter/factory.go:13:2: cannot find module providing package github.com/microsoft/ApplicationInsights-Go/appinsights: import lookup disabled by -mod=vendor
vendor/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuremonitorexporter/channels.go:6:8: cannot find module providing package github.com/microsoft/ApplicationInsights-Go/appinsights/contracts: import lookup disabled by -mod=vendor
vendor/github.com/open-telemetry/opentelemetry-collector-contrib/internal/sqlquery/db_client.go:14:2: cannot find module providing package github.com/microsoft/go-mssqldb: import lookup disabled by -mod=vendor
vendor/github.com/open-telemetry/opentelemetry-collector-contrib/internal/sqlquery/db_client.go:15:2: cannot find module providing package github.com/microsoft/go-mssqldb/integratedauth/krb5: import lookup disabled by -mod=vendor

Using proxyVendor = true; doesn't seem to help.

I'm out of time for more investigation until next Friday

@domenkozar
Copy link
Member

@sandydoo has a fix

@stratdev3
Copy link

the current v0.112 in nixos 24.11 is broken.

Could it be possible to update the latest version to nixos 24.11 ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants