There is a llvm-toolset-10 build out on the centos buildlogs. The rpms are unsigned since they never got published out to the official centos scl repos; thus they won't be trusted by default. Also note that since some of the packages in llvm-toolset have a dependency on devtoolset you will need to ensure you have the right devtoolset repo installed as well.

Add repo for devtoolset

sudo yum install centos-release-scl-rh

Create a custom repo pointing to buildlogs

sudo bash -c 'cat << EOF > /etc/yum.repos.d/llvmtoolset-build.repo
[llvmtoolset-build]
name=LLVM Toolset 11.0 - Build
baseurl=https://buildlogs.centos.org/c7-llvm-toolset-11.0.x86_64/
gpgcheck=0
enabled=1
EOF'

Install the llvm toolset packages you need

sudo yum install --nogpgcheck llvm-toolset-11.0-clang-tools-extra llvm-toolset-11.0-clang

Enable the llvm toolset

echo "source /opt/rh/llvm-toolset-11.0/enable" >> ~/.bashrc
source ~/.bashrc
Answer from Darwyn on Stack Overflow
🌐
Centos
buildlogs.centos.org › c7-llvm-toolset-10.0.x86_64
Index of /c7-llvm-toolset-10.0.x86_64
This server contains a mix of raw/unsigned packages and/or build logs It should be used mainly for testing purposes
🌐
Centos
buildlogs.centos.org › c7-llvm-toolset-11.0.x86_64
Index of /c7-llvm-toolset-11.0.x86_64
This server contains a mix of raw/unsigned packages and/or build logs It should be used mainly for testing purposes
🌐
GitHub
github.com › llvm › llvm-project › issues › 54756
LLVM 14 breaks using lld with devtoolset-10 gcc on CentOS 7 · Issue #54756 · llvm/llvm-project
April 5, 2022 - Commit 815a120 removed support for --no-add-needed. However, this option is added by devtoolset-10 gcc on CentOS7: [sgiesecke@SDP_DevVM-sgiesecke gcc]$ scl enable devtoolset-10 -- gcc test.cc -fuse-ld=lld -B /bin -v Using ...
Author   llvm
🌐
Centos
buildlogs.centos.org › c7-llvm-toolset-7.x86_64 › Packages
Index of /c7-llvm-toolset-7.x86_64/Packages
This server contains a mix of raw/unsigned packages and/or build logs It should be used mainly for testing purposes
🌐
Softwarecollections
softwarecollections.org › en › scls › rhscl › llvm-toolset-7.0
Clang and LLVM Toolset 7.0 — Software Collections
llvm-toolset-7.0 - Clang and LLVM Toolset is designed for developers on the CentOS and Red Hat Enterprise Linux platform.
🌐
Centos
buildlogs.centos.org › c7-llvm-toolset-9.0.x86_64
Index of /c7-llvm-toolset-9.0.x86_64 - CentOS Buildlogs Mirror
This server contains a mix of raw/unsigned packages and/or build logs It should be used mainly for testing purposes
Find elsewhere
🌐
Database Tutorials
dbtut.com › home › postgresql
How To Install llvm-toolset-7 on Centos - Database Tutorials
December 20, 2021 - We will install llvm-toolset-7 on Centos in this article. When installing devel package, llvm-toolset-7 package must be installed.
Top answer
1 of 2
3

Take a look at this post: https://github.com/foniod/redbpf/issues/89

They install llvm-toolset-7-clang with the following commands:

sudo yum -y install http://mirror.centos.org/centos/7/extras/x86_64/Packages/centos-release-scl-rh-2-3.el7.centos.noarch.rpm
sudo yum -y install http://mirror.centos.org/centos/7/extras/x86_64/Packages/centos-release-scl-2-3.el7.centos.noarch.rpm
sudo yum -y install http://mirror.centos.org/centos/7/sclo/x86_64/rh/Packages/l/llvm-toolset-7-clang-4.0.1-1.el7.x86_64.rpm
sudo yum install -y llvm-toolset-7-clang
2 of 2
2

You can download the files from here:

centos-sclo-rh - REPO

I know that you can't use yum but I just wanetd to mention which Repo you can use.

I used a download only for it and it has a lot of dependencies:

devtoolset-7-binutils
devtoolset-7-gcc
devtoolset-7-gcc-c++
devtoolset-7-libstdc++-devel
devtoolset-7-runtime
llvm-toolset-7-clang-libs
llvm-toolset-7-compiler-rt
llvm-toolset-7-libomp
llvm-toolset-7-llvm-libs
llvm-toolset-7-runtime

The urls to download one package would be:

http://mirror.cj2.nl/centos/7.8.2003/sclo/x86_64/rh/
http://mirror.serverius.net/centos/7.8.2003/sclo/x86_64/rh/
http://mirror.nforce.com/pub/linux/CentOS/7.8.2003/sclo/x86_64/rh/
http://ams.edge.kernel.org/centos/7.8.2003/sclo/x86_64/rh/
http://mirror.oxilion.nl/centos/7.8.2003/sclo/x86_64/rh/
http://mirror.widexs.nl/ftp/pub/os/Linux/distr/centos/7.8.2003/sclo/x86_64/rh/
http://mirror.previder.nl/centos/7.8.2003/sclo/x86_64/rh/
http://ftp.nluug.nl/ftp/pub/os/Linux/distr/CentOS/7.8.2003/sclo/x86_64/rh/
http://mirror.ipserv.nl/centos/7.8.2003/sclo/x86_64/rh/
http://centos.mirror.transip.nl/7.8.2003/sclo/x86_64/rh/

One example:

http://mirror.cj2.nl/centos/7.8.2003/sclo/x86_64/rh/Packages/l/

I hope you can manage further.

🌐
Linux Hint
linuxhint.com › install_llvm_centos7
How to Install LLVM on CentOS7 – Linux Hint
In this article, I will show you how to install and use LLVM Clang on CentOS 7.
🌐
Red Hat
developers.redhat.com › blog › 2017 › 11 › 01 › getting-started-llvm-toolset
Getting started with llvm-toolset | Red Hat Developer
March 23, 2023 - $ scl enable llvm-toolset-7 'clang -v' Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/rh/llvm-toolset-7/root/usr/bin Found candidate GCC installation: /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7 Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5 Selected GCC installation: /opt/rh/devtoolset-7/root/usr/lib/gcc/x86_64-redhat-linux/7 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: .;@m64
🌐
Docker Hub
hub.docker.com › r › centos › llvm-toolset-7-centos7
centos/llvm-toolset-7-centos7 - Docker Image
Users can choose between RHEL and CentOS based builder images. The resulting image can be run using Docker⁠. To use the llvm-toolset s2i image build with your project, you will need to define write your own assemble and run scripts and place them in the .s2i/bin directory in the root of your source tree. Example assemble and run scripts can be found in: 7/test/hello-world/app/.s2i/bin
🌐
Red Hat
access.redhat.com › solutions › 3500401
How to install llvm-toolset on my RHEL system? - Red Hat Customer Portal
llvm-toolset-7 is a meta-package that will pull in the llvm, clang, clang-tools-extra, and lldb packages. llvm-toolset-7 is available in the rhel-7-server-devtools-rpms repository for RHEL 7.