[Android-tools-devel] Bug#1037576: android-platform-tools: ftbfs with GCC-13

Matthias Klose doko at debian.org
Wed Jun 14 10:21:28 BST 2023


Package: src:android-platform-tools
Version: 29.0.6-28
Severity: normal
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-13

[This bug is targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-13/g++-13, but succeeds to build with gcc-12/g++-12. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2023/05/22/logs/android-platform-tools_29.0.6-28_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 13, either set CC=gcc-13 CXX=g++-13 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-13/porting_to.html

[...]
# define _GLIBCXX11_DEPRECATED _GLIBCXX_DEPRECATED
                               ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:96:46: note: expanded from macro '_GLIBCXX_DEPRECATED'
# define _GLIBCXX_DEPRECATED __attribute__ ((__deprecated__))
                                             ^
system/core/liblog/event_tag_map.cpp:101:40: warning: 'unary_function<const std::pair<MapString, MapString> &, unsigned long>' is deprecated [-Wdeprecated-declarations]
struct std::hash<TagFmt> : public std::unary_function<const TagFmt&, size_t> {
                                       ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_function.h:124:7: note: 'unary_function<const std::pair<MapString, MapString> &, unsigned long>' has been explicitly marked deprecated here
    } _GLIBCXX11_DEPRECATED;
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:105:32: note: expanded from macro '_GLIBCXX11_DEPRECATED'
# define _GLIBCXX11_DEPRECATED _GLIBCXX_DEPRECATED
                               ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:96:46: note: expanded from macro '_GLIBCXX_DEPRECATED'
# define _GLIBCXX_DEPRECATED __attribute__ ((__deprecated__))
                                             ^
2 warnings generated.
mkdir -p debian/out/system/core
clang++ system/core/liblog/log_event_list.o system/core/liblog/log_event_write.o system/core/liblog/logger_name.o system/core/liblog/logger_read.o system/core/liblog/logger_write.o system/core/liblog/logprint.o system/core/liblog/properties.o system/core/liblog/event_tag_map.o -o debian/out/system/core/liblog.so.0 -Wl,-z,relro -Wl,-z,now -fPIC -fuse-ld=lld -Wl,--build-id=sha1 -Ldebian/out/system/core -Wl,-rpath=/usr/lib/x86_64-linux-gnu/android -Wl,-soname,liblog.so.0 -lpthread -shared
ln -sf liblog.so.0 debian/out/system/core/liblog.so
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build --buildsystem=makefile -- --file=debian/system/core/libbase.mk
	make -j8 "INSTALL=install --strip-program=true" --file=debian/system/core/libbase.mk
make[2]: Entering directory '/<<PKGBUILDDIR>>'
clang++ -c -o system/core/base/abi_compatibility.o system/core/base/abi_compatibility.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/chrono_utils.o system/core/base/chrono_utils.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/cmsg.o system/core/base/cmsg.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/file.o system/core/base/file.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/liblog_symbols.o system/core/base/liblog_symbols.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/logging.o system/core/base/logging.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/mapped_file.o system/core/base/mapped_file.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/parsebool.o system/core/base/parsebool.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/parsenetaddress.o system/core/base/parsenetaddress.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/process.o system/core/base/process.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/properties.o system/core/base/properties.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
In file included from system/core/base/chrono_utils.cpp:17:
In file included from system/core/base/include/android-base/chrono_utils.h:19:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2320:48: error: call to consteval function 'std::chrono::hh_mm_ss::_S_fractional_width' is not a constant expression
        static constexpr unsigned fractional_width = {_S_fractional_width()};
                                                      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2320:48: note: undefined function '_S_fractional_width' cannot be used in a constant expression
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2275:2: note: declared here
        _S_fractional_width()
        ^
clang++ -c -o system/core/base/stringprintf.o system/core/base/stringprintf.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/strings.o system/core/base/strings.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/threads.o system/core/base/threads.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/test_utils.o system/core/base/test_utils.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
clang++ -c -o system/core/base/errors_unix.o system/core/base/errors_unix.cpp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -gdwarf-4 -std=gnu++2a -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D_FILE_OFFSET_BITS=64 -Isystem/core/base/include -Isystem/core/include 
1 error generated.
make[2]: *** [debian/system/core/libbase.mk:50: system/core/base/chrono_utils.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from system/core/base/properties.cpp:17:
In file included from system/core/base/include/android-base/properties.h:21:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2320:48: error: call to consteval function 'std::chrono::hh_mm_ss::_S_fractional_width' is not a constant expression
        static constexpr unsigned fractional_width = {_S_fractional_width()};
                                                      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2320:48: note: undefined function '_S_fractional_width' cannot be used in a constant expression
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2275:2: note: declared here
        _S_fractional_width()
        ^
1 error generated.
make[2]: *** [debian/system/core/libbase.mk:50: system/core/base/properties.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" --file=debian/system/core/libbase.mk returned exit code 2
make[1]: *** [debian/rules:67: s/core/libbase.so] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:43: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Android-tools-devel mailing list