Source: android-platform-frameworks-base Version: 1:7.0.0+r1-3 Severity: serious Justification: fails to build from source User: [email protected] Usertags: ftbfs X-Debbugs-Cc: [email protected]
Dear Maintainer,
android-platform-frameworks-base fails to build from source in unstable/amd64:
[…]
dh_auto_configure
debian/rules override_dh_auto_build-arch
make[1]: Entering directory '«BUILDDIR»'
make -f debian/libandroidfw.mk
make[2]: Entering directory '«BUILDDIR»'
mkdir --parents debian/out
g++ libs/androidfw/Asset.cpp libs/androidfw/AssetDir.cpp
libs/androidfw/AssetManager.cpp libs/androidfw/LocaleData.cpp
libs/androidfw/misc.cpp libs/androidfw/ObbFile.cpp
libs/androidfw/ResourceTypes.cpp libs/androidfw/StreamingZipInflater.cpp
libs/androidfw/TypeWrappers.cpp libs/androidfw/ZipFileRO.cpp
libs/androidfw/ZipUtils.cpp -o debian/out/libandroidfw.so.0 -g -O2
-fdebug-prefix-map=«BUILDDIR»=. -fstack-protector-strong -Wformat
-Werror=format-security -DSTATIC_ANDROIDFW_FOR_TOOLS -Wdate-time
-D_FORTIFY_SOURCE=2 -DNDEBUG -I/usr/include/android -Iinclude -Wl,-z,relro
-fPIC -shared -Wl,-soname,libandroidfw.so.0
-Wl,-rpath=/usr/lib/x86_64-linux-gnu/android -lz
-L/usr/lib/x86_64-linux-gnu/android -lziparchive -lutils -lcutils -llog
In file included from /usr/include/android/cutils/log.h:1:0,
from /usr/include/android/utils/Log.h:31,
from include/androidfw/ByteBucketArray.h:20,
from libs/androidfw/ResourceTypes.cpp:32:
libs/androidfw/ResourceTypes.cpp: In member function 'ssize_t
android::ResTable::Theme::getAttribute(uint32_t, android::Res_value*,
uint32_t*) const':
/usr/include/android/log/log.h:618:39: warning: format '%zd' expects argument
of type 'signed size_t', but argument 4 has type 'uint32_t {aka unsigned int}'
[-Wformat=]
__android_log_print(prio, tag, fmt)
^
/usr/include/android/log/log.h:461:5: note: in expansion of macro
'android_printLog'
android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~~~~~~
/usr/include/android/log/log.h:453:5: note: in expansion of macro 'LOG_PRI'
LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~
/usr/include/android/log/log.h:128:27: note: in expansion of macro 'ALOG'
#define ALOGI(...) ((void)ALOG(LOG_INFO, LOG_TAG, __VA_ARGS__))
^~~~
libs/androidfw/ResourceTypes.cpp:3542:21: note: in expansion of macro 'ALOGI'
ALOGI("Desired type index is %zd in avail %zu", t,
Res_MAXTYPE + 1);
^~~~~
ln -s libandroidfw.so.0 debian/out/libandroidfw.so
make[2]: Leaving directory '«BUILDDIR»'
make -f debian/libaapt.mk
make[2]: Entering directory '«BUILDDIR»'
mkdir --parents debian/out
g++ tools/aapt/AaptAssets.cpp tools/aapt/AaptConfig.cpp
tools/aapt/AaptUtil.cpp tools/aapt/AaptXml.cpp tools/aapt/ApkBuilder.cpp
tools/aapt/Command.cpp tools/aapt/CrunchCache.cpp tools/aapt/FileFinder.cpp
tools/aapt/Images.cpp tools/aapt/Package.cpp tools/aapt/pseudolocalize.cpp
tools/aapt/Resource.cpp tools/aapt/ResourceFilter.cpp
tools/aapt/ResourceIdCache.cpp tools/aapt/ResourceTable.cpp
tools/aapt/SourcePos.cpp tools/aapt/StringPool.cpp tools/aapt/WorkQueue.cpp
tools/aapt/XMLNode.cpp tools/aapt/ZipEntry.cpp tools/aapt/ZipFile.cpp -o
debian/out/libaapt.so.0 -g -O2 -fdebug-prefix-map=«BUILDDIR»=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -DNDEBUG -I/usr/include/android
-DSTATIC_ANDROIDFW_FOR_TOOLS -DAAPT_VERSION=\"24.0.0\" -Iinclude -Wl,-z,relro
-fPIC -shared -Wl,-soname,libaapt.so.0
-Wl,-rpath=debian/out:/usr/lib/x86_64-linux-gnu/android -lpng -lexpat -lz
-Ldebian/out -landroidfw -L/usr/lib/x86_64-linux-gnu/android -llog -lutils
ln -s libaapt.so.0 debian/out/libaapt.so
make[2]: Leaving directory '«BUILDDIR»'
make -f debian/aapt.mk
make[2]: Entering directory '«BUILDDIR»'
mkdir --parents debian/out
g++ tools/aapt/Main.cpp -o debian/out/aapt -g -O2
-fdebug-prefix-map=«BUILDDIR»=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG
-I/usr/include/android -DSTATIC_ANDROIDFW_FOR_TOOLS -DAAPT_VERSION=\"24.0.0\"
-Iinclude -Wl,-z,relro -fPIC
-Wl,-rpath=debian/out:/usr/lib/x86_64-linux-gnu/android
-Wl,-rpath-link=debian/out -Ldebian/out -laapt
-L/usr/lib/x86_64-linux-gnu/android -lutils
make[2]: Leaving directory '«BUILDDIR»'
make -f debian/aapt2.mk
make[2]: Entering directory '«BUILDDIR»'
mkdir --parents debian/out/proto/frameworks/base/tools/aapt2
protoc --cpp_out=debian/out/proto/frameworks/base/tools/aapt2 \
--proto_path=tools/aapt2 tools/aapt2/Format.proto
g++ tools/aapt2/compile/IdAssigner.cpp tools/aapt2/compile/Png.cpp
tools/aapt2/compile/PseudolocaleGenerator.cpp
tools/aapt2/compile/Pseudolocalizer.cpp tools/aapt2/compile/XmlIdCollector.cpp
tools/aapt2/filter/ConfigFilter.cpp tools/aapt2/flatten/Archive.cpp
tools/aapt2/flatten/TableFlattener.cpp tools/aapt2/flatten/XmlFlattener.cpp
tools/aapt2/io/FileSystem.cpp tools/aapt2/io/ZipArchive.cpp
tools/aapt2/link/AutoVersioner.cpp tools/aapt2/link/ManifestFixer.cpp
tools/aapt2/link/ProductFilter.cpp tools/aapt2/link/PrivateAttributeMover.cpp
tools/aapt2/link/ReferenceLinker.cpp tools/aapt2/link/TableMerger.cpp
tools/aapt2/link/XmlReferenceLinker.cpp tools/aapt2/process/SymbolTable.cpp
tools/aapt2/proto/ProtoHelpers.cpp tools/aapt2/proto/TableProtoDeserializer.cpp
tools/aapt2/proto/TableProtoSerializer.cpp tools/aapt2/split/TableSplitter.cpp
tools/aapt2/unflatten/BinaryResourceParser.cpp
tools/aapt2/unflatten/ResChunkPullParser.cpp tools/aapt2/util/BigBuffer.cpp
tools/aapt2/util/Files.cpp tools/aapt2/util/Util.cpp
tools/aapt2/ConfigDescription.cpp tools/aapt2/Debug.cpp tools/aapt2/Flags.cpp
tools/aapt2/java/AnnotationProcessor.cpp tools/aapt2/java/ClassDefinition.cpp
tools/aapt2/java/JavaClassGenerator.cpp
tools/aapt2/java/ManifestClassGenerator.cpp tools/aapt2/java/ProguardRules.cpp
tools/aapt2/Locale.cpp tools/aapt2/Resource.cpp tools/aapt2/ResourceParser.cpp
tools/aapt2/ResourceTable.cpp tools/aapt2/ResourceUtils.cpp
tools/aapt2/ResourceValues.cpp tools/aapt2/SdkConstants.cpp
tools/aapt2/StringPool.cpp tools/aapt2/xml/XmlActionExecutor.cpp
tools/aapt2/xml/XmlDom.cpp tools/aapt2/xml/XmlPullParser.cpp
tools/aapt2/xml/XmlUtil.cpp tools/aapt2/compile/Compile.cpp
tools/aapt2/dump/Dump.cpp tools/aapt2/link/Link.cpp tools/aapt2/Main.cpp
debian/out/proto/frameworks/base/tools/aapt2/Format.pb.cc -o debian/out/aapt2
-g -O2 -fdebug-prefix-map=«BUILDDIR»=. -fstack-protector-strong -Wformat
-Werror=format-security -fno-exceptions -Wdate-time -D_FORTIFY_SOURCE=2
-DNDEBUG -I/usr/include/android -DSTATIC_ANDROIDFW_FOR_TOOLS
-DAAPT_VERSION=\"24.0.0\" -Iinclude -Itools/aapt2 -Idebian/out -Wl,-z,relro
-fPIC -Wl,-rpath=/usr/lib/x86_64-linux-gnu/android -lexpat -lpng
-lprotobuf-lite -Wl,-rpath-link=debian/out -Ldebian/out -landroidfw
-L/usr/lib/x86_64-linux-gnu/android -lutils -lbase -lziparchive
tools/aapt2/util/Util.cpp: In function 'std::__cxx11::string
aapt::util::utf16ToUtf8(const StringPiece16&)':
tools/aapt2/util/Util.cpp:445:63: error: too few arguments to function 'void
utf16_to_utf8(const char16_t*, size_t, char*, size_t)'
utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin());
^
In file included from /usr/include/android/utils/String8.h:21:0,
from tools/aapt2/util/StringPiece.h:22,
from tools/aapt2/util/Util.cpp:19:
/usr/include/android/utils/Unicode.h:114:6: note: declared here
void utf16_to_utf8(const char16_t* src, size_t src_len, char* dst, size_t
dst_len);
^~~~~~~~~~~~~
tools/aapt2/compile/Compile.cpp: In function 'bool
aapt::loadInputFilesFromDir(aapt::IAaptContext*, const aapt::CompileOptions&,
std::vector<aapt::ResourcePathData>*)':
tools/aapt2/compile/Compile.cpp:139:45: warning: ignoring attributes on
template argument 'int (*)(DIR*) {aka int (*)(__dirstream*)}'
[-Wignored-attributes]
std::unique_ptr<DIR, decltype(closedir)*> d(opendir(rootDir.data()),
closedir);
^
tools/aapt2/compile/Compile.cpp:157:49: warning: ignoring attributes on
template argument 'int (*)(DIR*) {aka int (*)(__dirstream*)}'
[-Wignored-attributes]
std::unique_ptr<DIR, decltype(closedir)*>
subDir(opendir(prefixPath.data()), closedir);
^
debian/aapt2.mk:67: recipe for target 'build' failed
make[2]: *** [build] Error 1
make[2]: Leaving directory '«BUILDDIR»'
debian/rules:15: recipe for target 'debian/out/aapt2' failed
make[1]: *** [debian/out/aapt2] Error 2
make[1]: Leaving directory '«BUILDDIR»'
debian/rules:27: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
[…]
The full build log is attached.
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
android-platform-frameworks-base.1:7.0.0+r1-3.unstable.amd64.log.txt.gz
Description: Binary data

