c++ - 如何为文本文件依赖配置 distcc
问题描述
我正在尝试通过以下方式分发与消毒剂一起distcc
使用的构建:clang
clang++-12 -fsanitize-blacklist=/path/to/the/blacklist.txt ...
cpp
因此,构建中存在非依赖关系。
distcc
当前失败,输出如下:
remote compilation of <file.cpp> failed, retrying locally
并在保留的临时文件中
export DISTCC_VERBOSE=1 # To see the paths of the tmp files
export DISTCC_SAVE_TEMPS=1 # To preserve tmp files
我看到以下错误:
clang: error: no such file or directory: '/path/to/the/blacklist.txt'
如何配置distcc
将非依赖项复制cpp
到远程构建机器?关于解决方法的任何其他想法?
环境:我使用的是 Ubuntu 20.04 客户端笔记本电脑和带有 Ubuntu 20.04docker
映像的 Ubuntu 20.04 服务器机器。构建环境安装在docker
镜像中。服务器只有一个公共 IP,所以我必须配置distcc
使用 SSH 从客户端连接到服务器。
解决方案
也许像 icecc 这样的另一个版本的 distcc 会有所帮助。
https://github.com/icecc/icecream/commit/a2f0d7507c2fb87096c74582d05cdfc05c6e3e40
distcc 是更新频率,但 icecream 的最后一次提交是在 2020 年 6 月,或者像 incredibuild(不确定)这样的东西也可能有帮助。
推荐阅读
- python-3.x - Python中的小数点归一化
- java - 使用 Java 下载 Java
- excel - 使用更改日期跟踪列粘贴到新工作表中的更改
- python - 如何在 Keras 中实现加权均方误差函数
- c++ - 在类中创建类的实例时,我应该将构造函数参数放在哪里?
- java - 为什么我会丢失 Bigdecimal 精度?
- javascript - 如何使用ajax从javascript发送二进制字符串?
- json - Laravel 5.7 具有 JSON 字段类型的存在/唯一验证
- javascript - 不允许双下划线的正则表达式,除非它位于单词的末尾,后跟“x”符号
- c - 在 UC/OS-II 中打印 OSTime