当我发出类似于(例如) make -j 4的命令时,我会得到以下错误:
warning: jobserver unavailable: using -j1. Add `+' to parent make rule我在RHEL6下使用来自科学Linux 6的开发人员工具包:
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/opt/rh/devtoolset-2/root/usr --mandir=/opt/rh/devtoolset-2/root/usr/share/man --infodir=/opt/rh/devtoolset-2/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,lto --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/cloog-install --with-mpc=/builddir/build/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/mpc-install --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.2 20140120 (Red Hat 4.8.2-15) (GCC)我安装了libmpc 0.8.3:
$ rpm -qa | grep mpc
libmpcdec-1.2.6-6.1.el6.x86_64
libmpc-0.8-3.el6.x86_64是否有办法对我的项目的makefile或gcc进行故障排除,以确定引起警告的原因并修复它?在通过Clang/LLVM从OS构建规则时,我似乎不需要添加+符号。谷歌搜索的警告文本并没有返回很多明显有用的信息。
发布于 2014-05-14 11:19:51
无论何时从makefile内部运行make,都应该始终使用$(MAKE)变量。永远不要使用原始的文字命令make。
https://stackoverflow.com/questions/23642828
复制相似问题