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

arrow-cpp: fix crash in tests on x86_64-darwin #265395

Merged
merged 4 commits into from
Nov 4, 2023

Conversation

reckenrode
Copy link
Contributor

Description of changes

arrow-cpp crash fixes on x86_64-darwin for staging-next #263535.

The crash was happening GRPC due apparently the differing deployment targets. I cherry-picked #264503 as part of the troubleshooting and have opted to leave it included in the PR to avoid having to wait for another arrow-cpp rebuild.

I tested that arrow-cpp built on x86_64-darwin, but arrow-s3fs-test failed for me due to #265102. It is expected arrow-cpp should build successfully on Hydra.

Closes #264503.

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/)
  • 23.11 Release Notes (or backporting 23.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.

The 10.12 Libsystem is not located as a sub-attribute of
`darwin.apple_sdk_10_12`. This will be fixed as part of the SDK changes
planned for post-23.11. In the meantime, special case it so the adapter
can be used to change the deployment target.
abseil-cpp builds with the default SDK, which can break dependent
packages that require a different SDK version to build. Don’t propagate
the CoreFoundation framework path and rely on nixpkgs to provide it
instead. The line can’t be dropped because otherwise abseil-cpp will
fail to build (due to missing symbols).
Setting the deployment target to 10.13 is needed apparently for
compatibility with GRPC. Otherwise, several arrow-cpp tests crash.
@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Nov 4, 2023
@github-actions github-actions bot added the 6.topic: stdenv Standard environment label Nov 4, 2023
@ofborg ofborg bot requested a review from andersk November 4, 2023 06:15
@ofborg ofborg bot added 10.rebuild-darwin: 501+ 10.rebuild-darwin: 2501-5000 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Nov 4, 2023
@K900 K900 merged commit 7d2381f into NixOS:staging-next Nov 4, 2023
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin 6.topic: stdenv Standard environment 10.rebuild-darwin: 501+ 10.rebuild-darwin: 2501-5000 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