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

Cannot build on IBM s390x architecture because gRPC builds failed. #2

Open
hv0905 opened this issue Oct 15, 2023 · 1 comment
Open

Comments

@hv0905
Copy link

hv0905 commented Oct 15, 2023

When building the docker image on IBM LinuxOne, an error encountered:
image

According to BoringSSL, it seems that s390x is not a supported architecture.

image

Are there any way to solve this problem or workaround it? Any help would be thanked!

@hv0905
Copy link
Author

hv0905 commented Oct 16, 2023

After investigating, this problem can be solved by using openSSL library provided by system, instead of Google's boringSSL, Below is the dockerfile to build gRPC I used in my project:

RUN apt-get update && apt-get install ca-certificates curl build-essential ninja-build git cmake libspdlog-dev libssl-dev openssl -y --no-install-recommends && \
    rm -rf /var/lib/apt/lists/*

ENV GRPC_RELEASE_TAG="v1.59.1"

RUN git clone -b $GRPC_RELEASE_TAG https://github.com/grpc/grpc \
    && cd grpc && git submodule init && git submodule deinit third_party/boringssl-with-bazel && git submodule update \
    && mkdir -p cmake/build && cd cmake/build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DgRPC_SSL_PROVIDER=package ../.. \
    && ninja && ninja install && cd / \
    && rm -rf grpc

Hope this would help.

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

No branches or pull requests

1 participant