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
python/grpcio: fix darwin build #44902
Conversation
grpcio currently does not build on Darwin (10.13.6). Due to the following issues: * ar is invoked with incorrect flags (NixOS#33765). * libtool cannot be found, with a libtool dependency, with libtool the option '-no_warning_for_no_symbols' is not recognized. * the module build cannot find boringssl that is packaged with python-grpcio when pkgconfig is not installed (grpc/NixOS#10058).
@GrahamcOfBorg build python27Packages.grpcio python36Packages.grpcio |
Success on x86_64-darwin (full log) Attempted: python27Packages.grpcio, python36Packages.grpcio Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: python27Packages.grpcio, python36Packages.grpcio Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python27Packages.grpcio, python36Packages.grpcio Partial log (click to expand)
|
Before I open a new issue I wanted to share my problem here, since it's similar. I'm not able to build grpcio on darwin because the boringssl build fails. Steps to reproducestart a nix-shell with:
Technical details
|
It's probably more useful to start a new issue. I encountered the same issue on darwin, but didn't have time to get to the bottom of it. |
I have found and fixed the issue. I'll do a pull request in a bit. |
See #58456 |
This fixes `aarch64-darwin` build in NixOS#105026. Without this the `strip` in `PATH` is the one from `darwin.cctools`, which doesn't preserve code signatures, resulting in code that cannot run and pass `pythonImportsCheckPhase`. The dependency on cctools was introduced in NixOS#44902 in 2018, but it doesn't seem to be necessary on `x86_64-darwin` today.
grpcio currently does not build on Darwin (10.13.6). Due to the
following issues:
the option '-no_warning_for_no_symbols' is not recognized.
python-grpcio when pkgconfig is not installed (grpc/joe: 4.0 -> 4.1 #10058).
Motivation for this change
See above. Unfortunately, I could not test on NixOS, since I am in an airport ;).
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)