我需要构建 android 4.3 master。按照这里的说明http://source.android.com/source/building.html。从 repo 同步源代码进展顺利。当我们尝试使用“make -j4”构建时,就会发生这种情况。
1 error
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
这是完整的日志-
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3.2.1.000.000
TARGET_PRODUCT=aosp_panda
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-2.6.32-38-generic-x86_64-with-Ubuntu-10.04-lucid
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================
No private recovery resources for TARGET_DEVICE panda
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
host Executable: aidl (out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl)
host C++: aapt <= frameworks/base/tools/aapt/AaptAssets.cpp
host C++: aapt <= frameworks/base/tools/aapt/Command.cpp
host C++: aapt <= frameworks/base/tools/aapt/CrunchCache.cpp
host C++: aapt <= frameworks/base/tools/aapt/FileFinder.cpp
host C++: aapt <= frameworks/base/tools/aapt/Main.cpp
host C++: aapt <= frameworks/base/tools/aapt/Package.cpp
host C++: aapt <= frameworks/base/tools/aapt/StringPool.cpp
host C++: aapt <= frameworks/base/tools/aapt/XMLNode.cpp
host C++: aapt <= frameworks/base/tools/aapt/ResourceFilter.cpp
host C++: aapt <= frameworks/base/tools/aapt/ResourceIdCache.cpp
In file included from frameworks/base/tools/aapt/ResourceIdCache.cpp:10:0:
frameworks/base/tools/aapt/ResourceIdCache.h:10:16: warning: declaration 'class android::String16' does not declare anything [enabled by default]
frameworks/base/tools/aapt/ResourceIdCache.cpp: In static member function 'static void android::ResourceIdCache::dump()':
frameworks/base/tools/aapt/ResourceIdCache.cpp:101:40: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'std::map<unsigned int, CacheEntry>::size_type {aka unsigned int}' [-Wformat]
frameworks/base/tools/aapt/ResourceIdCache.cpp:102:34: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t {aka unsigned int}' [-Wformat]
frameworks/base/tools/aapt/ResourceIdCache.cpp:103:36: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t {aka unsigned int}' [-Wformat]
frameworks/base/tools/aapt/ResourceIdCache.cpp:104:46: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t {aka unsigned int}' [-Wformat]
host C++: aapt <= frameworks/base/tools/aapt/ResourceTable.cpp
host C++: aapt <= frameworks/base/tools/aapt/Images.cpp
host C++: aapt <= frameworks/base/tools/aapt/Resource.cpp
host C++: aapt <= frameworks/base/tools/aapt/SourcePos.cpp
host C++: aapt <= frameworks/base/tools/aapt/ZipEntry.cpp
host C++: aapt <= frameworks/base/tools/aapt/ZipFile.cpp
host StaticLib: libandroidfw (out/host/linux-x86/obj/STATIC_LIBRARIES/libandroidfw_intermediates/libandroidfw.a)
host C++: libutils <= frameworks/native/libs/utils/BasicHashtable.cpp
host C++: libutils <= frameworks/native/libs/utils/BlobCache.cpp
host C++: libutils <= frameworks/native/libs/utils/BufferedTextOutput.cpp
host C++: libutils <= frameworks/native/libs/utils/CallStack.cpp
libcore/luni/src/main/java/libcore/reflect/AnnotationAccess.java:743: type parameters of <A>A cannot be determined; no unique maximal instance exists for type variable A with upper bounds A,java.lang.annotation.Annotation
return AnnotationFactory.createAnnotation(annotationClass, members);
^
host C++: libutils <= frameworks/native/libs/utils/Debug.cpp
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
In file included from frameworks/base/tools/aapt/ResourceTable.cpp:11:0:
frameworks/base/tools/aapt/ResourceIdCache.h:10:16: warning: declaration 'class android::String16' does not declare anything [enabled by default]
任何见解或帮助将不胜感激。在此先感谢。