Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Llvm libtool:无法识别的选项“-static';_Llvm_Libtool - Fatal编程技术网

Llvm libtool:无法识别的选项“-static';

Llvm libtool:无法识别的选项“-static';,llvm,libtool,Llvm,Libtool,安装LLVM时,发生错误: ➜ build make [ 0%] Linking CXX static library ../libLLVMSupport.a libtool: unrecognized option `-static' libtool: Try `libtool --help' for more information. make[2]: *** [lib/libLLVMSupport.a] Error 1 make[1]: *** [lib/Support/CMakeFi

安装LLVM时,发生错误:

➜  build make
[  0%] Linking CXX static library ../libLLVMSupport.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
make[2]: *** [lib/libLLVMSupport.a] Error 1
make[1]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make: *** [all] Error 2
➜  build which libtool
/usr/local/bin/libtool
我已经试着解决了这个问题,但是失败了


我这样解决了这个问题: 将
~/.bash_profile
中的我的路径更改为
导出路径=“/Library/Developer/CommandLineTools/usr/bin:$PATH
,打开一个新终端并再次运行安装过程。 /Library/Developer/CommandLineTools/usr/bin中的
libtool
没有抱怨
-static
标志,并且一切正常。您可以稍后从
$PATH
中删除
/Library/Developer/CommandLineTools/usr/bin


Z.

感谢您的解决方案,我对您的过程做了一些修改,我刚刚执行了make this way:
PATH=“$(xcode select-p)/Toolchains/xcode default.xcode工具链/usr/bin:$PATH”make-j$(sysctl-n hw.ncpu)
我安装的xcode是xcode 8.1。