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 with System OpenSSL on Mac OS arm64 #31096

Merged
merged 3 commits into from Oct 20, 2022

Conversation

amchii
Copy link
Contributor

@amchii amchii commented Sep 22, 2022

Boringssl currently does not support macOS arm64, so installation on these platform with default config will undoubtedly fail. That means the env var 'GRPC_PYTHON_BUILD_SYSTEM_OPENSSL' must be set to true, but GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 mentioned in this issue #25082, I think it ain't necessary, because:

  1. zlib support build on macOS arm64, see Apple M1 and Failed to find a pointer-size integer type madler/zlib#559
  2. I successfully built gRPC after uninstall system zlib (and not set GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1

I don't know when will grpc provide python wheel for macOS arm64, but at least I think installing grpcio from source by default should be not failed.

@gnossen

Boringssl currently does not support macOS arm64, so installation on these platform with default config will undoubtedly fail, that means the env var 'BUILD_WITH_SYSTEM_OPENSSL' must be set to true.
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 22, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: amchii / name: Amchii (8ae913c)

Copy link
Contributor

@gnossen gnossen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@gnossen gnossen changed the title fix: grpcio fails to build from source on Apple Silicon mac #(25082) Build with System OpenSSL on Mac OS arm64 Oct 18, 2022
setup.py Outdated Show resolved Hide resolved
@gnossen gnossen added area/build release notes: yes Indicates if PR needs to be in release notes kokoro:run labels Oct 19, 2022
@gnossen
Copy link
Contributor

gnossen commented Oct 19, 2022

One minor thing: Can you please run tools/distrib/yapf_code.sh to format your code?

@amchii
Copy link
Contributor Author

amchii commented Oct 20, 2022

One minor thing: Can you please run tools/distrib/yapf_code.sh to format your code?

Formatted: 200fb50

@gnossen gnossen enabled auto-merge (squash) October 20, 2022 02:48
@gnossen gnossen merged commit b3d9833 into grpc:master Oct 20, 2022
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label Oct 20, 2022
gnossen added a commit to gnossen/grpc that referenced this pull request Nov 22, 2022
gnossen added a commit to gnossen/grpc that referenced this pull request Nov 22, 2022
gnossen added a commit that referenced this pull request Nov 22, 2022
gnossen added a commit that referenced this pull request Nov 22, 2022
jtattermusch added a commit that referenced this pull request Jan 11, 2023
* Bump  v1.51.x to 1.51.0-pre1 (#31622)

* bump version to 1.51.0-pre1

* regenerate projects

* Branch 1.51.x: Cherrypick "Adding token url validation cases for psc endpoints #31616" and "Added url validation for aws metadata endpoints in aws external account #31626" (#31646)

* Adding token url validation cases for psc endpoints (#31616)

* Adding validation case for psc endpoint

* formatting fix

* Added url validation for aws metadata endpoints in aws external account (#31626)

* Added url validation for aws metadata endpoints in aws external account

* addressing review comments

* fix error message back

* Fix broken test

* xds resolver: fix edge cases in interactions between LDS and RDS (#31668) (#31672)

* xds resolver: fix edge cases in interactions between LDS and RDS

* improve SwitchFromInlineRouteConfigToRds test

* clang-tidy

* Automated change: Fix sanity tests

Co-authored-by: markdroth <markdroth@users.noreply.github.com>

Co-authored-by: markdroth <markdroth@users.noreply.github.com>

* xDS: fix crash on wrong listener type (both client and server side) (#31684) (#31691)

* xds resolver: fix crash on wrong listener type

* fix same bug on server side

* fix clang-tidy and add requested TODO

* Bump v1.51.x to v1.51.0 (#31705)

* bump version to 1.51.0

* regenerate projects

* Revert "Build with System OpenSSL on Mac OS arm64 (#31096)" (#31739)

This reverts commit b3d9833.

* Bump v1.51.x to 1.51.1 (#31740)

* Bump to 1.51.1

* Regenerate projects

Co-authored-by: Richard Belleville <rbellevi@google.com>
Co-authored-by: aeitzman <12433791+aeitzman@users.noreply.github.com>
Co-authored-by: Mark D. Roth <roth@google.com>
Co-authored-by: markdroth <markdroth@users.noreply.github.com>
wanlin31 pushed a commit that referenced this pull request May 18, 2023
wanlin31 pushed a commit that referenced this pull request May 18, 2023
* Bump  v1.51.x to 1.51.0-pre1 (#31622)

* bump version to 1.51.0-pre1

* regenerate projects

* Branch 1.51.x: Cherrypick "Adding token url validation cases for psc endpoints #31616" and "Added url validation for aws metadata endpoints in aws external account #31626" (#31646)

* Adding token url validation cases for psc endpoints (#31616)

* Adding validation case for psc endpoint

* formatting fix

* Added url validation for aws metadata endpoints in aws external account (#31626)

* Added url validation for aws metadata endpoints in aws external account

* addressing review comments

* fix error message back

* Fix broken test

* xds resolver: fix edge cases in interactions between LDS and RDS (#31668) (#31672)

* xds resolver: fix edge cases in interactions between LDS and RDS

* improve SwitchFromInlineRouteConfigToRds test

* clang-tidy

* Automated change: Fix sanity tests

Co-authored-by: markdroth <markdroth@users.noreply.github.com>

Co-authored-by: markdroth <markdroth@users.noreply.github.com>

* xDS: fix crash on wrong listener type (both client and server side) (#31684) (#31691)

* xds resolver: fix crash on wrong listener type

* fix same bug on server side

* fix clang-tidy and add requested TODO

* Bump v1.51.x to v1.51.0 (#31705)

* bump version to 1.51.0

* regenerate projects

* Revert "Build with System OpenSSL on Mac OS arm64 (#31096)" (#31739)

This reverts commit b3d9833.

* Bump v1.51.x to 1.51.1 (#31740)

* Bump to 1.51.1

* Regenerate projects

Co-authored-by: Richard Belleville <rbellevi@google.com>
Co-authored-by: aeitzman <12433791+aeitzman@users.noreply.github.com>
Co-authored-by: Mark D. Roth <roth@google.com>
Co-authored-by: markdroth <markdroth@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build imported Specifies if the PR has been imported to the internal repository lang/Python release notes: yes Indicates if PR needs to be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants