-
Notifications
You must be signed in to change notification settings - Fork 1.2k
tink cannot be installed on arm64 linux #694
Comments
Updated to correct the suggestion to align with the Bazel version used in v1.7.0 Can you try using Bazel This version is specified in You might also consider using Bazelisk, which automatically fetches the right version of Bazel for a project. |
After trying to use version 6.0.0, I still get the same error:
Then I tried replacing the bazel command with bazelisk and executing pip install tink again The same error is reported
I used bazelisk-linux-arm64 v1.17.0 |
Can you instead try Bazel 5.1.1? My previous comment (before editing it) made reference to the Bazel version used in the project as of the latest commit to master. Instead, we need to make sure to use the Bazel version specified as of the Also, this isn't guaranteed to work as we haven't tested the project in a Linux arm64 environment, but I'm curious to see if it works once we work through these initial issues. |
Hello, this is an error when using bazel 5.1.1:
|
I used bazel5.1.1 to compile tink1.7.0 on aarch64 environment, the following error message is returned:
|
Tink Py v1.7.0 depends on https://github.com/google/tink/tree/1.7/cc/integration/awskms, and the BUILD.bazel file for |
…S instead of CPU This relaxes some (currently) unnecessary constraint on the CPU type. Also add a default condition to `@platform:incompatible` otherwise. tink-crypto/tink#694 PiperOrigin-RevId: 538729756 Change-Id: Ia5ff263733ee97a11f0444ec3bc524173e9f6e9e
…S instead of CPU This relaxes some (currently) unnecessary constraint on the CPU type. Also add a default condition to `@platform:incompatible` otherwise. #694 PiperOrigin-RevId: 538729756
…m/*.c based on @platforms//cpu tink-crypto/tink#694 PiperOrigin-RevId: 538872149 Change-Id: Ie403af5bd1cfe073a752d0a1c180bedefbcd0c82
…m/*.c based on @platforms//cpu #694 PiperOrigin-RevId: 538872149
Unfortunately the source distribution is brokenThe published
Dockerfile to reproduce the errorFROM quay.io/pypa/manylinux2014_aarch64
ARG TARGETPLATFORM
ARG BAZEL_VERSION=5.1.1
ARG PROTOC_VERSION=3.20.3
ENV BAZEL_CXXOPTS="-std=c++14"
# Install Google Bazel and protoc for arm64
RUN curl -L -O https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/bazel-$BAZEL_VERSION-linux-arm64 && \
chmod +x bazel-$BAZEL_VERSION-linux-arm64 && \
mv bazel-$BAZEL_VERSION-linux-arm64 /usr/local/bin/bazel && \
curl -L -O https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-aarch_64.zip && \
unzip protoc-$PROTOC_VERSION-linux-aarch_64.zip && \
chmod +x bin/protoc && \
mv bin/protoc /usr/local/bin/protoc
# pip_repository.bzl requires python3 to be in the PATH
RUN ln -sf $(which python3.8) /usr/local/bin/python3
RUN python3 -m pip wheel tink==1.7.0 --no-deps && \
auditwheel repair tink*.whl --wheel-dir dist/ But It can be built directly from GithubI was able to build the wheel by downloading https://github.com/google/tink/archive/refs/tags/v1.7.0.tar.gz and changing nothing else in the Dockerfile above: Dockerfile to reproduceFROM quay.io/pypa/manylinux2014_aarch64
ARG TARGETPLATFORM
ARG BAZEL_VERSION=5.1.1
ARG PROTOC_VERSION=3.20.3
ENV BAZEL_CXXOPTS="-std=c++14"
# Install Google Bazel and protoc for arm64
RUN curl -L -O https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/bazel-$BAZEL_VERSION-linux-arm64 && \
chmod +x bazel-$BAZEL_VERSION-linux-arm64 && \
mv bazel-$BAZEL_VERSION-linux-arm64 /usr/local/bin/bazel && \
curl -L -O https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-aarch_64.zip && \
unzip protoc-$PROTOC_VERSION-linux-aarch_64.zip && \
chmod +x bin/protoc && \
mv bin/protoc /usr/local/bin/protoc
# pip_repository.bzl requires python3 to be in the PATH
RUN ln -sf $(which python3.8) /usr/local/bin/python3
RUN curl -L -O https://github.com/google/tink/archive/refs/tags/v1.7.0.tar.gz && tar -xzf v1.7.0.tar.gz
RUN python3 -m pip wheel tink-1.7.0/python/ --no-deps && \
auditwheel repair tink*.whl --wheel-dir dist/ Is it possible to please publish
|
We are working on a patch release for 1.7.0 with minor fixes, but this is not going to include a wheel for
v1.8.0 should be completed by the end of Q3/23; the plan is also to include a wheel for Linux |
OS
I also failed to install tink on Centoss 7.9
pip install tink
After trying to install bazel yourself, pip install tink again
Have tried these versions of bazel:
The text was updated successfully, but these errors were encountered: