简体   繁体   中英

How to configure distcc for a text file dependency

I am trying to distribute the build with distcc that uses clang with sanitizers in the following way:

clang++-12 -fsanitize-blacklist=/path/to/the/blacklist.txt ...

So there is a non- cpp dependency in the build.

distcc currently fails with the following output:

remote compilation of <file.cpp> failed, retrying locally

And in the temp files retained with

export DISTCC_VERBOSE=1 # To see the paths of the tmp files
export DISTCC_SAVE_TEMPS=1 # To preserve tmp files

I see the following error:

clang: error: no such file or directory: '/path/to/the/blacklist.txt'

How to configure distcc to copy the non- cpp dependency to the remote build machines? Any other thoughts about a workaround?

Environment: I am using an Ubuntu 20.04 client laptop and an Ubuntu 20.04 server machine with an Ubuntu 20.04 docker image. The build environment is installed inside the docker image. The server has only a public IP, so I had to configure distcc to use SSH for connecting from the client to the server.

Maybe the another version of distcc like icecc would helped.

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

distcc is update frequency but the last commit of icecream is in Jun 2020, or maybe something like incredibuild (not sure) may helped too.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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