Skip to content

Commit ef923ba

Browse files
committed
Bump ubuntu version and use fetched libgccjit
Don't use system's libgccjit + bump ubuntu to have recent enough glibc Refs: compiler-explorer/compiler-explorer#8147
1 parent abf1076 commit ef923ba

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

Dockerfile.rust-cg-gcc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22

33
ARG DEBIAN_FRONTEND=noninteractive
44
RUN dpkg --add-architecture i386

rust-cg-gcc/build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@ pushd rustc_codegen_gcc
7676
cp config.example.toml config.toml
7777

7878
./y.sh prepare
79+
80+
# This may fail because it can't find libgccjit that it downloads itself....
81+
./y.sh build --sysroot --release || true
82+
83+
# So restart it after the failed execution.
84+
# Following y.sh needs to find the libgccjit that is getting downloaded
85+
SO_PATH=$(find -name "libgccjit.so")
86+
LIBRARY_PATH=$(dirname "$PWD"/"$SO_PATH")
87+
LD_LIBRARY_PATH=$(dirname "$PWD"/"$SO_PATH")
88+
export LIBRARY_PATH
89+
90+
# ... this one should work.
7991
./y.sh build --sysroot --release
8092

8193
popd

0 commit comments

Comments
 (0)