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

bazel_{5,6,7}: use new apple sdk pattern #370672

Merged
merged 5 commits into from
Jan 3, 2025
Merged

Conversation

wegank
Copy link
Member

@wegank wegank commented Jan 3, 2025

This also fixes build failures on master: https://hydra.nixos.org/eval/1810825?filter=bazel&compare=1810818&full=#tabs-still-fail

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 10.rebuild-darwin: 11-100 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Jan 3, 2025
@wegank wegank marked this pull request as ready for review January 3, 2025 18:14
@nix-owners nix-owners bot requested a review from Profpatsch January 3, 2025 18:16
@wegank
Copy link
Member Author

wegank commented Jan 3, 2025

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 370672


aarch64-darwin

⏩ 2 packages marked as broken and skipped:
  • libtensorflow
  • libtensorflow.python
❌ 17 packages failed to build:
  • protoc-gen-js
  • python312Packages.bambi
  • python312Packages.bambi.dist
  • python312Packages.distrax
  • python312Packages.distrax.dist
  • python312Packages.numpyro
  • python312Packages.numpyro.dist
  • python312Packages.oryx
  • python312Packages.oryx.dist
  • python312Packages.pymc
  • python312Packages.pymc.dist
  • python312Packages.pytensor
  • python312Packages.pytensor.dist
  • python312Packages.rlax
  • python312Packages.rlax.dist
  • python312Packages.tensorflow-probability
  • python312Packages.tensorflow-probability.dist
✅ 3 packages built:
  • bazel (bazel_6)
  • bazel_5
  • bazel_7

@wegank
Copy link
Member Author

wegank commented Jan 3, 2025

Oh, how bad is that...

@nix-owners nix-owners bot requested a review from bcdarwin January 3, 2025 20:36
@wegank
Copy link
Member Author

wegank commented Jan 3, 2025

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 370672


aarch64-darwin

⏩ 14 packages marked as broken and skipped:
  • libtensorflow
  • libtensorflow.python
  • python312Packages.cleanlab
  • python312Packages.cleanlab.dist
  • python312Packages.dalle-mini
  • python312Packages.dalle-mini.dist
  • python312Packages.elegy
  • python312Packages.elegy.dist
  • python312Packages.objax
  • python312Packages.objax.dist
  • python312Packages.tf2onnx
  • python312Packages.tf2onnx.dist
  • python312Packages.treex
  • python312Packages.treex.dist
❌ 25 packages failed to build:
  • protoc-gen-js
  • python312Packages.bambi
  • python312Packages.bambi.dist
  • python312Packages.deepface
  • python312Packages.deepface.dist
  • python312Packages.distrax
  • python312Packages.distrax.dist
  • python312Packages.evosax
  • python312Packages.evosax.dist
  • python312Packages.flax
  • python312Packages.flax.dist
  • python312Packages.flowmc
  • python312Packages.flowmc.dist
  • python312Packages.numpyro
  • python312Packages.numpyro.dist
  • python312Packages.oryx
  • python312Packages.oryx.dist
  • python312Packages.pymc
  • python312Packages.pymc.dist
  • python312Packages.pytensor
  • python312Packages.pytensor.dist
  • python312Packages.rlax
  • python312Packages.rlax.dist
  • python312Packages.vqgan-jax
  • python312Packages.vqgan-jax.dist
✅ 23 packages built:
  • bazel (bazel_6)
  • bazel_5
  • bazel_7
  • python312Packages.blackjax
  • python312Packages.blackjax.dist
  • python312Packages.edward
  • python312Packages.edward.dist
  • python312Packages.jaxopt
  • python312Packages.jaxopt.dist
  • python312Packages.keras
  • python312Packages.keras.dist
  • python312Packages.mhcflurry
  • python312Packages.mhcflurry.dist
  • python312Packages.mtcnn
  • python312Packages.mtcnn.dist
  • python312Packages.retinaface
  • python312Packages.retinaface.dist
  • python312Packages.tensorflow-probability
  • python312Packages.tensorflow-probability.dist
  • python313Packages.blackjax
  • python313Packages.blackjax.dist
  • python313Packages.jaxopt
  • python313Packages.jaxopt.dist

@wegank
Copy link
Member Author

wegank commented Jan 3, 2025

For the last two commits, affected packages have been failing since long:

https://hydra.nixos.org/job/nixpkgs/trunk/python312Packages.keras.aarch64-darwin
https://hydra.nixos.org/job/nixpkgs/trunk/python312Packages.jaxopt.aarch64-darwin

I'll stop trying to fix more packages on Darwin, it's like pulling in an infinite number of irrelevant package patches. There's no rebuild on Linux anyway.

@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 370672


x86_64-darwin

⏩ 2 packages marked as broken and skipped:
  • libtensorflow
  • libtensorflow.python
❌ 3 packages failed to build:
  • bazel (bazel_6)
  • bazel_7
  • protoc-gen-js
✅ 1 package built:
  • bazel_5

aarch64-darwin

