Docker images providing the latest versions of clang/lld/libc++, based on Amazon Linux.
501
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 Amazon 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, gcc72 (just the C compiler) is a required dependency and has been preinstalled in these images.
clang and lld version check:
bash-4.2# clang++ -v
clang version 8.0.1
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-amazon-linux/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-amazon-linux/7
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-amazon-linux/7
Candidate multilib: .;@m64
Selected multilib: .;@m64
bash-4.2# ld -v
LLD 8.0.1 (compatible with GNU linkers)
bash-4.2#
The Dockerfiles that were used to build these images are available from: https://github.com/coldfusionjp/build-clang-llvm.
Content type
Image
Digest
Size
251.7 MB
Last updated
over 6 years ago
docker pull coldfusionjp/amazonlinux-clang:2018.03.0.20190514-llvmorg-9.0.1