2017-10-19 139 views
1

我想在Ubuntu 17.04上構建一個AOSP。我正在閱讀嵌入式Android手冊中的教程。一切都是正確的,直到現在:AOSP構建失敗在ssfilter.c

[email protected]:/bin/repo_work_directory# make -j16 
============================================ 
PLATFORM_VERSION_CODENAME=P 
PLATFORM_VERSION=P 
TARGET_PRODUCT=aosp_arm 
TARGET_BUILD_VARIANT=eng 
TARGET_BUILD_TYPE=release 
TARGET_ARCH=arm 
TARGET_ARCH_VARIANT=armv7-a 
TARGET_CPU_VARIANT=generic 
HOST_ARCH=x86_64 
HOST_2ND_ARCH=x86 
HOST_OS=linux 
HOST_OS_EXTRA=Linux-4.10.0-37-generic-x86_64-Ubuntu-17.04 
HOST_CROSS_OS=windows 
HOST_CROSS_ARCH=x86 
HOST_CROSS_2ND_ARCH=x86_64 
HOST_BUILD_TYPE=release 
BUILD_ID=OC 
OUT_DIR=out 
============================================ 
ninja: no work to do. 
ninja: no work to do. 
No need to regenerate ninja file 
No need to regenerate ninja file 
[ 0% 1/60175] Yacc: ss <= external/iproute2/misc/ssfilter.y 
FAILED: out/target/product/generic/obj/EXECUTABLES/ss_intermediates/ssfilter.c 
/bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d --defines=out/target/product/generic/obj/EXECUTABLES/ss_intermediates/ssfilter.h -o out/target/product/generic/obj/EXECUTABLES/ss_intermediates/ssfilter.c external/iproute2/misc/ssfilter.y" 
external/iproute2/misc/ssfilter.y: 31 conflitti shift/riduzione 
prebuilts/misc/linux-x86/bison/bison: Sotto-processo m4 non riuscito: File o directory non esistente 
[ 0% 16/60175] target thumb C++: libvkjson <= external/vulkan-validation-layers/libs/vkjson/vkjson.cc 
ninja: build stopped: subcommand failed. 
13:24:39 ninja failed with: exit status 1 

#### failed to build some targets (20 seconds) #### 

我做錯了什麼?我該如何解決這個問題?請幫忙。提前致謝。

+0

我還建議將您的操作系統語言設置爲英語,這將使更多人更容易回答:-) –

回答

2

不要編譯主分支,因爲他們經常有損壞的構建。切換到您想建立的最新的AOSP官方分支,例如oreo-release,然後重試。

+0

' - 發行'分支有時也被打破。最好還是使用標籤:https://stackoverflow.com/questions/1809774/android-kernel-compile-and-test-with-android-emulator/48310014#48310014 –