Bug#984045: dymo-cups-drivers: ftbfs with GCC-11
Package: src:dymo-cups-drivers
Version: 1.4.0-9
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/dymo-cups-drivers_1.4.0-9_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.
[...]
| ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
from /usr/include/c++/11/deque:60,
from /usr/include/cppunit/Message.h:11,
from /usr/include/cppunit/Exception.h:5,
from /usr/include/cppunit/TestCaller.h:4,
from /usr/include/cppunit/extensions/HelperMacros.h:9,
from TestLabelWriterLanguageMonitor.h:24,
from TestLabelWriterLanguageMonitor.cpp:21:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
404 | enum class byte : unsigned char;
| ^~~~
In file included from ../../common/PrinterDriver.h:24,
from ../LabelWriterDriver.h:25,
from TestLabelWriterLanguageMonitor.h:25,
from TestLabelWriterLanguageMonitor.cpp:21:
../../common/CommonTypedefs.h:31:29: note: ‘typedef unsigned char DymoPrinterDriver::byte’
31 | typedef unsigned char byte;
| ^~~~
TestLabelWriterLanguageMonitor.cpp:335:3: error: reference to ‘byte’ is ambiguous
335 | byte OutputPrinterData2[] =
| ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
from /usr/include/c++/11/deque:60,
from /usr/include/cppunit/Message.h:11,
from /usr/include/cppunit/Exception.h:5,
from /usr/include/cppunit/TestCaller.h:4,
from /usr/include/cppunit/extensions/HelperMacros.h:9,
from TestLabelWriterLanguageMonitor.h:24,
from TestLabelWriterLanguageMonitor.cpp:21:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
404 | enum class byte : unsigned char;
| ^~~~
In file included from ../../common/PrinterDriver.h:24,
from ../LabelWriterDriver.h:25,
from TestLabelWriterLanguageMonitor.h:25,
from TestLabelWriterLanguageMonitor.cpp:21:
../../common/CommonTypedefs.h:31:29: note: ‘typedef unsigned char DymoPrinterDriver::byte’
31 | typedef unsigned char byte;
| ^~~~
TestLabelWriterLanguageMonitor.cpp:340:25: error: ‘PrinterData’ was not declared in this scope; did you mean ‘PrinterData2’?
340 | buffer_t PrinterData2(PrinterData, PrinterData + sizeof(PrinterData));
| ^~~~~~~~~~~
| PrinterData2
In file included from /usr/include/cppunit/TestCase.h:6,
from /usr/include/cppunit/TestCaller.h:5,
from /usr/include/cppunit/extensions/HelperMacros.h:9,
from TestLabelWriterLanguageMonitor.h:24,
from TestLabelWriterLanguageMonitor.cpp:21:
TestLabelWriterLanguageMonitor.cpp:352:14: error: ‘OutputPrinterData1’ was not declared in this scope
352 | buffer_t(OutputPrinterData1, OutputPrinterData1 + sizeof(OutputPrinterData1)),
| ^~~~~~~~~~~~~~~~~~
TestLabelWriterLanguageMonitor.cpp:366:14: error: ‘OutputPrinterData2’ was not declared in this scope; did you mean ‘PrinterData2’?
366 | buffer_t(OutputPrinterData2, OutputPrinterData2 + sizeof(OutputPrinterData2)),
| ^~~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:610: TestLabelWriterDriver.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [Makefile:610: TestLabelWriterLanguageMonitor.o] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/src/lw/tests'
make[4]: *** [Makefile:966: check-am] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/lw/tests'
make[3]: *** [Makefile:570: check-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src/lw'
make[2]: *** [Makefile:355: check-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:366: check-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j4 check VERBOSE=1 returned exit code 2
make: *** [debian/rules:4: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: