[Android-tools-devel] Bug#976891: Bug#976891: fastboot exits with "fake placeholder until fastboot builds" message

Hans-Christoph Steiner hans at eds.org
Wed Dec 23 21:33:14 GMT 2020


As far as I know, the blocker for fastbook is android-platform-art.  It 
has a crazy upstream build system.  Right now, it almost building, but 
the build is currently dying on this error:

clang++ -o runtime/compiler_filter.o -g -O2 
-fdebug-prefix-map=/build/android-platform-art-10.0.0+r36=. 
-fstack-protector-strong -Wformat -Werror=format-security -fPIC -c 
-std=gnu++17 -Wno-invalid-offsetof -Wno-invalid-partial-specialization 
-D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -fno-rtti 
-fstrict-aliasing -fvisibility=protected -fno-omit-frame-pointer 
-Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -I/usr/include/android -UDEBUG 
-Umips -DART_BASE_ADDRESS_MAX_DELTA=0x1000000 
-DART_BASE_ADDRESS_MIN_DELTA=-0x1000000 -DART_BASE_ADDRESS=0x60000000 
-DART_DEFAULT_COMPACT_DEX_LEVEL=fast -DART_DEFAULT_GC_TYPE_IS_CMS 
-DART_ENABLE_ADDRESS_SANITIZER=1 -DART_ENABLE_CODEGEN_arm 
-DART_ENABLE_CODEGEN_arm64 -DART_ENABLE_CODEGEN_mips 
-DART_ENABLE_CODEGEN_mips64 -DART_ENABLE_CODEGEN_x86 
-DART_ENABLE_CODEGEN_x86_64 -DART_FRAME_SIZE_LIMIT=1736 
-DART_READ_BARRIER_TYPE_IS_BAKER=1 -DART_STACK_OVERFLOW_GAP_arm=8192 
-DART_STACK_OVERFLOW_GAP_arm64=8192 -DART_STACK_OVERFLOW_GAP_mips=16384 
-DART_STACK_OVERFLOW_GAP_mips64=16384 
-DART_STACK_OVERFLOW_GAP_x86_64=8192 -DART_STACK_OVERFLOW_GAP_x86=8192 
-DART_USE_READ_BARRIER=1 -DBUILDING_LIBART=1 -DIMT_SIZE=43 
-DUSE_D8_DESUGAR=1 -I. -I/usr/include/android/nativehelper 
-I/usr/include/valgrind -Icmdline -Iruntime -Iruntime/generated 
-Ilibartbase -Ilibartpalette/include -Ilibdexfile -Ilibelffile 
-Ilibprofile -Isigchainlib -I/usr/include/android 
-Itools/cpp-define-generator -Idebian/out  runtime/compiler_filter.cc
In file included from tools/cpp-define-generator/asm_defines.cc:36:
In file included from tools/cpp-define-generator/asm_defines.def:21:
In file included from tools/cpp-define-generator/globals.def:23:
In file included from runtime/gc/accounting/card_table.h:22:
In file included from runtime/base/locks.h:25:
In file included from libartbase/base/atomic.h:27:
In file included from libartbase/base/macros.h:24:
/usr/include/android/android-base/thread_annotations.h:139:42: error: 
'acquire_capability' attribute requires arguments whose type is 
annotated with 'capability' attribute; type here is 'std::mutex' 
[-Werror,-Wthread-safety-attributes]
   ScopedLockAssertion(std::mutex& mutex) ACQUIRE(mutex) {}
                                          ^
/usr/include/android/android-base/thread_annotations.h:57:37: note: 
expanded from macro 'ACQUIRE'
       THREAD_ANNOTATION_ATTRIBUTE__(acquire_capability(__VA_ARGS__))
                                     ^
In file included from tools/cpp-define-generator/asm_defines.cc:36:
In file included from tools/cpp-define-generator/asm_defines.def:21:
In file included from tools/cpp-define-generator/globals.def:23:
In file included from runtime/gc/accounting/card_table.h:23:
libartbase/base/mem_map.h:71:35: error: 'requires_capability' attribute 
requires arguments whose type is annotated with 'capability' attribute; 
type here is 'bool' [-Werror,-Wthread-safety-attributes]
   MemMap(MemMap&& other) noexcept REQUIRES(!MemMap::mem_maps_lock_);
                                   ^
/usr/include/android/android-base/thread_annotations.h:51:37: note: 
expanded from macro 'REQUIRES'


A full build log is available here:
https://salsa.debian.org/android-tools-team/android-platform-art/-/jobs/1274438



More information about the Android-tools-devel mailing list