首页 > 系统相关 >clang bug in ubuntu

clang bug in ubuntu

时间:2023-10-14 16:55:06浏览次数:31  
标签:bin x86 linux clang 64 usr ubuntu bug

When compile, clang drop this error: /usr/bin/ld: cannot find -lstdc++: No such file or directory

After check and reinstall dependency, this problem didn't gone.

And i find out this solutuion:https://stackoverflow.com/a/74605488/3068259

In summary, the ubuntu deaktop install nvidia-driver, which need gcc12, and clang automatically choose gcc12.

here is my output of command clang++-14 --verbose:

Ubuntu clang version 14.0.0-1ubuntu1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
Candidate multilib: .;@m64
Selected multilib: .;@m64

One easy but not perfect way (not that perfect, check the link above for reason) is 

sudo apt install libstdc++-12-dev

 

标签:bin,x86,linux,clang,64,usr,ubuntu,bug
From: https://www.cnblogs.com/nanlour/p/17764360.html

相关文章

  • 浅谈MDK, IAR,CLANG和GCC的局部变量字节对齐处理差异(2023-10-13)
    视频:https://www.bilibili.com/video/BV1CB4y1Z7kA问题由来:早期这个帖子里面的局部变量对齐仅测试了MDKAC5,但项目中使用AC6发现了新问题,看来AAPCS规约研究的还是不够细:https://www.armbbs.cn/forum.php?mod=viewthread&tid=109400当时对局部变量的描述如下:局部变量使用的是......
  • ubuntu安装vscode
    本文章过程在ubuntu20.04版本16.04下安装非常顺利官网:https://code.visualstudio.com/Download#下载链接格式https://update.code.visualstudio.com/{version}/linux-deb-x64/stable#下载版本:1.57.0wgethttps://update.code.visualstudio.com/1.57.0/linux-deb-x64/s......
  • hyper-v ubuntu 22.04
    1. Installation1.1UseGeneration21.2RAM2048MBREF:https://bobcares.com/blog/the-images-hash-and-certificate-are-not-allowed/#:~:text=Why%20the%20image's%20hash%20and,its%20Generation%202%20virtual%20machines. 2.Resolutionsudonano/etc/de......
  • macOS 安装 clang-tidy
    先安装homebrew,网上教程很多,推荐官方教程,此处略过通过brew安装llvmbrewinstallllvm创建软连接,指向homebrew安装的clang-tidymkdir-p/usr/local/bin/ln-s/opt/homebrew/Cellar/llvm/13.0.0_1/bin/clang-tidy/usr/local/bin/clang-tidy注1:推荐创建软连......
  • Ubuntu下安装使用Powershell
    微软推出新的管理命令行工具WindowsPowershell,它是基于.net的工具,所有的管理对象都是按照.net对象来进行管理的,对使用过.net的开发人员来说就更方便了。从Powershell6.0开始,微软就将其重命名为powershell了,体现了其跨平台性,其实微软推出Powershell的时候就是把其定位为一款跨平台......
  • ubuntu kylin(优麒麟)23.10初体验
    因最近unbuntu发布新版本23.10(代号Mantic-Minotaur,引入了使用Linux6.5的更新硬件支持),顺便也体验了一把国产化的ubuntu版本---ubuntukylin优麒麟。  (关于Linux 6.5内核:首次支持Wi-Fi7和USB4,WiFi7支持6Ghz频段,最大数据传输速率达到23Gbps!引入了USB4.2标准,尽管支......
  • debug常用命令
    debug常用命令参考教程https://blog.csdn.net/happylzs2008/article/details/113825836挂载硬盘mountc:d:/masmc:dir生成可执行文件masmsample.asm;后缀名可省略linksample.objsample.exer查看和修改寄存器查看:最后一行是下一条要执行的命令修改寄存器内......
  • DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): conda.anaconda.o
     001、问题conda安装samtools出现如下问题:(base)[root@pc1home]#condainstallsamtools-cbioconda 002、解决方法 ......
  • ubuntu 22.04搭建本地源
    ubuntu22.04搭建本地源基于服务器无法联网的情况下,从一台可以上网的服务器下载软件包和依赖,再在无法联网的服务器中搭建本地源,安装环境。下载(包括依赖):cd/rootmkdirpackageschown_aptpackagesaptdownload$(apt-cachedepends--recurse--no-recommends--no-sugges......
  • Ubuntu Server 22.04修改静态ip及配置网关
    1、查看本机获取的IP地址:输入命令ipaddr:2、修改配置文件跳转到配置文件目录:cd/etc/netplan使用ls查看配置文件名称:ls使用nano修改配置文件:nano_你的配置文件名称_.yaml具体格式如下:network:version:2renderer:networkdethernets:eno1:dhcp4:f......