-
Notifications
You must be signed in to change notification settings - Fork 567
fix(ci): repair cross image builds #6617
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
base: main
Are you sure you want to change the base?
Changes from all commits
ce3a204
45dcddb
a8e48a9
aac5f29
6cd3951
be0ffc3
d2f17c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,12 +7,22 @@ FROM ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main@sha256:2431cbfcf2499f8a00570 | |
|
|
||
| ARG PBC_URL="https://github.com/protocolbuffers/protobuf/releases/download/v21.5/protoc-21.5-linux-x86_64.zip" | ||
|
|
||
| # librdkafka 2.12.1 includes curl/curl.h even when OIDC support is disabled. | ||
| RUN apt-get update && \ | ||
| apt-get install -y --no-install-recommends \ | ||
| g++-10 \ | ||
| gcc-10 \ | ||
| libcurl4-openssl-dev \ | ||
| libsasl2-dev \ | ||
| unzip && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
Comment on lines
17
to
18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When the x86_64 Linux release builds Useful? React with 👍 / 👎. |
||
|
|
||
| # GCC 9.4 is affected by https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189, | ||
| # which aws-lc correctly rejects because it can miscompile memcmp at -O3. | ||
| ENV CC_x86_64_unknown_linux_gnu=gcc-10 \ | ||
| CXX_x86_64_unknown_linux_gnu=g++-10 \ | ||
| CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=gcc-10 | ||
|
Comment on lines
+22
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
In the Linux release path checked in Useful? React with 👍 / 👎. |
||
|
|
||
| RUN curl -fLO $PBC_URL && \ | ||
| unzip protoc-21.5-linux-x86_64.zip -d ./protobuf && \ | ||
| mv ./protobuf/bin/protoc /usr/bin/ && \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the ARM64 GNU release build, these variables only switch Cargo/cc-rs and the final linker; CMake-based crates still inherit cross-rs's toolchain file, which sets
CMAKE_C_COMPILERfromCROSS_TOOLCHAIN_PREFIXas${prefix}gcc, and this image leaves that at the base default. Since.github/actions/cross-build-binary/action.ymlbuildsrelease-feature-vendored-setand rdkafka-sys is enabled withcmake-build, librdkafka is still compiled with the old/usr/bin/aarch64-linux-gnu-gccinstead ofaarch64-linux-gnu-gcc-10, so the GCC 9.4 compiler bug this image is trying to avoid remains for the ARM64 Linux artifact unless the CMake toolchain prefix/suffix or compiler is updated too.Useful? React with 👍 / 👎.