我正在尝试在Ubuntu 16.04 X86_64计算机上构建Android X86(32位)。我的构建在某些parse.tab.c中失败:
[ 0% 3/56404] build /home/sohamsalil/android-x86/output/android-x86-source/target/product/x86/obj/kernel/arch/x86/boot/bzImage
FAILED: /home/sohamsalil/android-x86/output/android-x86-source/target/product/x86/obj/kernel/arch/x86/boot/bzImage
/bin/bash -c "make -j2 -C kernel O=/home/sohamsalil/android-x86/output/android-x86-source/target/product/x86/obj/kernel ARCH=x86 CROSS_COMPILE=\" /home/sohamsalil/android-x86/android-x86-source/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/bin/x86_64-linux-android-\" bzImage modules"
make: Entering directory '/home/sohamsalil/android-x86/android-x86-source/kernel'
make[1]: Entering directory '/home/sohamsalil/android-x86/output/android-x86-source/target/product/x86/obj/kernel'
GEN ./Makefile
Using /home/sohamsalil/android-x86/android-x86-source/kernel as source for kernel
YACC scripts/genksyms/parse.tab.c
/home/sohamsalil/android-x86/android-x86-source/kernel/scripts/genksyms/Makefile:22: recipe for target 'scripts/genksyms/parse.tab.c' failed
make[3]: *** [scripts/genksyms/parse.tab.c] Error 1
/home/sohamsalil/android-x86/android-x86-source/kernel/scripts/Makefile.build:558: recipe for target 'scripts/genksyms' failed
我发现该文件在目录kernel / scripts / genksyms /
中不存在经调查,我还发现其他编译跟踪将此文件标记为“已发货”。但这对我而言不会发生。
我添加了文件parse.tab.c和parse.tab.h from here,但是出现了相同的错误。
任何线索怎么办?