Reputation: 7265
I tried to compile grpc on mac, by this instruction. But failed make here printing this error log:
[AR] Creating /Users/luliang/Downloads/grpc-master/libs/opt/libgpr.a error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `n' in: -no_warning_for_no_symbols Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table ] [-seg_addr_table_filename ] [-all_load] [-noall_load] make: *** [/Users/luliang/Downloads/grpc-master/libs/opt/libgpr.a] Error 1
This should be typical. I don't know why. How to solve this?
Upvotes: 1
Views: 552
Reputation: 7265
As @jcanizales suggest, the version that comes with XCode 6.4 would only accept single-character options, while the version bundled with XCode 7 accepts "human-readable" options.
So as the solution, it's to update the xcode toolchains.
Upvotes: 1