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

Bug#984002: boxbackup: ftbfs with GCC-11



Package: src:boxbackup
Version: 0.13~~git20200326.g8e8b63c-1
Severity: normal
Tags: sid bookworm
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye 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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/boxbackup_0.13~~git20200326.g8e8b63c-1_unstable_gcc11.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 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-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
lib/win32
lib/common
lib/raidfile
lib/crypto
lib/server
lib/compress
lib/intercept
test/common
test/crypto
test/compress
test/raidfile
test/basicserver
lib/backupstore
lib/backupclient
lib/bbackupd
lib/bbackupquery
lib/bbstored
bin/bbackupobjdump
bin/bbstored
bin/bbstoreaccounts
bin/bbackupd
bin/bbackupquery
bin/bbackupctl
test/backupstore
test/backupstorefix
test/backupstorepatch
test/backupdiff
test/bbackupd
bin/s3simulator
test/s3store
lib/httpserver
test/httpserver

Type 'cd <module_dir>; make' to build a module

A summary of the build configuration is below. Box Backup will function
without these features, but will work better where they are present. Refer
to the documentation for more information on each feature.

Regular expressions: yes
Large files:         yes
Berkeley DB:         yes
Readline:            yes
Extended attributes: yes
Debugger:            neither GDB nor LLDB detected!
touch configure-stamp
dh_testdir
/usr/bin/make V=1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
g++ -g  -Wall -Werror=return-type -Werror=delete-non-virtual-dtor -Werror=delete-incomplete -Wno-deprecated-declarations -DBOX_VERSION="\"0.13~~git20200326.g8e8b63c-1\"" -DBOX_RELEASE_BUILD -O2 -Ilib/bbackupd -Ilib/backupclient -Ilib/backupstore -Ilib/raidfile -Ilib/compress -Ilib/httpserver -Ilib/server -Iqdbm -Ilib/crypto -Ilib/common -Ilib/win32 -DBOX_MODULE="\"bin/bbackupd\"" -c bin/bbackupd/bbackupd.cpp -o release/bin/bbackupd/bbackupd.o
g++ -g  -Wall -Werror=return-type -Werror=delete-non-virtual-dtor -Werror=delete-incomplete -Wno-deprecated-declarations -DBOX_VERSION="\"0.13~~git20200326.g8e8b63c-1\"" -DBOX_RELEASE_BUILD -O2 -Ilib/backupclient -Ilib/backupstore -Ilib/raidfile -Ilib/compress -Ilib/httpserver -Ilib/server -Iqdbm -Ilib/crypto -Ilib/common -Ilib/win32 -DBOX_MODULE="\"lib/bbackupd\"" -c lib/bbackupd/BackupClientContext.cpp -o release/lib/bbackupd/BackupClientContext.o
g++ -g  -Wall -Werror=return-type -Werror=delete-non-virtual-dtor -Werror=delete-incomplete -Wno-deprecated-declarations -DBOX_VERSION="\"0.13~~git20200326.g8e8b63c-1\"" -DBOX_RELEASE_BUILD -O2 -Ilib/backupclient -Ilib/backupstore -Ilib/raidfile -Ilib/compress -Ilib/httpserver -Ilib/server -Iqdbm -Ilib/crypto -Ilib/common -Ilib/win32 -DBOX_MODULE="\"lib/bbackupd\"" -c lib/bbackupd/BackupClientDeleteList.cpp -o release/lib/bbackupd/BackupClientDeleteList.o
g++ -g  -Wall -Werror=return-type -Werror=delete-non-virtual-dtor -Werror=delete-incomplete -Wno-deprecated-declarations -DBOX_VERSION="\"0.13~~git20200326.g8e8b63c-1\"" -DBOX_RELEASE_BUILD -O2 -Ilib/backupclient -Ilib/backupstore -Ilib/raidfile -Ilib/compress -Ilib/httpserver -Ilib/server -Iqdbm -Ilib/crypto -Ilib/common -Ilib/win32 -DBOX_MODULE="\"lib/bbackupd\"" -c lib/bbackupd/BackupClientDirectoryRecord.cpp -o release/lib/bbackupd/BackupClientDirectoryRecord.o
g++ -g  -Wall -Werror=return-type -Werror=delete-non-virtual-dtor -Werror=delete-incomplete -Wno-deprecated-declarations -DBOX_VERSION="\"0.13~~git20200326.g8e8b63c-1\"" -DBOX_RELEASE_BUILD -O2 -Ilib/backupclient -Ilib/backupstore -Ilib/raidfile -Ilib/compress -Ilib/httpserver -Ilib/server -Iqdbm -Ilib/crypto -Ilib/common -Ilib/win32 -DBOX_MODULE="\"lib/bbackupd\"" -c lib/bbackupd/BackupClientInodeToIDMap.cpp -o release/lib/bbackupd/BackupClientInodeToIDMap.o
g++ -g  -Wall -Werror=return-type -Werror=delete-non-virtual-dtor -Werror=delete-incomplete -Wno-deprecated-declarations -DBOX_VERSION="\"0.13~~git20200326.g8e8b63c-1\"" -DBOX_RELEASE_BUILD -O2 -Ilib/backupclient -Ilib/backupstore -Ilib/raidfile -Ilib/compress -Ilib/httpserver -Ilib/server -Iqdbm -Ilib/crypto -Ilib/common -Ilib/win32 -DBOX_MODULE="\"lib/bbackupd\"" -c lib/bbackupd/BackupDaemon.cpp -o release/lib/bbackupd/BackupDaemon.o
In file included from /usr/include/c++/11/set:60,
                 from lib/bbackupd/BackupDaemon.cpp:43:
