Debian bookworm: Use both libunwind8 and libunwind-14?

129 Views Asked by At

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?

1

There are 1 best solutions below

0
On

I have found a solution, although I think it is not great:

Instead of installing it, extract it. I extracted it to /opt.

apt-get download libunwind8 libunwind-dev
dpkg --extract libunwind8*.deb /opt/libunwind
dpkg --extract libunwind-dev*.deb /opt/libunwind

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.