Skip to content

Commit

Permalink
update toolchain to gcc-14
Browse files Browse the repository at this point in the history
  • Loading branch information
jbbjarnason committed May 16, 2024
1 parent b4d2380 commit de54f6f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions containers/tfc-toolchain/install-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ hide_output apt install -y --no-install-recommends \
python3-distutils \
python3-jinja2 \
python3-venv \
gcc-13 \
g++-13 \
g++-13-aarch64-linux-gnu \
gcc-14 \
g++-14 \
g++-14-aarch64-linux-gnu \
libltdl-dev # Required for autoconf

# Install documentation specific packages
Expand Down
28 changes: 14 additions & 14 deletions containers/tfc-toolchain/tfc-toolchain.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# boost-build requires newer compiler than gcc 8
FROM ubuntu:23.04 AS base
FROM ubuntu:24.04 AS base

ENV DEBIAN_FRONTEND noninteractive

Expand All @@ -21,14 +21,14 @@ RUN ldconfig
COPY install-common.sh /tmp/
RUN ./install-common.sh

# Give gcc-13 some better names
RUN ln -sf /usr/bin/gcc-13 /cpproot/bin/gcc
RUN ln -sf /usr/bin/g++-13 /cpproot/bin/g++
RUN ln -sf /usr/bin/gcc-13 /cpproot/bin/cc
RUN ln -sf /usr/bin/aarch64-linux-gnu-gcc-ar-13 /cpproot/bin/aarch64-linux-gnu-ar
# Give gcc-14 some better names
RUN ln -sf /usr/bin/gcc-14 /cpproot/bin/gcc
RUN ln -sf /usr/bin/g++-14 /cpproot/bin/g++
RUN ln -sf /usr/bin/gcc-14 /cpproot/bin/cc
RUN ln -sf /usr/bin/aarch64-linux-gnu-gcc-ar-14 /cpproot/bin/aarch64-linux-gnu-ar
RUN ln -sf /usr/bin/aarch64-linux-gnu-strip /cpproot/bin/aarch64-linux-gnu-strip
RUN ln -sf /usr/bin/aarch64-linux-gnu-gcc-13 /cpproot/bin/aarch64-linux-gnu-gcc
RUN ln -sf /usr/bin/aarch64-linux-gnu-g++-13 /cpproot/bin/aarch64-linux-gnu-g++
RUN ln -sf /usr/bin/aarch64-linux-gnu-gcc-14 /cpproot/bin/aarch64-linux-gnu-gcc
RUN ln -sf /usr/bin/aarch64-linux-gnu-g++-14 /cpproot/bin/aarch64-linux-gnu-g++
RUN ln -sf /usr/aarch64-linux-gnu /cpproot/aarch64-linux-gnu
RUN ln -sf /usr/include/aarch64-linux-gnu /cpproot/include/aarch64-linux-gnu
RUN ln -sf /usr/lib/aarch64-linux-gnu /cpproot/lib/aarch64-linux-gnu
Expand All @@ -39,7 +39,7 @@ RUN ./install-cmake.sh 3.29.0
COPY build-ninja.sh /tmp/
RUN ./build-ninja.sh 1.11.1

# This has to happen after gcc-13 and cmake
# This has to happen after gcc-14 and cmake
COPY build-mold.sh /tmp/
RUN ./build-mold.sh 2.30.0

Expand All @@ -53,17 +53,17 @@ RUN mkdir -p /var/run/dbus/
RUN sed -i 's|deny own=|allow own=|g' /usr/share/dbus-1/system.conf
RUN sed -i 's|deny send_type="method_call"|allow send_type="method_call"|g' /usr/share/dbus-1/system.conf

FROM base AS gcc-13
FROM base AS gcc-14

COPY build-binutils.sh /tmp/
RUN ./build-binutils.sh 2.40

# COPY build-gcc-from-commit.sh /tmp/
# RUN ./build-gcc-from-commit.sh eb83605be3db9e8246c73755eafcac5df32ddc69
RUN apt update
# RUN apt install g++-13-aarch64-linux-gnu -y # Already done in common
RUN ln -sf /usr/bin/aarch64-linux-gnu-gcc-13 /cpproot/bin/aarch64-linux-gnu-gcc
RUN ln -sf /usr/bin/aarch64-linux-gnu-g++-13 /cpproot/bin/aarch64-linux-gnu-g++
# RUN apt install g++-14-aarch64-linux-gnu -y # Already done in common
RUN ln -sf /usr/bin/aarch64-linux-gnu-gcc-14 /cpproot/bin/aarch64-linux-gnu-gcc
RUN ln -sf /usr/bin/aarch64-linux-gnu-g++-14 /cpproot/bin/aarch64-linux-gnu-g++
# RUN apt remove -y gcc g++

#RUN apt update && apt install -y --no-install-recommends libisl-dev libmpc-dev libc-dev
Expand All @@ -73,7 +73,7 @@ RUN apt clean all
RUN rm -rf /var/lib/apt/lists/*
RUN rm -rf /tmp/*

FROM gcc-13 as clang-18
FROM gcc-14 as clang-18

COPY shared.sh /tmp/
COPY build-clang.sh /tmp/
Expand Down

0 comments on commit de54f6f

Please sign in to comment.