/usr/include/c++/11/bits/stl_tree.h: In instantiation of ‘static const _Key& std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_S_key(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type) [with _Key = std::__cxx11::basic_string<char>; _Val = std::__cxx11::basic_string<char>; _KeyOfValue = std::_Identity<std::__cxx11::basic_string<char> >; _Compare = mntLenCompare; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Const_Link_type = const std::_Rb_tree_node<std::__cxx11::basic_string<char> >*]’:
/usr/include/c++/11/bits/stl_tree.h:2069:47:   required from ‘std::pair<std::_Rb_tree_node_base*, std::_Rb_tree_node_base*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_unique_pos(const key_type&) [with _Key = std::__cxx11::basic_string<char>; _Val = std::__cxx11::basic_string<char>; _KeyOfValue = std::_Identity<std::__cxx11::basic_string<char> >; _Compare = mntLenCompare; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::key_type = std::__cxx11::basic_string<char>]’
/usr/include/c++/11/bits/stl_tree.h:2122:4:   required from ‘std::pair<std::_Rb_tree_iterator<_Val>, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique(_Arg&&) [with _Arg = std::__cxx11::basic_string<char>; _Key = std::__cxx11::basic_string<char>; _Val = std::__cxx11::basic_string<char>; _KeyOfValue = std::_Identity<std::__cxx11::basic_string<char> >; _Compare = mntLenCompare; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]’
/usr/include/c++/11/bits/stl_set.h:521:25:   required from ‘std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = std::__cxx11::basic_string<char>; _Compare = mntLenCompare; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, std::_Identity<std::__cxx11::basic_string<char> >, mntLenCompare, std::allocator<std::__cxx11::basic_string<char> > >::const_iterator; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other = std::allocator<std::__cxx11::basic_string<char> >; typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<
 _Key> = __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::rebind<std::__cxx11::basic_string<char> >; typename _Allocator::value_type = std::__cxx11::basic_string<char>; std::set<_Key, _Compare, _Alloc>::value_type = std::__cxx11::basic_string<char>]’
lib/bbackupd/BackupDaemon.cpp:2421:50:   required from here
/usr/include/c++/11/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const
  770 |               is_invocable_v<const _Compare&, const _Key&, const _Key&>,
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/stl_tree.h:770:15: note: ‘std::is_invocable_v<const mntLenCompare&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>’ evaluates to false
make[1]: *** [Makefile:1270: release/lib/bbackupd/BackupDaemon.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:33: build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: