I updated my container from debian bullseye to bookworm.
I used both libunwind8 (and libunwind-dev) and libc++-dev
Since bookworm, libc++-dev depends on libunwind-14-dev (probably because it now supports std::basic_stacktrace). This is a conflict, because both bring the file libunwind.so.
Installing both will cause:
$ apt install libunwind-dev
...
The following packages will be REMOVED:
libc++-14-dev libc++-dev libunwind-14-dev
The following NEW packages will be installed:
libunwind-dev
It seams like libunwind-14 is different to libunwind8. It has other/less interfaces. I could not find the documentation on libunwind-14.
Is there any way to use both libc++ and libunwind8?
I have found a solution, although I think it is not great:
Instead of installing it, extract it. I extracted it to /opt.
You will need to extract both (even it libunwind8 installs correctly and has no conflicts) because libunwind-dev has symlinks that do not resolve otherwise.