clang - clang-7.0 上缺少 libclang_rt.tsan-x86_64.a
问题描述
我正在尝试寻找使用条件变量的多线程代码中的一些死锁。有人建议使用线程消毒剂。所以我从源代码编译了 LLVM并启用了线程清理器
LLVM 构建得很好,但是当我尝试构建我的项目时,我遇到了很多此类警告:
: && /home/dzenan/LLVM-rel/bin/clang++ -fsanitize=thread -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -funit-at-a-time -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Wno-undefined-var-template -Woverloaded-virtual -w -O2 -g -DNDEBUG -fsanitize=thread Modules/ThirdParty/VNL/src/vxl/v3p/netlib/tests/CMakeFiles/netlib_lsmrTest2.dir/lsmrTest2.cxx.o -o bin/netlib_lsmrTest2 -Wl,-rpath,/home/dzenan/ITK-git-clang/lib lib/libitkv3p_netlib-5.0.so.1 -lm && :
/usr/bin/ld: cannot find /home/dzenan/LLVM-rel/lib/clang/7.0.0/lib/linux/libclang_rt.tsan-x86_64.a: No such file or directory
/usr/bin/ld: cannot find /home/dzenan/LLVM-rel/lib/clang/7.0.0/lib/linux/libclang_rt.tsan_cxx-x86_64.a: No such file or directory
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
[1507/5739] Building C object Modules/ThirdParty/VNL/src/vxl/v3p/netlib/CMakeFiles/itknetlib.dir/triangle.c.o
FAILED: bin/netlib_lsqrTest1
我做错了什么以及如何解决?
解决方案
推荐阅读
- c# - 不使用nameof获取传递的方法名
- javascript - 关于 node.js 中的 MySQL 模块和与 mySQL 数据库的并发连接
- android - 更改 ChromeCast 默认媒体接收器上的客户端应用程序名称
- javascript - 无法在 Node 中使用 Graphics Magick 创建 PDF
- c# - 下载文件并放入驱动器C或驱动器D等
- swift - 如何在领域中只保存一个类实例
- authorize.net - 如何在不使用现有 paymentProfileId 的情况下将 authorize.net CIM 中的交易记入 customerProfileId?
- macos - 适用于 MacOS 的 Google Cloud Speech API
- excel - 每次引用一条线时查找,然后每次在单独的工作表中将其 prink
- django - 错误:“'NoneType' 对象没有属性...”使用自引用外键的方法时