Bug 1890823

Summary: Installing clang doesn't install llvm
Product: [Fedora] Fedora Reporter: Rafal Wachol <rwachol>
Component: clangAssignee: Tom Stellard <tstellar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: airlied, sbergman, sguelton, siddharth.kde, tstellar, yuokada
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: clang-11.0.0-2.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-12 03:06:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rafal Wachol 2020-10-22 23:23:23 UTC
Description of problem:

When installing clang with sudo dnf install clang, llvm is not installed.

Invoking clang++ command shows error:

➜  hello_world clang++
/usr/bin/clang++: symbol lookup error: /lib64/libclang-cpp.so.11: undefined symbol: _ZN4llvm13IRBuilderBase18CreateGlobalStringENS_9StringRefERKNS_5TwineEj, version LLVM_11


Actual results:

clang should probably also install llvm


after installing llvm (dnf install llvm) it shows the right output:


➜  hello_world clang++
clang-11: error: no input files

Comment 1 Tom Stellard 2020-10-23 04:21:35 UTC
What is the output of the command: dnf info llvm-libs

Comment 2 Rafal Wachol 2020-10-24 22:42:54 UTC
Sorry for late post here's the output:

Last metadata expiration check: 0:01:15 ago on Sat 24 Oct 2020 11:40:35 PM BST.
Installed Packages
Name         : llvm-libs
Version      : 11.0.0
Release      : 1.fc33
Architecture : x86_64
Size         : 84 M
Source       : llvm-11.0.0-1.fc33.src.rpm
Repository   : @System
From repo    : updates-testing
Summary      : LLVM shared libraries
URL          : http://llvm.org
License      : NCSA
Description  : Shared libraries for the LLVM compiler infrastructure.

Available Packages
Name         : llvm-libs
Version      : 11.0.0
Release      : 0.3.rc1.fc33
Architecture : i686
Size         : 24 M
Source       : llvm-11.0.0-0.3.rc1.fc33.src.rpm
Repository   : fedora
Summary      : LLVM shared libraries
URL          : http://llvm.org
License      : NCSA
Description  : Shared libraries for the LLVM compiler infrastructure.

Comment 3 serge_sans_paille 2020-10-27 20:25:52 UTC
Patch in progress: https://src.fedoraproject.org/rpms/clang/pull-request/85

Comment 4 Fedora Update System 2020-11-03 14:28:45 UTC
FEDORA-2020-7987e5f6e1 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-7987e5f6e1

Comment 5 Fedora Update System 2020-11-04 03:00:53 UTC
FEDORA-2020-7987e5f6e1 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-7987e5f6e1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-7987e5f6e1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2020-11-12 03:06:19 UTC
FEDORA-2020-7987e5f6e1 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.