Skip to content

Conversation

@xal-0
Copy link
Member

@xal-0 xal-0 commented Dec 1, 2025

Red Hat-based distros don't include the static version of libstdc++ in their g++ packages, so document this dependency, as well as the USE_RT_STATIC_LIBSTDCXX=0 workaround if it isn't available. I also looked for missing dependencies by compiling Julia in the base fedora:42 and debian:12 images:

FROM debian:12 AS build

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential libatomic1 python3 gfortran perl wget m4 cmake pkg-config \
    curl git ca-certificates

WORKDIR /build
RUN git clone --depth=1 https://github.com/JuliaLang/julia.git

RUN cd julia && make -j binary-dist VERBOSE=1
FROM fedora:42 AS build

RUN dnf install -y --nodocs --setopt=install_weak_deps=False \
    gcc gcc-c++ gcc-gfortran python3 perl wget m4 cmake pkgconfig curl git \
    which diffutils libatomic libstdc++-static

WORKDIR /build
RUN git clone --depth=1 https://github.com/JuliaLang/julia.git

RUN cd julia && make -j binary-dist VERBOSE=1

Reported by #60248 (comment).

@gbaraldi
Copy link
Member

gbaraldi commented Dec 1, 2025

Can't we bundle this ourselves?

@xal-0
Copy link
Member Author

xal-0 commented Dec 2, 2025

I don't think it makes sense to ship static libstdc++ unless we also provide the compiler, since it is g++-version specific (unlike the dynamic library).

@gbaraldi
Copy link
Member

gbaraldi commented Dec 2, 2025

Is this Gcc specific or does clang not provide a way to statically link libstdc++ at all?

@vtjnash vtjnash merged commit c4d3e13 into JuliaLang:master Dec 2, 2025
10 checks passed
@xal-0 xal-0 deleted the devdocs-update-deps branch December 2, 2025 21:32
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

Successfully merging this pull request may close these issues.

3 participants