Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890818 - sys-devel/clang-15.0.7 has libclang-cpp version change
Summary: sys-devel/clang-15.0.7 has libclang-cpp version change
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-14 15:13 UTC by Daniel M. Weeks
Modified: 2023-01-14 17:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel M. Weeks 2023-01-14 15:13:41 UTC
During an update of llvm/clang/lldb/etc to 15.0.7, lldb failed:

-- Symbols (liblldb): exporting all symbols from the lldb namespace
/usr/bin/doxygen: error while loading shared libraries: libclang-cpp.so.15: cannot open shared object file: No such file or dir
ectory
CMake Warning at /usr/share/cmake/Modules/FindDoxygen.cmake:492 (message):
  Unable to determine doxygen version: 127
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindDoxygen.cmake:655 (_Doxygen_find_doxygen)
  docs/CMakeLists.txt:1 (include)


-- Found Doxygen: /usr/bin/doxygen  found components: doxygen dot
/usr/bin/doxygen: error while loading shared libraries: libclang-cpp.so.15: cannot open shared object file: No such file or dir
ectory
CMake Error at /usr/share/cmake/Modules/FindDoxygen.cmake:734 (message):
  Unable to generate Doxyfile template: 127
Call Stack (most recent call first):
  docs/CMakeLists.txt:1 (include)


doxygen (1.9.6) was missing a library from clang after that package was updated but nothing triggered a rebuild (between clang and lldb):

        libclang.so.15 => /usr/lib/llvm/15/lib64/libclang.so.15 (0x00007fc072fd7000)
        libclang-cpp.so.15 => not found

After rebuilding doxygen:

        libclang.so.15 => /usr/lib/llvm/15/lib64/libclang.so.15 (0x00007f8ab5aab000)
        libclang-cpp.so.g1 => /usr/lib/llvm/15/lib64/libclang-cpp.so.g1 (0x00007f8ab2184000)

It seems the version symlink for that library changed in 15.0.7 and something is going to need to trigger rebuilds for packages linked against the old version. OR maybe this is a bug in the install of clang and that symlink shouldn't have changed the way it did.

A rebuild of doxygen was sufficient to move lldb past its configure issue.

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-14 15:18:11 UTC
That change was deliberate as the patch for the gawk miscompile (https://github.com/llvm/llvm-project/issues/59792) breaks ABI.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-01-14 16:48:03 UTC
I'm sorry, I was supposed to bump the subslot.
Comment 3 Larry the Git Cow gentoo-dev 2023-01-14 17:25:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2441adb414ab2b6f807525ddc3bb93e92c428723

commit 2441adb414ab2b6f807525ddc3bb93e92c428723
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-01-14 16:48:39 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-01-14 17:25:22 +0000

    sys-devel/clang: Bump the subslot on 15.0.7
    
    Closes: https://bugs.gentoo.org/890818
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 sys-devel/clang/{clang-15.0.7.ebuild => clang-15.0.7-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)