[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1088400: libept: FTBFS



Package: src:libept
Version: 1.2.1+nmu1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

(note: I found about this while rebuilding packages still having dh-buildinfo in BD,
you might want to remove it as well)

--------------------------------------------------------------------------------
[...]
 debian/rules build
dh build --buildsystem=cmake --builddirectory=/<<PKGBUILDDIR>>/debian/build
   dh_update_autotools_config -O--buildsystem=cmake -O--builddirectory=/<<BUILDDIR>>/libept-1.2.1\+nmu1/debian/build
   dh_autoreconf -O--buildsystem=cmake -O--builddirectory=/<<BUILDDIR>>/libept-1.2.1\+nmu1/debian/build
   dh_auto_configure -O--buildsystem=cmake -O--builddirectory=/<<BUILDDIR>>/libept-1.2.1\+nmu1/debian/build
	cd debian/build && DEB_PYTHON_INSTALL_LAYOUT=deb PKG_CONFIG=/usr/bin/pkg-config cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu ../..
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in CMakeLists.txt:
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Found Doxygen: /usr/bin/doxygen (found version "1.9.8") found components: doxygen missing components: dot
-- Configuring done (0.4s)
-- Generating done (0.0s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
    CMAKE_FIND_USE_PACKAGE_REGISTRY
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LOCALSTATEDIR
    CMAKE_INSTALL_RUNSTATEDIR
    CMAKE_INSTALL_SYSCONFDIR
    FETCHCONTENT_FULLY_DISCONNECTED


-- Build files have been written to: /<<PKGBUILDDIR>>/debian/build
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build
	cd debian/build && make -j2 "INSTALL=install --strip-program=true" VERBOSE=1
make[2]: Entering directory '/<<PKGBUILDDIR>>/debian/build'
/usr/bin/cmake -S/<<PKGBUILDDIR>> -B/<<PKGBUILDDIR>>/debian/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /<<PKGBUILDDIR>>/debian/build/CMakeFiles /<<PKGBUILDDIR>>/debian/build//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[3]: Entering directory '/<<PKGBUILDDIR>>/debian/build'
make  -f ept/CMakeFiles/ept.dir/build.make ept/CMakeFiles/ept.dir/depend
make  -f ept/CMakeFiles/ept-static.dir/build.make ept/CMakeFiles/ept-static.dir/depend
make[4]: Entering directory '/<<PKGBUILDDIR>>/debian/build'
cd /<<PKGBUILDDIR>>/debian/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/ept /<<PKGBUILDDIR>>/debian/build /<<PKGBUILDDIR>>/debian/build/ept /<<PKGBUILDDIR>>/debian/build/ept/CMakeFiles/ept.dir/DependInfo.cmake "--color="
make[4]: Entering directory '/<<PKGBUILDDIR>>/debian/build'
cd /<<PKGBUILDDIR>>/debian/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/ept /<<PKGBUILDDIR>>/debian/build /<<PKGBUILDDIR>>/debian/build/ept /<<PKGBUILDDIR>>/debian/build/ept/CMakeFiles/ept-static.dir/DependInfo.cmake "--color="
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make  -f ept/CMakeFiles/ept-static.dir/build.make ept/CMakeFiles/ept-static.dir/build
make  -f ept/CMakeFiles/ept.dir/build.make ept/CMakeFiles/ept.dir/build
make[4]: Entering directory '/<<PKGBUILDDIR>>/debian/build'
make[4]: Entering directory '/<<PKGBUILDDIR>>/debian/build'
[  5%] Building CXX object ept/CMakeFiles/ept-static.dir/apt/apt.cc.o
[  5%] Building CXX object ept/CMakeFiles/ept.dir/apt/apt.cc.o
cd /<<PKGBUILDDIR>>/debian/build/ept && /usr/bin/c++ -Dept_EXPORTS -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/debian/build -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC   --std=c++11 -fexceptions -fPIC -fvisibility=default -MD -MT ept/CMakeFiles/ept.dir/apt/apt.cc.o -MF CMakeFiles/ept.dir/apt/apt.cc.o.d -o CMakeFiles/ept.dir/apt/apt.cc.o -c /<<PKGBUILDDIR>>/ept/apt/apt.cc
cd /<<PKGBUILDDIR>>/debian/build/ept && /usr/bin/c++  -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/debian/build -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   --std=c++11 -fexceptions -fPIC -fvisibility=default -MD -MT ept/CMakeFiles/ept-static.dir/apt/apt.cc.o -MF CMakeFiles/ept-static.dir/apt/apt.cc.o.d -o CMakeFiles/ept-static.dir/apt/apt.cc.o -c /<<PKGBUILDDIR>>/ept/apt/apt.cc
In file included from /usr/include/apt-pkg/error.h:46,
                 from /<<PKGBUILDDIR>>/ept/apt/apt.cc:25:
/usr/include/apt-pkg/macros.h:137:41: error: expected constructor, destructor, or type conversion before ‘;’ token
  137 | AptScopeWrapper(F) -> AptScopeWrapper<F>;
      |                                         ^
In file included from /usr/include/apt-pkg/error.h:46,
                 from /<<PKGBUILDDIR>>/ept/apt/apt.cc:25:
/usr/include/apt-pkg/macros.h:137:41: error: expected constructor, destructor, or type conversion before ‘;’ token
  137 | AptScopeWrapper(F) -> AptScopeWrapper<F>;
      |                                         ^
In file included from /usr/include/apt-pkg/pkgcache.h:85,
                 from /usr/include/apt-pkg/sourcelist.h:26,
                 from /<<PKGBUILDDIR>>/ept/apt/apt.cc:29:
/usr/include/apt-pkg/string_view.h:49:39: error: expected ‘)’ before ‘const’
   49 |     inline StringView(std::string_view const & str): data_(str.data()), size_(str.size()) {}
      |                      ~                ^~~~~~
      |                                       )
