编译android6.0源码失败


#1

在ubuntu14.04上编译Android6.0源码失败,以下是打印的日志,

build/core/Makefile:34: 警告:覆盖关于目标“out/target/product/kvim/system/usr/keylayout/Generic.kl”的命令
build/core/Makefile:34: 警告:忽略关于目标“out/target/product/kvim/system/usr/keylayout/Generic.kl”的旧命令
No private recovery resources for TARGET_DEVICE kvim
Install: out/host/linux-x86/bin/acp
host Executable: aapt (out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt)
host Executable: aidl (out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl)
Install: out/host/linux-x86/framework/bouncycastle-host.jar
host SharedLib: libssl-host (out/host/linux-x86/obj/lib/libssl-host.so)
host Prebuilt: jill (out/host/common/obj/JAVA_LIBRARIES/jill_intermediates/jill.jar)
Install: out/host/linux-x86/bin/aprotoc
Install: out/host/linux-x86/framework/antlr-runtime.jar
Install: out/host/linux-x86/framework/guavalib.jar
host Prebuilt: jarjar-apache-ant (out/host/common/obj/JAVA_LIBRARIES/jarjar-apache-ant_intermediates/javalib.jar)
host Prebuilt: jarjar-maven-plugin-api (out/host/common/obj/JAVA_LIBRARIES/jarjar-maven-plugin-api_intermediates/javalib.jar)
host Prebuilt: jarjar-asm (out/host/common/obj/JAVA_LIBRARIES/jarjar-asm_intermediates/javalib.jar)
host Prebuilt: jarjar-asm-commons (out/host/common/obj/JAVA_LIBRARIES/jarjar-asm-commons_intermediates/javalib.jar)
host Prebuilt: asm-tools (out/host/common/obj/JAVA_LIBRARIES/asm-tools_intermediates/javalib.jar)
host Prebuilt: guava-tools (out/host/common/obj/JAVA_LIBRARIES/guava-tools_intermediates/javalib.jar)
target SharedLib: libdl (out/target/product/kvim/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
target Unpacked: libexpat (out/target/product/kvim/obj/SHARED_LIBRARIES/libexpat_intermediates/PACKED/libexpat.so)
/media/u/ss/S905X/mmallow/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/…/lib/gcc/arm-linux-androideabi/4.9.x-google/…/…/…/…/arm-linux-androideabi/bin/ld: error: out/target/product/kvim/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o: incompatible target
collect2: error: ld returned 1 exit status
make: *** [out/target/product/kvim/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so] 错误 1
make: *** 正在等待未完成的任务…
Protoc: out/target/product/kvim/gen/SHARED_LIBRARIES/libGLES_trace_intermediates/proto/frameworks/native/opengl/libs/GLES_trace/proto/gltrace.pb.cc <= frameworks/native/opengl/libs/GLES_trace/proto/gltrace.proto

make failed to build some targets (34:33 (mm:ss))

请问有人知道是什么原因吗,谢谢。


#2

麻烦提供一下所有的编译信息,从你发的信息里面没有看到有用的错误信息,谢谢