我希望我的Jenkins安装(在Windows上)使用从机和distcc来减少编译时间。
我在从服务器上使用Cygwin运行distcc,但在配置过程中出现了问题,即“./配置”。配置会进行编译器检查,但由于我正在交叉编译使用CMake生成构建文件的嵌入式设备,因此我假设不需要将所有这些信息指定给distcc。
我尝试使用以下方法来解释设置它:
导出CC=path/to/编译器
但是,这会导致错误:
$ ./configure --prefix=/usr/local
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking for gcc... path/to/compiler.exe
checking whether the C compiler works... yes
checking for C compiler default output file name... conftest.elf
checking for suffix of executables... .elf
checking whether we are cross compiling... configure: error: in `/distcc-3.2rc1':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.我相信--构建是正确配置的,因为我将通过Cygwin运行distcc,但是其他变量的值还不清楚。
有人用这种装置成功了吗?还有其他我缺少的设置或者有任何提示/提示的资源吗?在Windows机器上似乎没有配置的方法。
发布于 2017-02-17 12:54:27
通常在./configure --help中,您可以看到通知构建系统的选项,您希望编译将在不同系统(主机)上运行的程序。
系统类型: - BUILD = for building猜测 - HOST =HOST交叉编译以构建在主机构建上运行的程序
另见Automake:
发布于 2017-02-23 07:15:21
对于任何可能不熟悉这种类型的安装的人,编译器在本例中意味着用于构建distcc程序本身的编译器(GCC和Make)。
在我的例子中,由于我将在Cygwin上所有的机器上运行distcc,所以我不需要交叉编译-因此我可以简单地让自动猜测构建/主机/目标选项(需要将config.guess和config.sub文件从automake移动到distcc)。
https://stackoverflow.com/questions/42296306
复制相似问题