[Android-tools-devel] Bug#1016267: android-platform-frameworks-base: FTBFS: libs/androidfw/Util.cpp:72:50: error: no template named 'function' in namespace 'std'
Lucas Nussbaum
lucas at debian.org
Fri Jul 29 17:19:52 BST 2022
Source: android-platform-frameworks-base
Version: 1:10.0.0+r36-5
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220728 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[2]: Entering directory '/<<PKGBUILDDIR>>'
> mkdir --parents debian/out
> clang++ libs/androidfw/ApkAssets.cpp libs/androidfw/Asset.cpp libs/androidfw/AssetDir.cpp libs/androidfw/AssetManager.cpp libs/androidfw/AssetManager2.cpp libs/androidfw/AttributeResolution.cpp libs/androidfw/ChunkIterator.cpp libs/androidfw/ConfigDescription.cpp libs/androidfw/Idmap.cpp libs/androidfw/LoadedArsc.cpp libs/androidfw/Locale.cpp libs/androidfw/LocaleData.cpp libs/androidfw/misc.cpp libs/androidfw/ObbFile.cpp libs/androidfw/PosixUtils.cpp libs/androidfw/ResourceTypes.cpp libs/androidfw/ResourceUtils.cpp libs/androidfw/StreamingZipInflater.cpp libs/androidfw/TypeWrappers.cpp libs/androidfw/Util.cpp libs/androidfw/ZipFileRO.cpp libs/androidfw/ZipUtils.cpp -o debian/out/libandroidfw.so.0 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSTATIC_ANDROIDFW_FOR_TOOLS -std=gnu++17 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -fno-strict-aliasing -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -fno-strict-aliasing -Ilibs/androidfw/include -I/usr/include/android -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 -llog -lbase
> libs/androidfw/AssetManager2.cpp:1380:30: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'const int' [-Wsign-compare]
> for (size_t e = 0; e < type->entry_count; e++) {
> ~ ^ ~~~~~~~~~~~~~~~~~
> libs/androidfw/AssetManager2.cpp:1489:21: warning: comparison of integers of different signs: 'int' and 'std::array::size_type' (aka 'unsigned long') [-Wsign-compare]
> for (int p = 0; p < packages_.size(); p++) {
> ~ ^ ~~~~~~~~~~~~~~~~
> libs/androidfw/AssetManager2.cpp:1495:23: warning: comparison of integers of different signs: 'int' and 'std::array::size_type' (aka 'unsigned long') [-Wsign-compare]
> for (int t = 0; t < package->types.size(); t++) {
> ~ ^ ~~~~~~~~~~~~~~~~~~~~~
> 3 warnings generated.
> libs/androidfw/ResourceTypes.cpp:7411:13: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
> || value.dataType <= Res_value::TYPE_LAST_INT) {
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> libs/androidfw/ResourceTypes.cpp:7406:13: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
> || value.dataType <= Res_value::TYPE_LAST_COLOR_INT) {
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 2 warnings generated.
> libs/androidfw/Util.cpp:72:50: error: no template named 'function' in namespace 'std'
> const StringPiece& str, char sep, const std::function<char(char)>& f) {
> ~~~~~^
> 1 error generated.
> make[2]: *** [debian/libandroidfw.mk:39: build] Error 1
The full build log is available from:
http://qa-logs.debian.net/2022/07/28/android-platform-frameworks-base_10.0.0+r36-5_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220728;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220728&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Android-tools-devel
mailing list