/usr/include/apt-pkg/string_view.h:149:31: error: expected type-specifier
  149 |     inline constexpr operator std::string_view() const { return {data_, size_}; }
      |                               ^~~
/usr/include/apt-pkg/string_view.h: In function ‘std::ostream& APT::operator<<(std::ostream&, const StringView&)’:
/usr/include/apt-pkg/string_view.h:154:35: error: ‘string_view’ in namespace ‘std’ does not name a type
  154 |     return os << static_cast<std::string_view>(sv);
      |                                   ^~~~~~~~~~~
/usr/include/apt-pkg/string_view.h:154:30: note: ‘std::string_view’ is only available from C++17 onwards
  154 |     return os << static_cast<std::string_view>(sv);
      |                              ^~~
/usr/include/apt-pkg/string_view.h: At global scope:
/usr/include/apt-pkg/string_view.h:165:29: error: declaration of ‘operator==’ as non-function
  165 | template<class = void> bool operator ==(std::string_view const &other, APT::StringView const &that) { return that.operator==(other); }
      |                             ^~~~~~~~
/usr/include/apt-pkg/string_view.h:165:46: error: ‘string_view’ is not a member of ‘std’
  165 | template<class = void> bool operator ==(std::string_view const &other, APT::StringView const &that) { return that.operator==(other); }
      |                                              ^~~~~~~~~~~
/usr/include/apt-pkg/string_view.h:165:46: note: ‘std::string_view’ is only available from C++17 onwards
/usr/include/apt-pkg/string_view.h:165:88: error: expected primary-expression before ‘const’
  165 | template<class = void> bool operator ==(std::string_view const &other, APT::StringView const &that) { return that.operator==(other); }
      |                                                                                        ^~~~~
/usr/include/apt-pkg/string_view.h:166:29: error: declaration of ‘operator!=’ as non-function
  166 | template<class = void> bool operator !=(std::string_view const &other, APT::StringView const &that) { return that.operator!=(other); }
      |                             ^~~~~~~~
/usr/include/apt-pkg/string_view.h:166:46: error: ‘string_view’ is not a member of ‘std’
  166 | template<class = void> bool operator !=(std::string_view const &other, APT::StringView const &that) { return that.operator!=(other); }
      |                                              ^~~~~~~~~~~
In file included from /usr/include/apt-pkg/pkgcache.h:85,
                 from /usr/include/apt-pkg/sourcelist.h:26,
                 from /<<PKGBUILDDIR>>/ept/apt/apt.cc:29:
/usr/include/apt-pkg/string_view.h:49:39: error: expected ‘)’ before ‘const’
   49 |     inline StringView(std::string_view const & str): data_(str.data()), size_(str.size()) {}
      |                      ~                ^~~~~~
      |                                       )
