[This bug is targeted to the upcoming bookworm 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-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.
The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/lyx_2.3.6-1_unstable_gcc12.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.
[...]
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o KeySequence.o ../../src/KeySequence.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o Language.o ../../src/Language.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o LaTeX.o ../../src/LaTeX.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o LaTeXFeatures.o ../../src/LaTeXFeatures.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o LaTeXPackages.o ../../src/LaTeXPackages.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o LayoutFile.o ../../src/LayoutFile.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o LayoutModuleList.o ../../src/LayoutModuleList.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o Length.o ../../src/Length.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o lengthcommon.o ../../src/lengthcommon.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o Lexer.o ../../src/Lexer.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o LyX.o ../../src/LyX.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o LyXAction.o ../../src/LyXAction.cpp
../../src/Lexer.cpp:139:18: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
139 | : public binary_function<LexerKeyword, LexerKeyword, bool> {
| ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/12/string:48,
from ../../src/support/strfwd.h:42,
from ../../src/Lexer.h:20,
from ../../src/Lexer.cpp:16:
/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
131 | struct binary_function
| ^~~~~~~~~~~~~~~
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o lyxfind.o ../../src/lyxfind.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o LyXRC.o ../../src/LyXRC.cpp
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o LyXVC.o ../../src/LyXVC.cpp
../../src/lyxfind.cpp:73:28: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
73 | class MatchString : public binary_function<Paragraph, pos_type, int>
| ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/12/string:48,
from ../../src/support/strfwd.h:42,
from ../../src/lyxfind.h:19,
from ../../src/lyxfind.cpp:17:
/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
131 | struct binary_function
| ^~~~~~~~~~~~~~~
../../src/lyxfind.cpp: In function ‘bool lyx::{anonymous}::regex_replace(const std::string&, std::string&, const std::string&, const std::string&)’:
../../src/lyxfind.cpp:677:9: error: ‘ostream_iterator’ was not declared in this scope
677 | ostream_iterator<char, char> it(oss);
| ^~~~~~~~~~~~~~~~
../../src/lyxfind.cpp:55:1: note: ‘std::ostream_iterator’ is defined in header ‘<iterator>’; did you forget to ‘#include <iterator>’?
54 | #include "support/regex.h"
+++ |+#include <iterator>
55 |
../../src/lyxfind.cpp:677:26: error: expected primary-expression before ‘char’
677 | ostream_iterator<char, char> it(oss);
| ^~~~
../../src/lyxfind.cpp:678:28: error: ‘it’ was not declared in this scope; did you mean ‘t’?
678 | lyx::regex_replace(it, s.begin(), s.end(), e, replacestr);
| ^~
| t
../../src/LyXRC.cpp: In function ‘void lyx::actOnUpdatedPrefs(const LyXRC&, const LyXRC&)’:
../../src/LyXRC.cpp:3043:42: warning: comparison between two arrays [-Warray-compare]
3043 | || lyxrc_orig.font_sizes != lyxrc_new.font_sizes
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
../../src/LyXRC.cpp:3043:42: note: use unary ‘+’ which decays operands to pointers or ‘&‘component_ref’ not supported by dump_decl<declaration error>[0] != &‘component_ref’ not supported by dump_decl<declaration error>[0]’ to compare the addresses
g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -Wall -Wextra -I../../src -pthread -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -O2 -std=c++14 -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c -o MetricsInfo.o ../../src/MetricsInfo.cpp
make[5]: *** [Makefile:2581: lyxfind.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src'
make[4]: *** [Makefile:2654: all-recursive] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src'
make[3]: *** [Makefile:1884: all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src'
make[2]: *** [Makefile:578: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:473: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2