Source: webcamoid
Version: 8.6.1+dfsg-2.1
Severity: normal

Dear Maintainer,

The build fails with following error:

g++ -c -pipe -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=gnu++11 
-Wall -Wextra -DCOMMONS_APPNAME="\"libAvKys\"" -DCOMMONS_TARGET="\"avkys\"" 
-DCOMMONS_VER_MAJ="\"8\"" -DCOMMONS_VERSION="\"8.6.1\"" -DPREFIX="\"/usr\"" 
-DEXECPREFIX="\"/usr\"" -DBINDIR="\"/usr/bin\"" -DSBINDIR="\"/usr/sbin\"" 
-DLIBEXECDIR="\"/usr/libexec\"" -DDATAROOTDIR="\"/usr/share\"" 
-DDATDIR="\"/usr/share/avkys\"" -DSYSCONFDIR="\"/usr/etc\"" 
-DSHAREDSTATEDIR="\"/usr/com\"" -DLOCALSTATEDIR="\"/usr/var\"" 
-DINCLUDEDIR="\"/usr/include\"" -DDOCDIR="\"/usr/share/doc/avkys\"" 
-DINFODIR="\"/usr/share/info\"" -DHTMLDIR="\"/usr/share/doc/avkys/html\"" 
-DDVIDIR="\"/usr/share/doc/avkys/dvi\"" -DPDFDIR="\"/usr/share/doc/avkys/pdf\"" 
-DPSDIR="\"/usr/share/doc/avkys/ps\"" -DLIBDIR="\"/usr/lib/hppa-linux-gnu\"" 
-DLOCALEDIR="\"/usr/share/webcamoid/locale\"" -DMANDIR="\"/usr/share/man\"" 
-DLICENSEDIR="\"/usr/share/licenses/avkys\"" -DLOCALDIR="\"/usr/local\"" 
-DLOCALLIBDIR="\"/usr/local/lib\"" 
-DINSTALLQMLDIR="\"/usr/lib/hppa-linux-gnu/qt5/qml\"" 
-DINSTALLPLUGINSDIR="\"/usr/lib/hppa-linux-gnu/avkys\"" 
-DQT_DEPRECATED_WARNINGS -DQT_NAMESPACE=AkVCam -I. 
-I/usr/lib/hppa-linux-gnu/qt5/mkspecs/linux-g++ -o 
release/Qt5.15.2/gpp/hppa/obj/videoformat.o src/image/videoformat.cpp
src/image/videoformat.cpp: In member function ‘AkVCam::VideoFormat 
AkVCam::VideoFormat::nearest(const std::vector<AkVCam::VideoFormat>&) const’:
src/image/videoformat.cpp:289:19: error: ‘numeric_limits’ is not a member of 
‘std’
  289 |     auto q = std::numeric_limits<uint64_t>::max();
      |                   ^~~~~~~~~~~~~~
src/image/videoformat.cpp:289:42: error: expected primary-expression before ‘>’ 
token
  289 |     auto q = std::numeric_limits<uint64_t>::max();
      |                                          ^
src/image/videoformat.cpp:289:45: error: ‘::max’ has not been declared; did you 
mean ‘std::max’?
  289 |     auto q = std::numeric_limits<uint64_t>::max();
      |                                             ^~~
      |                                             std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from src/image/videoformat.cpp:21:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~

I believe this is likely caused by the following header dependency
changes in gcc-11:

Some C++ Standard Library headers have been changed to no longer include other 
headers that they do need to depend on. As such, C++ programs that used 
standard library components without including the right headers will no longer 
compile.

The following headers are used less widely in libstdc++ and may need to be 
included explicitly when compiled with GCC 11:

    <limits> (for std::numeric_limits)
    <memory> (for std::unique_ptr, std::shared_ptr etc.)
    <utility> (for std::pair, std::tuple_size, std::index_sequence etc.)
    <thread> (for members of namespace std::this_thread.)

See for more details:
https://www.gnu.org/software/gcc/gcc-11/porting_to.html

Regards,
Dave Anglin

-- System Information:
Debian Release: bookworm/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 5.14.21+ (SMP w/4 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to