⏩ 14 packages marked as broken and skipped:
  • libtensorflow
  • libtensorflow.python
  • python312Packages.cleanlab
  • python312Packages.cleanlab.dist
  • python312Packages.dalle-mini
  • python312Packages.dalle-mini.dist
  • python312Packages.elegy
  • python312Packages.elegy.dist
  • python312Packages.objax
  • python312Packages.objax.dist
  • python312Packages.tf2onnx
  • python312Packages.tf2onnx.dist
  • python312Packages.treex
  • python312Packages.treex.dist
❌ 25 packages failed to build:
  • protoc-gen-js
  • python312Packages.bambi
  • python312Packages.bambi.dist
  • python312Packages.deepface
  • python312Packages.deepface.dist
  • python312Packages.distrax
  • python312Packages.distrax.dist
  • python312Packages.evosax
  • python312Packages.evosax.dist
  • python312Packages.flax
  • python312Packages.flax.dist
  • python312Packages.flowmc
  • python312Packages.flowmc.dist
  • python312Packages.numpyro
  • python312Packages.numpyro.dist
  • python312Packages.oryx
  • python312Packages.oryx.dist
  • python312Packages.pymc
  • python312Packages.pymc.dist
  • python312Packages.pytensor
  • python312Packages.pytensor.dist
  • python312Packages.rlax
  • python312Packages.rlax.dist
  • python312Packages.vqgan-jax
  • python312Packages.vqgan-jax.dist
✅ 15 packages built:
  • bazel (bazel_6)
  • bazel_5
  • bazel_7
  • python312Packages.edward
  • python312Packages.edward.dist
  • python312Packages.keras
  • python312Packages.keras.dist
  • python312Packages.mhcflurry
  • python312Packages.mhcflurry.dist
  • python312Packages.mtcnn
  • python312Packages.mtcnn.dist
  • python312Packages.retinaface
  • python312Packages.retinaface.dist
  • python312Packages.tensorflow-probability
  • python312Packages.tensorflow-probability.dist

@wegank
Copy link
Member Author

wegank commented Jan 3, 2025

Emmm, bazel builds well for me on x86_64-darwin. But anyway, there aren't many rebuilds there. Thanks for the nixpkgs-review.

@wegank wegank merged commit 80893e0 into NixOS:master Jan 3, 2025
22 checks passed
@wegank wegank deleted the bazel-refactor branch January 3, 2025 23:10
@GaetanLepage
Copy link
Contributor

Thanks for fixing those. Darwin failures are indeed annoying.

@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 370672


x86_64-darwin

⏩ 2 packages marked as broken and skipped:
  • libtensorflow
  • libtensorflow.python
❌ 1 package failed to build:
  • protoc-gen-js
✅ 3 packages built:
  • bazel (bazel_6)
  • bazel_5
  • bazel_7

aarch64-darwin

⏩ 14 packages marked as broken and skipped:
  • libtensorflow
  • libtensorflow.python
  • python312Packages.cleanlab
  • python312Packages.cleanlab.dist
  • python312Packages.dalle-mini
  • python312Packages.dalle-mini.dist
  • python312Packages.elegy
  • python312Packages.elegy.dist
  • python312Packages.objax
  • python312Packages.objax.dist
  • python312Packages.tf2onnx
  • python312Packages.tf2onnx.dist
  • python312Packages.treex
  • python312Packages.treex.dist
❌ 25 packages failed to build:
  • protoc-gen-js
  • python312Packages.bambi
  • python312Packages.bambi.dist
  • python312Packages.deepface
  • python312Packages.deepface.dist
  • python312Packages.distrax
  • python312Packages.distrax.dist
  • python312Packages.evosax
  • python312Packages.evosax.dist
  • python312Packages.flax
  • python312Packages.flax.dist
  • python312Packages.flowmc
  • python312Packages.flowmc.dist
  • python312Packages.numpyro
  • python312Packages.numpyro.dist
  • python312Packages.oryx
  • python312Packages.oryx.dist
  • python312Packages.pymc
  • python312Packages.pymc.dist
  • python312Packages.pytensor
  • python312Packages.pytensor.dist
  • python312Packages.rlax
  • python312Packages.rlax.dist
  • python312Packages.vqgan-jax
  • python312Packages.vqgan-jax.dist
✅ 23 packages built:
  • bazel (bazel_6)
  • bazel_5
  • bazel_7
  • python312Packages.blackjax
  • python312Packages.blackjax.dist
  • python312Packages.edward
  • python312Packages.edward.dist
  • python312Packages.jaxopt
  • python312Packages.jaxopt.dist
  • python312Packages.keras
  • python312Packages.keras.dist
  • python312Packages.mhcflurry
  • python312Packages.mhcflurry.dist
  • python312Packages.mtcnn
  • python312Packages.mtcnn.dist
  • python312Packages.retinaface
  • python312Packages.retinaface.dist
  • python312Packages.tensorflow-probability
  • python312Packages.tensorflow-probability.dist
  • python313Packages.blackjax
  • python313Packages.blackjax.dist
  • python313Packages.jaxopt
  • python313Packages.jaxopt.dist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: python 10.rebuild-darwin: 11-100 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants