android p编译失败问题解决方法:

解决方法,将 out/target/product/spm8666p1_64/obj/KERNEL_OBJ/ 目录删掉,然后重新编译即可

编译问题log如下:

FAILED: /data2/guolianghan/E02_F_ECARX_NEW/out/target/product/spm8666p1_64/obj/KERNEL_OBJ/.config
/bin/bash -c "make -j4 -C kernel-4.4 O=/data2/guolianghan/E02_F_ECARX_NEW/out/target/product/spm8666p1_64/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=/data2/guolianghan/E02_F_ECARX_NEW/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- CLANG_TRIPLE=aarch64-linux-gnu- CC=/data2/guolianghan/E02_F_ECARX_NEW/prebuilts/clang/host/linux-x86/clang-4691093/bin/clang ROOTDIR=/data2/guolianghan/E02_F_ECARX_NEW  spm8666p1_64_defconfig"
make: Entering directory `/data2/guolianghan/E02_F_ECARX_NEW/kernel-4.4'
make[1]: Entering directory `/data2/guolianghan/E02_F_ECARX_NEW/out/target/product/spm8666p1_64/obj/KERNEL_OBJ'
  GEN     ./Makefile
  HOSTCC  scripts/kconfig/zconf.tab.o
scripts/kconfig/zconf.tab.c:211:24: fatal error: zconf.hash.c: No such file or directory
 #include "zconf.hash.c"
                        ^
compilation terminated.
make[2]: *** [scripts/kconfig/zconf.tab.o] Error 1
make[1]: *** [spm8666p1_64_defconfig] Error 2
make[1]: Leaving directory `/data2/guolianghan/E02_F_ECARX_NEW/out/target/product/spm8666p1_64/obj/KERNEL_OBJ'
make: *** [sub-make] Error 2
make: Leaving directory `/data2/guolianghan/E02_F_ECARX_NEW/kernel-4.4'
[  1% 44/4101] target arm C++: audio.primary.mt6771_32 <= vendor/mediatek/proprietary/hardware/audio/common/V3/aud_drv/AudioALSACaptureHandlerVoice.cpp
In file included from vendor/mediatek/proprietary/hardware/audio/common/V3/aud_drv/AudioALSACaptureHandlerVoice.cpp:3:
In file included from vendor/mediatek/proprietary/hardware/audio/common/V3/include/AudioALSACaptureDataClientAurisysNormal.h:4:
In file included from vendor/mediatek/proprietary/hardware/audio/common/V3/include/IAudioALSACaptureDataClient.h:5:
vendor/mediatek/proprietary/hardware/audio/common/include/AudioUtility.h:94:24: warning: unused function 'pcm_format_from_audio_format' [-Wunused-function]
static enum pcm_format pcm_format_from_audio_format(audio_format_t format) {
                       ^
vendor/mediatek/proprietary/hardware/audio/common/include/AudioUtility.h:128:23: warning: unused function 'audio_format_from_pcm_format' [-Wunused-function]
static audio_format_t audio_format_from_pcm_format(enum pcm_format format) {
               

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