Project

General

Profile

Bug #20

Unable to build AOSP 7.0

Added by Emanuele Gambaro almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
% Done:

100%

Device:
tuna

Description

I think that this is not releated to the device (TUNA) or releated to the build machine (the build machine works for CyanogenMod codebase without any issues)

After "lunch aosp_tuna-userdebug" the error is:

ninja: Entering directory `.'
[  0% 22/34400] host Executable: aapt (/home/android/TUNA/out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt)
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang++      /home/android/TUNA/out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/Main.o                -Wl,--whole-archive   -Wl,--no-whole-archive   /home/android/TUNA/out/host/linux-x86/obj/STATIC_LIBRARIES/libaapt_intermediates/libaapt.a /home/android/TUNA/out/host/linux-x86/obj/STATIC_LIBRARIES/libandroidfw_intermediates/libandroidfw.a /home/android/TUNA/out/host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a /home/android/TUNA/out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/libutils.a /home/android/TUNA/out/host/linux-x86/obj/STATIC_LIBRARIES/liblog_intermediates/liblog.a /home/android/TUNA/out/host/linux-x86/obj/STATIC_LIBRARIES/libcutils_intermediates/libcutils.a /home/android/TUNA/out/host/linux-x86/obj/STATIC_LIBRARIES/libexpat_intermediates/libexpat.a /home/android/TUNA/out/host/linux-x86/obj/STATIC_LIBRARIES/libziparchive-host_intermediates/libziparchive-host.a /home/android/TUNA/out/host/linux-x86/obj/STATIC_LIBRARIES/libbase_intermediates/libbase.a /home/android/TUNA/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a    -lc++  -Wl,-rpath-link=/home/android/TUNA/out/host/linux-x86/obj/lib -Wl,-rpath,\\\$ORIGIN/../lib64 -Wl,-rpath,\\\$ORIGIN/lib64  -L/home/android/TUNA/out/host/linux-x86/obj/lib    -m64 -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--no-undefined-version    --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/lib/gcc/x86_64-linux/4.8 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/lib/gcc/x86_64-linux/4.8 -Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/lib64/ -target x86_64-linux-gnu    -pie -nodefaultlibs -o /home/android/TUNA/out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt  -lrt -ldl -lpthread -lz -lpthread -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc"
frameworks/base/tools/aapt/Images.cpp:1393: error: undefined reference to 'png_create_read_struct'
frameworks/base/tools/aapt/Images.cpp:1408: error: undefined reference to 'png_create_write_struct'
frameworks/base/tools/aapt/Images.cpp:1421: error: undefined reference to 'png_set_write_fn'
frameworks/base/tools/aapt/Images.cpp:1441: error: undefined reference to 'png_destroy_read_struct'
frameworks/base/tools/aapt/Images.cpp:1447: error: undefined reference to 'png_destroy_write_struct'
frameworks/base/tools/aapt/Images.cpp:1483: error: undefined reference to 'png_create_read_struct'
frameworks/base/tools/aapt/Images.cpp:1486: error: undefined reference to 'png_destroy_read_struct'
frameworks/base/tools/aapt/Images.cpp:1516: error: undefined reference to 'png_destroy_read_struct'
frameworks/base/tools/aapt/Images.cpp:1528: error: undefined reference to 'png_create_write_struct'
frameworks/base/tools/aapt/Images.cpp:1530: error: undefined reference to 'png_destroy_write_struct'
frameworks/base/tools/aapt/Images.cpp:1578: error: undefined reference to 'png_destroy_write_struct'
frameworks/base/tools/aapt/Images.cpp:109: error: undefined reference to 'png_read_info'
frameworks/base/tools/aapt/Images.cpp:120: error: undefined reference to 'png_set_palette_to_rgb'
frameworks/base/tools/aapt/Images.cpp:123: error: undefined reference to 'png_set_expand_gray_1_2_4_to_8'
frameworks/base/tools/aapt/Images.cpp:127: error: undefined reference to 'png_set_tRNS_to_alpha'
frameworks/base/tools/aapt/Images.cpp:131: error: undefined reference to 'png_set_strip_16'
frameworks/base/tools/aapt/Images.cpp:134: error: undefined reference to 'png_set_add_alpha'
frameworks/base/tools/aapt/Images.cpp:137: error: undefined reference to 'png_set_gray_to_rgb'
frameworks/base/tools/aapt/Images.cpp:139: error: undefined reference to 'png_set_interlace_handling'
frameworks/base/tools/aapt/Images.cpp:141: error: undefined reference to 'png_read_update_info'
frameworks/base/tools/aapt/Images.cpp:148: error: undefined reference to 'png_set_rows'
frameworks/base/tools/aapt/Images.cpp:156: error: undefined reference to 'png_read_image'
frameworks/base/tools/aapt/Images.cpp:158: error: undefined reference to 'png_read_end'
frameworks/base/tools/aapt/Images.cpp:1164: error: undefined reference to 'png_set_compression_level'
frameworks/base/tools/aapt/Images.cpp:1218: error: undefined reference to 'png_set_IHDR'
frameworks/base/tools/aapt/Images.cpp:1223: error: undefined reference to 'png_set_PLTE'
frameworks/base/tools/aapt/Images.cpp:1225: error: undefined reference to 'png_set_tRNS'
frameworks/base/tools/aapt/Images.cpp:1230: error: undefined reference to 'png_set_filter'
frameworks/base/tools/aapt/Images.cpp:1277: error: undefined reference to 'png_set_keep_unknown_chunks'
frameworks/base/tools/aapt/Images.cpp:1279: error: undefined reference to 'png_set_unknown_chunks'
frameworks/base/tools/aapt/Images.cpp:1283: error: undefined reference to 'png_write_info'
frameworks/base/tools/aapt/Images.cpp:1288: error: undefined reference to 'png_set_filler'
frameworks/base/tools/aapt/Images.cpp:1294: error: undefined reference to 'png_write_image'
frameworks/base/tools/aapt/Images.cpp:1301: error: undefined reference to 'png_write_end'
external/libpng/png.c:93: error: undefined reference to 'png_malloc_warn'
external/libpng/png.c:100: error: undefined reference to 'png_free'
external/libpng/png.c:267: error: undefined reference to 'png_set_mem_fn'
external/libpng/png.c:299: error: undefined reference to 'png_malloc_warn'
external/libpng/png.c:348: error: undefined reference to 'png_malloc_base'
external/libpng/png.c:390: error: undefined reference to 'png_free'
external/libpng/png.c:466: error: undefined reference to 'png_free'
external/libpng/png.c:475: error: undefined reference to 'png_free'
external/libpng/png.c:419: error: undefined reference to 'png_malloc_base'
external/libpng/png.c:687: error: undefined reference to 'png_save_uint_32'
external/libpng/png.c:4014: error: undefined reference to 'png_malloc'
external/libpng/png.c:4014: error: undefined reference to 'png_malloc'
external/libpng/png.c:3951: error: undefined reference to 'png_calloc'
external/libpng/png.c:3958: error: undefined reference to 'png_malloc'
external/libpng/png.c:4014: error: undefined reference to 'png_malloc'
external/libpng/png.c:3881: error: undefined reference to 'png_calloc'
external/libpng/png.c:4462: error: undefined reference to 'png_destroy_read_struct'
external/libpng/png.c:4454: error: undefined reference to 'png_destroy_write_struct'
external/libpng/pngerror.c:622: error: undefined reference to 'png_malloc_warn'
external/expat/lib/xmlparse.c:829: error: undefined reference to 'XmlGetUtf8InternalEncodingNS'
external/expat/lib/xmlparse.c:833: error: undefined reference to 'XmlGetUtf8InternalEncoding'
external/expat/lib/xmlparse.c:848: error: undefined reference to 'XmlInitEncoding'
external/expat/lib/xmlparse.c:3426: error: undefined reference to 'XmlInitEncodingNS'
external/expat/lib/xmlparse.c:3426: error: undefined reference to 'XmlInitEncoding'
external/expat/lib/xmlparse.c:3426: error: undefined reference to 'XmlInitEncodingNS'
external/expat/lib/xmlparse.c:3426: error: undefined reference to 'XmlInitEncoding'
external/expat/lib/xmlparse.c:3426: error: undefined reference to 'XmlInitEncodingNS'
external/expat/lib/xmlparse.c:3426: error: undefined reference to 'XmlInitEncoding'
external/expat/lib/xmlparse.c:3534: error: undefined reference to 'XmlSizeOfUnknownEncoding'
external/expat/lib/xmlparse.c:3540: error: undefined reference to 'XmlInitUnknownEncodingNS'
external/expat/lib/xmlparse.c:3536: error: undefined reference to 'XmlInitUnknownEncoding'
external/expat/lib/xmlparse.c:3442: error: undefined reference to 'XmlParseXmlDeclNS'
external/expat/lib/xmlparse.c:3442: error: undefined reference to 'XmlParseXmlDecl'
external/expat/lib/xmlparse.c:5225: error: undefined reference to 'XmlUtf8Encode'
external/expat/lib/xmlparse.c:2567: error: undefined reference to 'XmlUtf8Encode'
external/expat/lib/xmlparse.c:4984: error: undefined reference to 'XmlUtf8Encode'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[  0% 22/34400] target Java: core-all (/home/android/TUNA/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes)
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.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (44 seconds) ####

History

#1 Updated by André Pinela almost 3 years ago

If it failed to repo sync as you mentioned in #19, this may be causing some incoherence in source, can try again?

#2 Updated by Emanuele Gambaro almost 3 years ago

Ticket #19 was releated to aosp 7.1
This issue was releated to branch 7.0, and the repo sync for 7.0 works fine.
But now it works:

*) repo init -b aosp-7.0
*) repo sync
*) lunch and make

PS : when the build failed one week ago there was 34400 file to compile. Now "only" 29370, so I think that something changes in 7.0 repos :)

 

#3 Updated by André Pinela almost 3 years ago

  • Status changed from New to Closed
  • Assignee set to André Pinela
  • % Done changed from 0 to 100

Also available in: Atom PDF