libc++ - 如何在 Ubuntu 上为 libc++ 安装调试符号?
问题描述
如何在 Ubuntu 20.04 LTS 上为 libc++ 安装调试符号?
现在我不得不求助于使用 -fstandalone-debug 编译所有内容。
解决方案
I was looking for the same thing starting yesterday and today found this wiki link: https://wiki.ubuntu.com/Debug%20Symbol%20Packages
succinctly:
- add the sources for their debug symbol packages
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse
deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse
deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" | \
sudo tee -a /etc/apt/sources.list.d/ddebs.list
- import the signing key for said packages
sudo apt install ubuntu-dbgsym-keyring
- update your package list to include the new ones
sudo apt-get update
- now you can install
*-dbgsym
packages, I found which libc++ package I had installed like so:
apt list --installed | grep libc++
- I had libc++1-11. I checked that the -dbgsym package existed brutishly like so:
sudo apt search libc++ | grep -P 'libc\+\+.*dbgsym'
- And of course installed the one I needed:
sudo apt install libc++1-11-dbgsym
I got a hint at the right solution from the final comment in this thread: https://bugs.llvm.org/show_bug.cgi?id=24202
推荐阅读
- excel - {Excel} 如何在没有编码的情况下为工作表创建用户名和密码
- wicket - 带有标签内容面板的 Wicket AjaxTabbedPanel 延迟渲染直到标签被激活
- flutter - 按项目分页 Flutter
- reactjs - ScrollView 内的 createMaterialTopTabNavigator 给出 VirtualizedLists 错误
- html - 当窗口有 150% 缩放时如何修复边框重叠
- python - Python - 复选框状态程序
- python - 你如何模拟列表中的对象?
- hibernate - Spring Data JPA Hibernate 获取@OneToOne 返回双向实体的无限循环
- angular - 更新数据时修补文件类型值(Angular Reactive Form)
- javascript - 上下文正在更新状态,但在第二次尝试