/usr/include/apt-pkg/string_view.h:166:46: note: ‘std::string_view’ is only available from C++17 onwards
/usr/include/apt-pkg/string_view.h:149:31: error: expected type-specifier
  149 |     inline constexpr operator std::string_view() const { return {data_, size_}; }
      |                               ^~~
/usr/include/apt-pkg/string_view.h:166:88: error: expected primary-expression before ‘const’
  166 | template<class = void> bool operator !=(std::string_view const &other, APT::StringView const &that) { return that.operator!=(other); }
      |                                                                                        ^~~~~
/usr/include/apt-pkg/string_view.h:167:75: error: ‘std::string_view’ has not been declared
  167 | template<class = void> bool operator !=(APT::StringView const &that, std::string_view const &other) { return that.operator!=(other); }
      |                                                                           ^~~~~~~~~~~
/usr/include/apt-pkg/string_view.h: In function ‘bool operator!=(const APT::StringView&, const int&)’:
/usr/include/apt-pkg/string_view.h:167:126: error: cannot convert ‘const int’ to ‘APT::StringView’
  167 | template<class = void> bool operator !=(APT::StringView const &that, std::string_view const &other) { return that.operator!=(other); }
      |                                                                                                                              ^~~~~
      |                                                                                                                              |
      |                                                                                                                              const int
/usr/include/apt-pkg/string_view.h:138:33: note:   initializing argument 1 of ‘bool APT::StringView::operator!=(APT::StringView) const’
  138 |     bool operator !=(StringView other) const { return !(*this == other); }
      |                      ~~~~~~~~~~~^~~~~
/usr/include/apt-pkg/string_view.h: In function ‘std::ostream& APT::operator<<(std::ostream&, const StringView&)’:
/usr/include/apt-pkg/string_view.h:154:35: error: ‘string_view’ in namespace ‘std’ does not name a type
  154 |     return os << static_cast<std::string_view>(sv);
      |                                   ^~~~~~~~~~~
/usr/include/apt-pkg/string_view.h:154:30: note: ‘std::string_view’ is only available from C++17 onwards
  154 |     return os << static_cast<std::string_view>(sv);
      |                              ^~~
/usr/include/apt-pkg/string_view.h: At global scope:
/usr/include/apt-pkg/string_view.h:165:29: error: declaration of ‘operator==’ as non-function
  165 | template<class = void> bool operator ==(std::string_view const &other, APT::StringView const &that) { return that.operator==(other); }
      |                             ^~~~~~~~
/usr/include/apt-pkg/string_view.h:165:46: error: ‘string_view’ is not a member of ‘std’
  165 | template<class = void> bool operator ==(std::string_view const &other, APT::StringView const &that) { return that.operator==(other); }
      |                                              ^~~~~~~~~~~
/usr/include/apt-pkg/string_view.h:165:46: note: ‘std::string_view’ is only available from C++17 onwards
/usr/include/apt-pkg/string_view.h:165:88: error: expected primary-expression before ‘const’
  165 | template<class = void> bool operator ==(std::string_view const &other, APT::StringView const &that) { return that.operator==(other); }
      |                                                                                        ^~~~~
/usr/include/apt-pkg/string_view.h:166:29: error: declaration of ‘operator!=’ as non-function
  166 | template<class = void> bool operator !=(std::string_view const &other, APT::StringView const &that) { return that.operator!=(other); }
      |                             ^~~~~~~~
/usr/include/apt-pkg/string_view.h:166:46: error: ‘string_view’ is not a member of ‘std’
  166 | template<class = void> bool operator !=(std::string_view const &other, APT::StringView const &that) { return that.operator!=(other); }
      |                                              ^~~~~~~~~~~
/usr/include/apt-pkg/string_view.h:166:46: note: ‘std::string_view’ is only available from C++17 onwards
/usr/include/apt-pkg/string_view.h:166:88: error: expected primary-expression before ‘const’
  166 | template<class = void> bool operator !=(std::string_view const &other, APT::StringView const &that) { return that.operator!=(other); }
      |                                                                                        ^~~~~
/usr/include/apt-pkg/string_view.h:167:75: error: ‘std::string_view’ has not been declared
  167 | template<class = void> bool operator !=(APT::StringView const &that, std::string_view const &other) { return that.operator!=(other); }
      |                                                                           ^~~~~~~~~~~
