Docker images providing the latest versions of clang/lld/libc++, based on Alpine Linux.
100
The Docker images available here provide a fully working two-stage bootstrapped LTO build of clang, lld, and libc++ built directly from the sources available on GitHub at https://github.com/llvm/llvm-project, based on an Alpine Linux image.
The compiler binaries and all required includes and libraries are installed using a root prefix of /usr/local/llvm. Alternatives are setup to allow clang (and clang++) to function as the system compiler.
Note that as clang itself still depends on libgcc/crtbegin/crtend for linking, gcc (just the C compiler) is a required dependency and has been preinstalled in these images.
clang and lld version check:
/ # clang++ -v
clang version 8.0.1
Target: x86_64-unknown-linux-musl
Thread model: posix
InstalledDir: /usr/bin
/ # ld -v
LLD 8.0.1 (compatible with GNU linkers)
/ #
The Dockerfiles that were used to build these images are available from: https://github.com/coldfusionjp/build-clang-llvm.
Content type
Image
Digest
Size
173.1 MB
Last updated
about 7 years ago
docker pull coldfusionjp/alpine-clang:3.10.1-llvmorg-8.0.1