问题遇到的现象和发生背景
Mac电脑编译安卓10代码时报错
遇到的现象和发生背景,请写出第一个错误信息
使用make -j4命令时报错,对比了29.txt和libs.txt无差异,可能是diff: unrecognized option `--old-line-format=Removed %L'这个原因导致的,这个如何处理?
用代码块功能插入代码,请勿粘贴截图。 不用代码块回答率下降 50%
make -j4
运行结果及详细报错内容
[ 0% 2/74858] build out/target/product/generic_x86/obj/PACKAGING/vndk_intermediates/check-list-timestamp
FAILED: out/target/product/generic_x86/obj/PACKAGING/vndk_intermediates/check-list-timestamp
/bin/bash -c "(( diff --old-line-format=\"Removed %L\" --new-line-format=\"Added %L\" --unchanged-line-format=\"\" build/make/target/product/gsi/29.txt out/target/product/generic_x86/obj/PACKAGING/vndk_intermediates/libs.txt || ( echo -e \" error: VNDK library list has been changed.\\n\" \" Changing the VNDK library list is not allowed in API locked branches.\"; exit 1 )) ) && (mkdir -p out/target/product/generic_x86/obj/PACKAGING/vndk_intermediates/ ) && (touch out/target/product/generic_x86/obj/PACKAGING/vndk_intermediates/check-list-timestamp )"
diff: unrecognized option `--old-line-format=Removed %L'
usage: diff [-aBbdilpTtw] [-c | -e | -f | -n | -q | -u] [--ignore-case]
[--no-ignore-case] [--normal] [--strip-trailing-cr] [--tabsize]
[-I pattern] [-F pattern] [-L label] file1 file2
diff [-aBbdilpTtw] [-I pattern] [-L label] [--ignore-case]
[--no-ignore-case] [--normal] [--strip-trailing-cr] [--tabsize]
[-F pattern] -C number file1 file2
diff [-aBbdiltw] [-I pattern] [--ignore-case] [--no-ignore-case]
[--normal] [--strip-trailing-cr] [--tabsize] -D string file1 file2
diff [-aBbdilpTtw] [-I pattern] [-L label] [--ignore-case]
[--no-ignore-case] [--normal] [--tabsize] [--strip-trailing-cr]
[-F pattern] -U number file1 file2
diff [-aBbdilNPprsTtw] [-c | -e | -f | -n | -q | -u] [--ignore-case]
[--no-ignore-case] [--normal] [--tabsize] [-I pattern] [-L label]
[-F pattern] [-S name] [-X file] [-x pattern] dir1 dir2
diff [-aBbditwW] [--expand-tabs] [--ignore-all-blanks]
[--ignore-blank-lines] [--ignore-case] [--minimal]
[--no-ignore-file-name-case] [--strip-trailing-cr]
[--suppress-common-lines] [--tabsize] [--text] [--width]
-y | --side-by-side file1 file2
diff [--help] [--version]
error: VNDK library list has been changed.
Changing the VNDK library list is not allowed in API locked branches.
17:43:38 ninja failed with: exit status 1
我的解答思路和尝试过的方法,不写自己思路的,回答率下降 60%
对比了29.txt和libs.txt无差异
我想要达到的结果,如果你需要快速回答,请尝试 “付费悬赏”
不太明白错误的原因是什么,求帮忙解答。