/usr/include/apt-pkg/string_view.h: In function ‘bool operator!=(const APT::StringView&, const int&)’:
/usr/include/apt-pkg/string_view.h:167:126: error: cannot convert ‘const int’ to ‘APT::StringView’
  167 | template<class = void> bool operator !=(APT::StringView const &that, std::string_view const &other) { return that.operator!=(other); }
      |                                                                                                                              ^~~~~
      |                                                                                                                              |
      |                                                                                                                              const int
/usr/include/apt-pkg/string_view.h:138:33: note:   initializing argument 1 of ‘bool APT::StringView::operator!=(APT::StringView) const’
  138 |     bool operator !=(StringView other) const { return !(*this == other); }
      |                      ~~~~~~~~~~~^~~~~
In file included from /<<PKGBUILDDIR>>/ept/apt/apt.cc:30:
/usr/include/apt-pkg/pkgcachegen.h: At global scope:
/usr/include/apt-pkg/pkgcachegen.h:43:54: error: ‘std::string_view’ has not been declared
   43 |    APT_HIDDEN map_stringitem_t WriteStringInMap(std::string_view String) { return WriteStringInMap(String.data(), String.size()); };
      |                                                      ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:117:51: error: ‘std::string_view’ has not been declared
  117 |    bool NewGroup(pkgCache::GrpIterator &Grp, std::string_view Name);
      |                                                   ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:118:53: error: ‘std::string_view’ has not been declared
  118 |    bool NewPackage(pkgCache::PkgIterator &Pkg, std::string_view Name, std::string_view Arch);
      |                                                     ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:118:76: error: ‘std::string_view’ has not been declared
  118 |    bool NewPackage(pkgCache::PkgIterator &Pkg, std::string_view Name, std::string_view Arch);
      |                                                                            ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:119:79: error: ‘std::string_view’ has not been declared
  119 |    map_pointer<pkgCache::Version> NewVersion(pkgCache::VerIterator &Ver, std::string_view VerStr,
      |                                                                               ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:122:113: error: ‘std::string_view’ has not been declared
  122 |    map_pointer<pkgCache::Description> NewDescription(pkgCache::DescIterator &Desc,const std::string &Lang, std::string_view md5sum,map_stringitem_t const idxmd5str);
      |                                                                                                                 ^~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/ept/apt/apt.cc:30:
/usr/include/apt-pkg/pkgcachegen.h: At global scope:
/usr/include/apt-pkg/pkgcachegen.h:43:54: error: ‘std::string_view’ has not been declared
   43 |    APT_HIDDEN map_stringitem_t WriteStringInMap(std::string_view String) { return WriteStringInMap(String.data(), String.size()); };
      |                                                      ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:136:73: error: ‘std::string_view’ has not been declared
  136 |    inline map_stringitem_t StoreString(enum StringType const type, std::string_view S) {return StoreString(type, S.data(),S.length());};
      |                                                                         ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:165:31: error: ‘std::string_view’ has not been declared
  165 |                          std::string_view Version, pkgCache::VerIterator* &OutVer);
      |                               ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:172:40: error: ‘std::string_view’ has not been declared
  172 |          std::string const &lang, std::string_view CurMd5, map_stringitem_t &md5idx);
      |                                        ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h: In member function ‘map_stringitem_t pkgCacheGenerator::WriteStringInMap(int)’:
/usr/include/apt-pkg/pkgcachegen.h:43:107: error: request for member ‘data’ in ‘String’, which is of non-class type ‘int’
   43 |    APT_HIDDEN map_stringitem_t WriteStringInMap(std::string_view String) { return WriteStringInMap(String.data(), String.size()); };
      |                                                                                                           ^~~~
/usr/include/apt-pkg/pkgcachegen.h:43:122: error: request for member ‘size’ in ‘String’, which is of non-class type ‘int’
   43 |    APT_HIDDEN map_stringitem_t WriteStringInMap(std::string_view String) { return WriteStringInMap(String.data(), String.size()); };
      |                                                                                                                          ^~~~
/usr/include/apt-pkg/pkgcachegen.h: In member function ‘map_stringitem_t pkgCacheGenerator::StoreString(StringType, int)’:
/usr/include/apt-pkg/pkgcachegen.h:136:116: error: request for member ‘data’ in ‘S’, which is of non-class type ‘int’
  136 |    inline map_stringitem_t StoreString(enum StringType const type, std::string_view S) {return StoreString(type, S.data(),S.length());};
      |                                                                                                                    ^~~~
