【问题标题】:How to configure distcc for a text file dependency如何为文本文件依赖配置 distcc
【发布时间】:2021-08-09 17:24:36
【问题描述】:

我正在尝试通过以下方式分发带有 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.04 docker 映像的 Ubuntu 20.04 服务器计算机。构建环境安装在docker 映像中。服务器只有一个公共 IP,所以我必须配置 distcc 以使用 SSH 从客户端连接到服务器。

【问题讨论】:

标签: c++ ubuntu ssh clang distcc


【解决方案1】:

也许像 icecc 这样的另一个版本的 distcc 会有所帮助。

https://github.com/icecc/icecream/commit/a2f0d7507c2fb87096c74582d05cdfc05c6e3e40

distcc 是更新频率,但 icecream 的最后一次提交是在 2020 年 6 月,或者像 incredibuild 之类的东西(不确定)也可能有帮助。

【讨论】:

  • 确实 - Incredibuild 将根据需要将远程运行的进程请求的所有文件从启动器同步到远程计算机,而无需用户进行任何额外配置。
猜你喜欢
  • 2011-05-05
  • 1970-01-01
  • 1970-01-01
  • 2014-06-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-08-02
  • 1970-01-01
相关资源
最近更新 更多