Clang++ on Jammy after do-release-upgrade

Jeffrey Walton noloader at gmail.com
Thu Nov 24 01:38:37 UTC 2022


On Wed, Nov 23, 2022 at 5:59 PM Jeffrey Walton <noloader at gmail.com> wrote:
>
> I'm having trouble getting clang++ installed on Jammy (error below). I
> got to Jammy from a Focal do-release-upgrade. On Focal g++ and clang++
> worked as expected. gcc and g++ works as expected on Jammy.
>
> It looks like libc++ is not wired up correctly (error below).
>
> I've already performed an 'apt-get remove --purge 'clang*' followed by
> an 'apt-get install clang'. No joy.
>
> What is needed to install clang++ on Jammy after a do-release-upgrade?
>
> Thanks in advance.
>
> ---------------
>
> $ apt-cache search clang++
> clang - C, C++ and Objective-C compiler (LLVM based), clang binary
> ...
>
> $ command -v clang++
> /usr/bin/clang++
>
> $ clang++ -g2 -O3 -fPIC -pipe -c cryptlib.cpp
> In file included from cryptlib.cpp:3:
> In file included from ./pch.h:14:
> In file included from ./config.h:22:
> In file included from ./config_align.h:27:
> ./config_cxx.h:37:10: fatal error: 'string' file not found
> #include <string>
>          ^~~~~~~~
> 1 error generated.
>
> $ update-alternatives --list clang++
> update-alternatives: error: no alternatives for clang++

Now open: https://bugs.launchpad.net/ubuntu/+source/clang/+bug/1997600

Jeff



More information about the ubuntu-users mailing list