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] Fix armhf and arm64 build break #9196

Closed
wants to merge 1 commit into from

Conversation

dflynn-Nokia
Copy link
Contributor

Why I did it

PR# 8366 added grpcio for both python2 and python 3 to the Sonic build. The
python2 installation is failing for both armhf and arm64. This commit removes
grpcio from the build of ARM based platforms as it is not currently needed.

How I did it

Remove grpcio and grpcio-tools python package installation from target filesystem for all but the amd64 platform.

How to verify it

Build the armhf and arm64 platforms

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

@dflynn-Nokia dflynn-Nokia requested a review from lguohan as a code owner November 8, 2021 18:47
PR# 8366 added grpcio for both python2 and python 3 to the Sonic build. The
python2 installation is failing for both armhf and arm64. This commit removes
grpcio from the build of ARM based platforms as it is not currently needed.
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip2 install "grpcio==1.39.0"
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip2 install "grpcio-tools==1.39.0"
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install "grpcio==1.39.0"
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install "grpcio-tools==1.39.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

grpcio is supported for python3. We can also wait till #8191 is merged to address the master issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I considered leaving the pip3 install in place but in the end jettisoned the whole thing. Probably not the best approach. I'm fine with waiting for PR 8191. Hoping that doesn't take too long. Don't want to not have armhf build regression coverage for too long.

@dflynn-Nokia
Copy link
Contributor Author

The upcoming upgrade to Bullseye removes python2 support for grpcio and thus avoids this build failure. This will fix the master branch build break for ARM. Thus I am closing this PR. We can address the build break in the 202106 branch in a later PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants