[Android-tools-devel] Bug#1037574: android-platform-system-tools-hidl: ftbfs with GCC-13

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


Package: src:android-platform-system-tools-hidl
Version: 10.0.0+r36-3
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-system-tools-hidl_10.0.0+r36-3_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

[...]
4 errors generated.
In file included from generateVts.cpp:17:
In file included from ./AST.h:22:
hashing/include/hidl-hash/Hash.h:25:30: error: use of undeclared identifier 'uint8_t'
    static const std::vector<uint8_t> kEmptyHash;
                             ^
hashing/include/hidl-hash/Hash.h:38:52: error: use of undeclared identifier 'uint8_t'
    static std::string hexString(const std::vector<uint8_t>& hash);
                                                   ^
hashing/include/hidl-hash/Hash.h:41:23: error: use of undeclared identifier 'uint8_t'
    const std::vector<uint8_t>& raw() const;
                      ^
hashing/include/hidl-hash/Hash.h:50:17: error: use of undeclared identifier 'uint8_t'
    std::vector<uint8_t> mHash;
                ^
4 errors generated.
In file included from AST.cpp:17:
In file included from ./AST.h:22:
hashing/include/hidl-hash/Hash.h:25:30: error: use of undeclared identifier 'uint8_t'
    static const std::vector<uint8_t> kEmptyHash;
                             ^
hashing/include/hidl-hash/Hash.h:38:52: error: use of undeclared identifier 'uint8_t'
    static std::string hexString(const std::vector<uint8_t>& hash);
                                                   ^
hashing/include/hidl-hash/Hash.h:41:23: error: use of undeclared identifier 'uint8_t'
    const std::vector<uint8_t>& raw() const;
                      ^
hashing/include/hidl-hash/Hash.h:50:17: error: use of undeclared identifier 'uint8_t'
    std::vector<uint8_t> mHash;
                ^
4 errors generated.
In file included from hidl-gen_y.yy:19:
In file included from ./AST.h:22:
hashing/include/hidl-hash/Hash.h:25:30: error: use of undeclared identifier 'uint8_t'
    static const std::vector<uint8_t> kEmptyHash;
                             ^
hashing/include/hidl-hash/Hash.h:38:52: error: use of undeclared identifier 'uint8_t'
    static std::string hexString(const std::vector<uint8_t>& hash);
                                                   ^
hashing/include/hidl-hash/Hash.h:41:23: error: use of undeclared identifier 'uint8_t'
    const std::vector<uint8_t>& raw() const;
                      ^
hashing/include/hidl-hash/Hash.h:50:17: error: use of undeclared identifier 'uint8_t'
    std::vector<uint8_t> mHash;
                ^
4 errors generated.
In file included from hashing/Hash.cpp:17:
hashing/include/hidl-hash/Hash.h:25:30: error: use of undeclared identifier 'uint8_t'
    static const std::vector<uint8_t> kEmptyHash;
                             ^
hashing/include/hidl-hash/Hash.h:38:52: error: use of undeclared identifier 'uint8_t'
    static std::string hexString(const std::vector<uint8_t>& hash);
                                                   ^
hashing/include/hidl-hash/Hash.h:41:23: error: use of undeclared identifier 'uint8_t'
    const std::vector<uint8_t>& raw() const;
                      ^
hashing/include/hidl-hash/Hash.h:50:17: error: use of undeclared identifier 'uint8_t'
    std::vector<uint8_t> mHash;
                ^
hashing/Hash.cpp:68:19: error: out-of-line definition of 'hexString' does not match any declaration in 'android::Hash'
std::string Hash::hexString(const std::vector<uint8_t>& hash) {
                  ^~~~~~~~~
5 errors generated.
make[2]: *** [debian/hidl-gen.mk:82: build] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" --file debian/hidl-gen.mk returned exit code 2
make[1]: *** [debian/rules:16: debian/out/hidl-gen] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:19: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Android-tools-devel mailing list