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 OverflowThere 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
Install by conda or homebrew in general, you installation failure might be powerpc64le is not your processor’s type, it's an old processor type.
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
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.