/usr/include/apt-pkg/pkgcachegen.h:136:125: error: request for member ‘length’ in ‘S’, which is of non-class type ‘int’
  136 |    inline map_stringitem_t StoreString(enum StringType const type, std::string_view S) {return StoreString(type, S.data(),S.length());};
      |                                                                                                                             ^~~~~~
/usr/include/apt-pkg/pkgcachegen.h: At global scope:
/usr/include/apt-pkg/pkgcachegen.h:188:58: error: ‘std::string_view’ has not been declared
  188 |    inline bool NewGroup(pkgCache::GrpIterator &Grp, std::string_view Name) { return Owner->NewGroup(Grp, Name); }
      |                                                          ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:190:87: error: ‘std::string_view’ has not been declared
  190 |    inline map_stringitem_t StoreString(pkgCacheGenerator::StringType const type, std::string_view S) {return Owner->StoreString(type, S);};
      |                                                                                       ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:191:45: error: ‘std::string_view’ has not been declared
  191 |    inline map_stringitem_t WriteString(std::string_view S) {return Owner->WriteStringInMap(S.data(), S.size());};
      |                                             ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:194:52: error: ‘std::string_view’ has not been declared
  194 |    bool NewDepends(pkgCache::VerIterator &Ver,std::string_view Package, std::string_view Arch,
      |                                                    ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:194:78: error: ‘std::string_view’ has not been declared
  194 |    bool NewDepends(pkgCache::VerIterator &Ver,std::string_view Package, std::string_view Arch,
      |                                                                              ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:195:25: error: ‘std::string_view’ has not been declared
  195 |                    std::string_view Version,uint8_t const Op,
      |                         ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:117:51: error: ‘std::string_view’ has not been declared
  117 |    bool NewGroup(pkgCache::GrpIterator &Grp, std::string_view Name);
      |                                                   ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:197:53: error: ‘std::string_view’ has not been declared
  197 |    bool NewProvides(pkgCache::VerIterator &Ver,std::string_view PkgName,
      |                                                     ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:198:26: error: ‘std::string_view’ has not been declared
  198 |                     std::string_view PkgArch, std::string_view Version,
      |                          ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:198:52: error: ‘std::string_view’ has not been declared
  198 |                     std::string_view PkgArch, std::string_view Version,
      |                                                    ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:200:61: error: ‘std::string_view’ has not been declared
  200 |    bool NewProvidesAllArch(pkgCache::VerIterator &Ver, std::string_view Package,
      |                                                             ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:201:33: error: ‘std::string_view’ has not been declared
  201 |                            std::string_view Version, uint8_t const Flags);
      |                                 ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:207:17: error: ‘string_view’ in namespace ‘std’ does not name a type
  207 |    virtual std::string_view Architecture() = 0;
      |                 ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:207:12: note: ‘std::string_view’ is only available from C++17 onwards
  207 |    virtual std::string_view Architecture() = 0;
      |            ^~~
/usr/include/apt-pkg/pkgcachegen.h:208:17: error: ‘string_view’ in namespace ‘std’ does not name a type
  208 |    virtual std::string_view Version() = 0;
      |                 ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:208:12: note: ‘std::string_view’ is only available from C++17 onwards
  208 |    virtual std::string_view Version() = 0;
      |            ^~~
/usr/include/apt-pkg/pkgcachegen.h:211:17: error: ‘string_view’ in namespace ‘std’ does not name a type
  211 |    virtual std::string_view Description_md5() = 0;
      |                 ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:211:12: note: ‘std::string_view’ is only available from C++17 onwards
  211 |    virtual std::string_view Description_md5() = 0;
      |            ^~~
/usr/include/apt-pkg/pkgcachegen.h: In member function ‘map_stringitem_t pkgCacheListParser::WriteString(int)’:
/usr/include/apt-pkg/pkgcachegen.h:191:94: error: request for member ‘data’ in ‘S’, which is of non-class type ‘int’
  191 |    inline map_stringitem_t WriteString(std::string_view S) {return Owner->WriteStringInMap(S.data(), S.size());};
      |                                                                                              ^~~~
/usr/include/apt-pkg/pkgcachegen.h:191:104: error: request for member ‘size’ in ‘S’, which is of non-class type ‘int’
  191 |    inline map_stringitem_t WriteString(std::string_view S) {return Owner->WriteStringInMap(S.data(), S.size());};
      |                                                                                                        ^~~~
/usr/include/apt-pkg/pkgcachegen.h:118:53: error: ‘std::string_view’ has not been declared
  118 |    bool NewPackage(pkgCache::PkgIterator &Pkg, std::string_view Name, std::string_view Arch);
      |                                                     ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:118:76: error: ‘std::string_view’ has not been declared
  118 |    bool NewPackage(pkgCache::PkgIterator &Pkg, std::string_view Name, std::string_view Arch);
      |                                                                            ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:119:79: error: ‘std::string_view’ has not been declared
  119 |    map_pointer<pkgCache::Version> NewVersion(pkgCache::VerIterator &Ver, std::string_view VerStr,
      |                                                                               ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:122:113: error: ‘std::string_view’ has not been declared
  122 |    map_pointer<pkgCache::Description> NewDescription(pkgCache::DescIterator &Desc,const std::string &Lang, std::string_view md5sum,map_stringitem_t const idxmd5str);
      |                                                                                                                 ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:136:73: error: ‘std::string_view’ has not been declared
  136 |    inline map_stringitem_t StoreString(enum StringType const type, std::string_view S) {return StoreString(type, S.data(),S.length());};
      |                                                                         ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:165:31: error: ‘std::string_view’ has not been declared
  165 |                          std::string_view Version, pkgCache::VerIterator* &OutVer);
      |                               ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:172:40: error: ‘std::string_view’ has not been declared
  172 |          std::string const &lang, std::string_view CurMd5, map_stringitem_t &md5idx);
      |                                        ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h: In member function ‘map_stringitem_t pkgCacheGenerator::WriteStringInMap(int)’:
/usr/include/apt-pkg/pkgcachegen.h:43:107: error: request for member ‘data’ in ‘String’, which is of non-class type ‘int’
   43 |    APT_HIDDEN map_stringitem_t WriteStringInMap(std::string_view String) { return WriteStringInMap(String.data(), String.size()); };
      |                                                                                                           ^~~~
/usr/include/apt-pkg/pkgcachegen.h:43:122: error: request for member ‘size’ in ‘String’, which is of non-class type ‘int’
   43 |    APT_HIDDEN map_stringitem_t WriteStringInMap(std::string_view String) { return WriteStringInMap(String.data(), String.size()); };
      |                                                                                                                          ^~~~
/usr/include/apt-pkg/pkgcachegen.h: In member function ‘map_stringitem_t pkgCacheGenerator::StoreString(StringType, int)’:
/usr/include/apt-pkg/pkgcachegen.h:136:116: error: request for member ‘data’ in ‘S’, which is of non-class type ‘int’
  136 |    inline map_stringitem_t StoreString(enum StringType const type, std::string_view S) {return StoreString(type, S.data(),S.length());};
      |                                                                                                                    ^~~~
/usr/include/apt-pkg/pkgcachegen.h:136:125: error: request for member ‘length’ in ‘S’, which is of non-class type ‘int’
  136 |    inline map_stringitem_t StoreString(enum StringType const type, std::string_view S) {return StoreString(type, S.data(),S.length());};
      |                                                                                                                             ^~~~~~
/usr/include/apt-pkg/pkgcachegen.h: At global scope:
/usr/include/apt-pkg/pkgcachegen.h:188:58: error: ‘std::string_view’ has not been declared
  188 |    inline bool NewGroup(pkgCache::GrpIterator &Grp, std::string_view Name) { return Owner->NewGroup(Grp, Name); }
      |                                                          ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:190:87: error: ‘std::string_view’ has not been declared
  190 |    inline map_stringitem_t StoreString(pkgCacheGenerator::StringType const type, std::string_view S) {return Owner->StoreString(type, S);};
      |                                                                                       ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:191:45: error: ‘std::string_view’ has not been declared
  191 |    inline map_stringitem_t WriteString(std::string_view S) {return Owner->WriteStringInMap(S.data(), S.size());};
      |                                             ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:194:52: error: ‘std::string_view’ has not been declared
  194 |    bool NewDepends(pkgCache::VerIterator &Ver,std::string_view Package, std::string_view Arch,
      |                                                    ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:194:78: error: ‘std::string_view’ has not been declared
  194 |    bool NewDepends(pkgCache::VerIterator &Ver,std::string_view Package, std::string_view Arch,
      |                                                                              ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:195:25: error: ‘std::string_view’ has not been declared
  195 |                    std::string_view Version,uint8_t const Op,
      |                         ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:197:53: error: ‘std::string_view’ has not been declared
  197 |    bool NewProvides(pkgCache::VerIterator &Ver,std::string_view PkgName,
      |                                                     ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:198:26: error: ‘std::string_view’ has not been declared
  198 |                     std::string_view PkgArch, std::string_view Version,
      |                          ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:198:52: error: ‘std::string_view’ has not been declared
  198 |                     std::string_view PkgArch, std::string_view Version,
      |                                                    ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:200:61: error: ‘std::string_view’ has not been declared
  200 |    bool NewProvidesAllArch(pkgCache::VerIterator &Ver, std::string_view Package,
      |                                                             ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:201:33: error: ‘std::string_view’ has not been declared
  201 |                            std::string_view Version, uint8_t const Flags);
      |                                 ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:207:17: error: ‘string_view’ in namespace ‘std’ does not name a type
  207 |    virtual std::string_view Architecture() = 0;
      |                 ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:207:12: note: ‘std::string_view’ is only available from C++17 onwards
  207 |    virtual std::string_view Architecture() = 0;
      |            ^~~
/usr/include/apt-pkg/pkgcachegen.h:208:17: error: ‘string_view’ in namespace ‘std’ does not name a type
  208 |    virtual std::string_view Version() = 0;
      |                 ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:208:12: note: ‘std::string_view’ is only available from C++17 onwards
  208 |    virtual std::string_view Version() = 0;
      |            ^~~
/usr/include/apt-pkg/pkgcachegen.h:211:17: error: ‘string_view’ in namespace ‘std’ does not name a type
  211 |    virtual std::string_view Description_md5() = 0;
      |                 ^~~~~~~~~~~
/usr/include/apt-pkg/pkgcachegen.h:211:12: note: ‘std::string_view’ is only available from C++17 onwards
  211 |    virtual std::string_view Description_md5() = 0;
      |            ^~~
/usr/include/apt-pkg/pkgcachegen.h: In member function ‘map_stringitem_t pkgCacheListParser::WriteString(int)’:
/usr/include/apt-pkg/pkgcachegen.h:191:94: error: request for member ‘data’ in ‘S’, which is of non-class type ‘int’
  191 |    inline map_stringitem_t WriteString(std::string_view S) {return Owner->WriteStringInMap(S.data(), S.size());};
      |                                                                                              ^~~~
/usr/include/apt-pkg/pkgcachegen.h:191:104: error: request for member ‘size’ in ‘S’, which is of non-class type ‘int’
  191 |    inline map_stringitem_t WriteString(std::string_view S) {return Owner->WriteStringInMap(S.data(), S.size());};
      |                                                                                                        ^~~~
make[4]: *** [ept/CMakeFiles/ept-static.dir/build.make:82: ept/CMakeFiles/ept-static.dir/apt/apt.cc.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[3]: *** [CMakeFiles/Makefile2:225: ept/CMakeFiles/ept-static.dir/all] Error 2
make[3]: *** Waiting for unfinished jobs....
make[4]: *** [ept/CMakeFiles/ept.dir/build.make:82: ept/CMakeFiles/ept.dir/apt/apt.cc.o] Error 1
make[4]: *** Waiting for unfinished jobs....
[  7%] Building CXX object ept/CMakeFiles/ept.dir/apt/packagerecord.cc.o
cd /<<PKGBUILDDIR>>/debian/build/ept && /usr/bin/c++ -Dept_EXPORTS -I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/debian/build -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC   --std=c++11 -fexceptions -fPIC -fvisibility=default -MD -MT ept/CMakeFiles/ept.dir/apt/packagerecord.cc.o -MF CMakeFiles/ept.dir/apt/packagerecord.cc.o.d -o CMakeFiles/ept.dir/apt/packagerecord.cc.o -c /<<PKGBUILDDIR>>/ept/apt/packagerecord.cc
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[3]: *** [CMakeFiles/Makefile2:194: ept/CMakeFiles/ept.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[2]: *** [Makefile:139: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
dh_auto_build: error: cd debian/build && make -j2 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make[1]: *** [debian/rules:13: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: build] Error 2
dpkg-buildpackage: error: debian/rules build 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/202411/

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.

(Apologies if you receive this bug by duplicate, this is my second
try because apparently the BTS has some aggressive antispam filters)

Thanks.


Reply to: