无法使用'download-toolchain-sources.sh'下载和修补ndk工具链源代码

时间:2013-10-17 08:57:34

标签: android-ndk toolchain

Android Ndk 9,mac

MBA-Anton:tools asmirnov$ ./download-toolchain-sources.sh /softdev/ndk9-sources
Using git clone prefix: https://android.googlesource.com/toolchain
Cloning git repository for toolchain/build
Cloning git repository for toolchain/gmp
Cloning git repository for toolchain/mpfr
Cloning git repository for toolchain/mpc
Cloning git repository for toolchain/cloog
Cloning git repository for toolchain/isl
Cloning git repository for toolchain/ppl
Cloning git repository for toolchain/expat
Cloning git repository for toolchain/binutils
Cloning git repository for toolchain/gcc
Cloning git repository for toolchain/gdb
Cloning git repository for toolchain/python
Cloning git repository for toolchain/perl
Cloning git repository for toolchain/clang
Cloning git repository for toolchain/llvm
Cloning git repository for toolchain/compiler-rt
Cloning git repository for toolchain/mclinker
Patching toolchain sources
ERROR: Could not patch sources.

2 个答案:

答案 0 :(得分:1)

您可以尝试直接运行patch-sources.sh,并启用调试。运气不错,它会给你一些线索。

bash -x patch-sources.sh \ 
/tmp/ndk-USER/android-ndk-toolchain-DATE \
/PATH/TO/YOUR/NDK/build/tools/toolchain-patches

您也可以使用download-toolchain-sources.sh脚本执行相同的操作 - 这就是我获取patch-sources.sh的参数的方法。

您也可以将“--verbose”传递给任一脚本。

答案 1 :(得分:0)

谷歌在ndk-9b中修正了,现在它正在修补而没有问题