[Android-tools-devel] Bug#1082678: android-platform-frameworks-base: FTBFS: libs/androidfw/include/androidfw/Asset.h:138:66: error: 'string' is a private member of 'android::String8'
Santiago Vila
sanvila at debian.org
Tue Sep 24 18:41:02 BST 2024
Package: src:android-platform-frameworks-base
Version: 1:14~beta1-2
Severity: serious
Tags: ftbfs
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules binary
dh binary --with bash-completion
dh_update_autotools_config
dh_autoreconf
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -p debian/out
rm -f tools/aapt2/integration-tests/ConvertTest/duplicate_entries.apk
dh_auto_configure
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_auto_build-arch
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make[1]: Circular debian/out/libandroidfw.so <- debian/out/libandroidfw.so dependency dropped.
dh_auto_build --buildsystem=makefile -- -f debian/libandroidfw.mk
make -j2 -f debian/libandroidfw.mk
make[2]: Entering directory '/<<PKGBUILDDIR>>'
clang++ -c -o libs/androidfw/ApkAssets.o libs/androidfw/ApkAssets.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -std=gnu++2a -gdwarf-4 -std=gnu++17 -Wno-missing-field-initializers -Wunreachable-code -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -I/usr/include/android -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes -DSTATIC_ANDROIDFW_FOR_TOOLS -Ilibs/androidfw/include
clang++ -c -o libs/androidfw/Asset.o libs/androidfw/Asset.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -std=gnu++2a -gdwarf-4 -std=gnu++17 -Wno-missing-field-initializers -Wunreachable-code -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -I/usr/include/android -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes -DSTATIC_ANDROIDFW_FOR_TOOLS -Ilibs/androidfw/include
In file included from libs/androidfw/ApkAssets.cpp:17:
In file included from libs/androidfw/include/androidfw/ApkAssets.h:26:
libs/androidfw/include/androidfw/Asset.h:138:66: error: 'string' is a private member of 'android::String8'
const char* getAssetSource(void) const { return mAssetSource.string(); }
^
/usr/include/android/utils/String8.h:235:33: note: declared private here
inline const char* string() const;
^
In file included from libs/androidfw/Asset.cpp:24:
libs/androidfw/include/androidfw/Asset.h:138:66: error: 'string' is a private member of 'android::String8'
const char* getAssetSource(void) const { return mAssetSource.string(); }
^
/usr/include/android/utils/String8.h:235:33: note: declared private here
inline const char* string() const;
^
1 error generated.
make[2]: *** [debian/libandroidfw.mk:57: libs/androidfw/Asset.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [debian/libandroidfw.mk:57: libs/androidfw/ApkAssets.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 -f debian/libandroidfw.mk returned exit code 2
make[1]: *** [debian/rules:52: debian/out/libandroidfw.so] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:61: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202409/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.
Thanks.
More information about the Android-tools-devel
mailing list