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

examples in examples/toolchains use a platform provided cc toolchain #501

Open
prednaz opened this issue Apr 11, 2024 · 0 comments
Open

Comments

@prednaz
Copy link
Member

prednaz commented Apr 11, 2024

Describe the bug
i believe, the examples in examples/toolchains use a platform provided cc toolchain instead of a rules_nixpkgs provided one, as claimed by #286.

To Reproduce
executing cd examples/toolchains/go && nix-shell --command 'bazel run --config=nix :hello' on nixos fails with Auto-Configuration Error: Cannot find gcc or CC; either correct your path or set the CC environment variable.

turning nix-shell into nix-shell --pure in .github/workflows/workflow.yaml causes ci to fail with the same error message too as demonstrated with #500.

Expected behavior
if the cc toolchain was provided by rules_nixpkgs, switching to nixos or nix-shell --pure should not prevent bazel from finding "gcc or CC".

Environment

  • OS name + version: NixOS 23.11.4080.fb0c047e30b6 (Tapir) x86_64
  • Version of the code: 126e9f6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant