简体   繁体   English

目标“全部”的 CMake 配方失败。 库错误

[英]CMake recipe for target 'all' failed. Library error

I am building a project using Docker Compose, and it generates an error with CMake.我正在使用 Docker Compose 构建一个项目,它使用 CMake 生成错误。 (Ubuntu 16.04, latest CMake is installed) (Ubuntu 16.04,安装最新CMake)

https://pastebin.com/i9qhF8A3 (The log is too long) https://pastebin.com/i9qhF8A3 (日志太长)

#14 89.11 LLParser.cpp:(.text._ZN4llvm8LLParser9ParseCallERPNS_11InstructionERNS0_16PerFunctionStateENS_8CallInst12TailCallKindE+0xc0c): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'

If I build my project in a separate Docker without Compose, the error is not shown.如果我在没有 Compose 的单独 Docker 中构建我的项目,则不会显示错误。 Also, the error does not occur if the project is built with Ubuntu 20.04, but I am required to use the Ubuntu 16.04.此外,如果项目是使用 Ubuntu 20.04 构建的,则不会发生错误,但我需要使用 Ubuntu 16.04。 I have updated the GLibc and GLibcxx to those of Ubuntu 20.04.我已将 GLibc 和 GLibcxx 更新为 Ubuntu 20.04 的那些。 I am clueless on what could have created this error.我对可能导致此错误的原因一无所知。

I guess it has something to do with the cpp development environment used, I usually install sudo apt install build-essential估计和使用的cpp开发环境有关系,我一般都是安装sudo apt install build-essential

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM