2016-12-27 10 views
1

전 AOSP 빌드 7.1.1을 며칠 전에 만들었고 제대로 작동합니다. 오늘 저는 깨끗한 빌드 (make clean)를 작성하고 작업을 시작하기로했습니다. 그 후 얼마 동안 오류가 발생하면 make otapackage까지 컴파일하려고합니다.AOSP 빌드 오류 : EXECUTABLES/iw_intermediates/version.c

[ 44% 7552/17136] build out/target/product/hikari/gen/EXECUTABLES/iw_intermediates/version.c 
FAILED: /bin/bash -c "external/iw/version.sh out/target/product/hikari/gen/EXECUTABLES/iw_intermediates/version.c" 
fatal: No names found, cannot describe anything. 
ninja: build stopped: subcommand failed. 
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed 
make: *** [ninja_wrapper] Error 1 

#### make failed to build some targets (01:39:34 (hh:mm:ss)) #### 

언제나 동일합니다. 어떤 해결책?

답변

1

git 버전 번호를 확인하려고 할 때 오류가 발생합니다.

if [ -d .git ] && head=`git rev-parse --verify HEAD 2>/dev/null`; then 
     git update-index --refresh --unmerged > /dev/null 
     descr=$(git describe --match=v*) 
     # on git builds check that the version number above          
     # is correct...                   
     [ "${descr%%-*}" = "v$VERSION" ] || exit 2 

     v="${descr#v}" 
     if git diff-index --name-only HEAD | read dummy ; then 
       v="$v"-dirty 
     fi 
else 
     v="$VERSION" 
fi 
echo '#include "iw.h"' > "$OUT" 
echo "const char iw_version[] = \"$v\";" >> "$OUT" 

descr=$(git describe --match=v*):

내가 같은 문제를 가지고 그것에 대해 이동하는 방법은 두 가지가있다 :

  1. You can comment out everything except v="$VERSION" and the last two echo lines.But this is a temporary fix.

  2. Another way to solve this is by doing a repo sync before you execute make. I fixed it by simply doing a repo sync and that updated and fixed everything for me.

이/IW/version.sh 외부 내부 , 그것은 실패가에 도달 할 때