@@ -9,7 +9,7 @@ You can find a number of sources to build docker images with LLVM components in
99images for their own use, or as a starting point for someone who wants to write
1010their own Dockerfiles.
1111
12- We currently provide Dockerfiles with ``debian10 `` and ``nvidia-cuda `` base images.
12+ We currently provide Dockerfiles with ``debian12 `` and ``nvidia-cuda `` base images.
1313We also provide an ``example `` image, which contains placeholders that one would need
1414to fill out in order to produce Dockerfiles for a new docker image.
1515
@@ -72,13 +72,13 @@ checkout from git and provide a list of CMake arguments to use during when
7272building LLVM inside docker container.
7373
7474Here's a very simple example of getting a docker image with clang binary,
75- compiled by the system compiler in the debian10 image:
75+ compiled by the system compiler in the debian12 image:
7676
7777.. code-block :: bash
7878
7979 ./llvm/utils/docker/build_docker_image.sh \
80- --source debian10 \
81- --docker-repository clang-debian10 --docker-tag " staging" \
80+ --source debian12 \
81+ --docker-repository clang-debian12 --docker-tag " staging" \
8282 -p clang -i install-clang -i install-clang-resource-headers \
8383 -- \
8484 -DCMAKE_BUILD_TYPE=Release
@@ -93,51 +93,45 @@ this command will do that:
9393 # LLVM_TARGETS_TO_BUILD=Native is to reduce stage1 compile time.
9494 # Options, starting with BOOTSTRAP_* are passed to stage2 cmake invocation.
9595 ./build_docker_image.sh \
96- --source debian10 \
97- --docker-repository clang-debian10 --docker-tag " staging" \
96+ --source debian12 \
97+ --docker-repository clang-debian12 --docker-tag " staging" \
9898 -p clang -i stage2-install-clang -i stage2-install-clang-resource-headers \
9999 -- \
100100 -DLLVM_TARGETS_TO_BUILD=Native -DCMAKE_BUILD_TYPE=Release \
101101 -DBOOTSTRAP_CMAKE_BUILD_TYPE=Release \
102102 -DCLANG_ENABLE_BOOTSTRAP=ON -DCLANG_BOOTSTRAP_TARGETS=" install-clang;install-clang-resource-headers"
103103
104- This will produce a new image ``clang-debian10 :staging `` from the latest
104+ This will produce a new image ``clang-debian12 :staging `` from the latest
105105upstream revision.
106106After the image is built you can run bash inside a container based on your image
107107like this:
108108
109109.. code-block :: bash
110110
111- docker run -ti clang-debian10 :staging bash
111+ docker run -ti clang-debian12 :staging bash
112112
113113 Now you can run bash commands as you normally would:
114114
115115.. code-block :: bash
116116
117117 root@80f351b51825:/# clang -v
118- clang version 5.0.0 (trunk 305064)
118+ clang version 19.1.7 (trunk 524462)
119+ Target: x86_64-unknown-linux-gnu
119120 Target: x86_64-unknown-linux-gnu
120121 Thread model: posix
121122 InstalledDir: /bin
122- Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
123- Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.4
124- Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
125- Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.2
126- Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
127- Candidate multilib: . ; @m64
128- Selected multilib: . ; @m64
129123
130124
131125 Which image should I choose?
132126============================
133- We currently provide two images: Debian10 -based and nvidia-cuda-based. They
127+ We currently provide two images: Debian12 -based and nvidia-cuda-based. They
134128differ in the base image that they use, i.e. they have a different set of
135129preinstalled binaries. Debian8 is very minimal, nvidia-cuda is larger, but has
136130preinstalled CUDA libraries and allows to access a GPU, installed on your
137131machine.
138132
139133If you need a minimal linux distribution with only clang and libstdc++ included,
140- you should try Debian10 -based image.
134+ you should try Debian12 -based image.
141135
142136If you want to use CUDA libraries and have access to a GPU on your machine,
143137you should choose nvidia-cuda-based image and use `nvidia-docker
@@ -150,20 +144,20 @@ If you have a different use-case, you could create your own image based on
150144``example/ `` folder.
151145
152146Any docker image can be built and run using only the docker binary, i.e. you can
153- run debian10 build on Fedora or any other Linux distribution. You don't need to
147+ run debian12 build on Fedora or any other Linux distribution. You don't need to
154148install CMake, compilers or any other clang dependencies. It is all handled
155149during the build process inside Docker's isolated environment.
156150
157151Stable build
158152============
159153If you want a somewhat recent and somewhat stable build, use the
160154``branches/google/stable `` branch, i.e. the following command will produce a
161- Debian10 -based image using the latest ``google/stable `` sources for you:
155+ Debian12 -based image using the latest ``google/stable `` sources for you:
162156
163157.. code-block :: bash
164158
165159 ./llvm/utils/docker/build_docker_image.sh \
166- -s debian10 --d clang-debian10 -t " staging" \
160+ -s debian12 --d clang-debian12 -t " staging" \
167161 --branch branches/google/stable \
168162 -p clang -i install-clang -i install-clang-resource-headers \
169163 -- \
0 commit comments