Skip to content

Commit ed42098

Browse files
committed
WIP. Attempt to fix Github Actions issue with GLIBC
GH Actions is repeatedly failing today for reasons I don’t understand. Re-running the jobs sometimes works, sometimes doesn’t. Hopefully this stabilizes it. ---- error: failed to run custom build command for `proc-macro2 v1.0.95` note: To improve backtraces for build dependencies, set the CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation. Caused by: process didn't exit successfully: `/home/runner/work/crc-fast-rust/crc-fast-rust/target/debug/build/proc-macro2-566bea0d21b824a5/build-script-build` (exit status: 1) --- stderr /home/runner/work/crc-fast-rust/crc-fast-rust/target/debug/build/proc-macro2-566bea0d21b824a5/build-script-build: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by /home/runner/work/crc-fast-rust/crc-fast-rust/target/debug/build/proc-macro2-566bea0d21b824a5/build-script-build) warning: build failed, waiting for other jobs to finish... ----
1 parent 2f27164 commit ed42098

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919
steps:
2020
- uses: actions/checkout@v4 # not pinning to commit hash since this is a GitHub action, which we trust
21+
- name: Install GLIBC for aarch64 Ubuntu 22.04
22+
if: ${{ matrix.os == 'ubuntu-22.04-arm' }}
23+
run: |
24+
sudo apt update
25+
sudo apt install -y libc6
26+
wget http://ftp.gnu.org/gnu/libc/glibc-2.39.tar.gz
27+
tar -xvzf glibc-2.39.tar.gz
28+
cd glibc-2.39
29+
mkdir build
30+
cd build
31+
../configure --prefix=/opt/glibc-2.39
32+
make -j$(nproc)
33+
sudo make install
34+
export LD_LIBRARY_PATH=/opt/glibc-2.39/lib:$LD_LIBRARY_PATH
2135
- uses: actions-rust-lang/setup-rust-toolchain@9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9 # v1.12.0
2236
with:
2337
toolchain: ${{ matrix.rust-toolchain }}

0 commit comments

Comments
 (0)