이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 1. Clang and LLVM Toolset


1.1. About Clang and LLVM Toolset

Clang and LLVM Toolset is a Red Hat offering for developers on the Red Hat Enterprise Linux platform. It provides the LLVM compiler infrastructure framework, the Clang compiler for the C and C++ languages, the LLDB debugger, and related tools for code analysis.

Clang and LLVM Toolset is distributed as a part of Red Hat Developer Tools for Red Hat Enterprise Linux 7 and is available as a module in Red Hat Enterprise Linux 8.

The following components are available as a part of Clang and LLVM Toolset:

Expand
Table 1.1. Clang and LLVM Toolset Components
NameVersionDescription

clang

7.0.1

A LLVM compiler front-end for C and C++.

lldb

7.0.1

A C and C++ debugger using portions of LLVM.

CMake

3.6.2

A build management system.

compiler-rt

7.0.1

Runtime libraries for LLVM.

llvm

7.0.1

A collection of modular and reusable compiler and toolchain technologies.

libomp

7.0.1

A library for utilization of Open MP API specification for parallel programming.

python-lit

0.7.1

A Software testing tool for LLVM- and Clang-based test suites.

Note

Package versions are the same for Red Hat Enterprise Linux 7 and Red Hat Enterprise Linux 8.

1.2. Compatibility

Clang and LLVM Toolset is available for Red Hat Enterprise Linux 7 and Red Hat Enterprise Linux 8 on the following architectures:

  • The 64-bit Intel and AMD architectures
  • The 64-bit ARM architecture
  • The IBM Power Systems architecture
  • The little-endian variant of IBM Power Systems architecture
  • The IBM Z Systems architecture

1.3. Getting Access to Clang and LLVM Toolset on Red Hat Enterprise Linux 7

Clang and LLVM Toolset is an offering that is distributed as a part of the Red Hat Developer Tools content set, which is available to customers with deployments of Red Hat Enterprise Linux 7. To install Clang and LLVM Toolset, enable the Red Hat Developer Tools and Red Hat Software Collections repositories by using the Red Hat Subscription Management and add the Red Hat Developer Tools GPG key to your system.

  1. Enable the rhel-7-variant-devtools-rpms repository:

    # subscription-manager repos --enable rhel-7-variant-devtools-rpms
    Copy to Clipboard Toggle word wrap

    Replace variant with the Red Hat Enterprise Linux system variant (server or workstation).

    Note

    We recommend developers to use Red Hat Enterprise Linux Server for access to the widest range of development tools.

  2. Enable the rhel-variant-rhscl-7-rpms repository:

    # subscription-manager repos --enable rhel-variant-rhscl-7-rpms
    Copy to Clipboard Toggle word wrap

    Replace variant with the Red Hat Enterprise Linux system variant (server or workstation).

  3. Add the Red Hat Developer Tools key to your system:

    # cd /etc/pki/rpm-gpg
    # wget -O RPM-GPG-KEY-redhat-devel https://www.redhat.com/security/data/a5787476.txt
    # rpm --import RPM-GPG-KEY-redhat-devel
    Copy to Clipboard Toggle word wrap

Once the subscription is attached to the system and repositories enabled, you can install Red Hat Clang and LLVM Toolset as described in Section 1.4, “Installing Clang and LLVM Toolset”.

Additional Resources

1.4. Installing Clang and LLVM Toolset

Clang and LLVM Toolset is distributed as a collection of RPM packages that can be installed, updated, uninstalled, and inspected by using the standard package management tools that are included in Red Hat Enterprise Linux. Note that a valid subscription that provides access to the Red Hat Developer Tools content set is required in order to install Clang and LLVM Toolset on your Red Hat Enterprise Linux 7 system. For detailed instructions on how to associate your Red Hat Enterprise Linux 7 system with an appropriate subscription and get access to Clang and LLVM Toolset, see Section 1.3, “Getting Access to Clang and LLVM Toolset on Red Hat Enterprise Linux 7”.

Important

Before installing Clang and LLVM Toolset, install all available Red Hat Enterprise Linux updates.

  1. Install all of the components included in Clang and LLVM Toolset for your operating system:

    • On Red Hat Enterprise Linux 7, install the llvm-toolset-7.0 package:

      # yum install llvm-toolset-7.0
      Copy to Clipboard Toggle word wrap
    • On Red Hat Enterprise Linux 8, install the llvm-toolset module:

      # yum module install llvm-toolset
      Copy to Clipboard Toggle word wrap

      This installs all development and debugging tools, and other dependent packages to the system.

1.5. Additional Resources

A detailed description of the Clang and LLVM Toolset and all its features is beyond the scope of this book. For more information, see the resources listed below.

Online Documentation

맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat