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

Bug#984420: wvstreams: ftbfs with GCC-11



Package: src:wvstreams
Version: 4.6.1-15
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/wvstreams_4.6.1-15_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.

[...]
  187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
utils/wvbufferstore.cc: In member function ‘void MemOps::swap(void*, void*, size_t)’:
utils/wvbufferstore.cc:47:33: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   47 |         register unsigned char *t1 = (unsigned char*)target;
      |                                 ^~
utils/wvbufferstore.cc:48:33: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   48 |         register unsigned char *t2 = (unsigned char*)source;
      |                                 ^~
utils/wvbufferstore.cc:51:36: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   51 |             register unsigned char temp;
      |                                    ^~~~
./CXX -c utils/wvcont   
x86_64-linux-gnu-g++ -c -o utils/wvcont.o utils/wvcont.cc -MMD -MF utils/.wvcont.d -MP -MQ utils/wvcont.o -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/tcl8.3 -DDEBUG=0 -I./include -D_BSD_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUNSTABLE -fPIC -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fno-tree-dce -fno-optimize-sibling-calls -fPIC -DPIC -fno-tree-dce -fno-optimize-sibling-calls -Wall -Woverloaded-virtual
In file included from /usr/include/unistd.h:25,
                 from ./include/wvxplc.h:20,
                 from ./include/wvtypetraits.h:10,
                 from ./include/wvlinklist.h:10,
                 from ./include/wvcont.h:15,
                 from utils/wvcont.cc:8:
/usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
./CXX -c utils/wverror   
x86_64-linux-gnu-g++ -c -o utils/wverror.o utils/wverror.cc -MMD -MF utils/.wverror.d -MP -MQ utils/wverror.o -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/tcl8.3 -DDEBUG=0 -I./include -D_BSD_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUNSTABLE -fPIC -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fno-tree-dce -fno-optimize-sibling-calls -fPIC -DPIC -fno-tree-dce -fno-optimize-sibling-calls -Wall -Woverloaded-virtual
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/string.h:26,
                 from ./include/wvstring.h:18,
                 from ./include/wverror.h:10,
                 from utils/wverror.cc:7:
/usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
./CXX -c streams/wvfdstream   
x86_64-linux-gnu-g++ -c -o streams/wvfdstream.o streams/wvfdstream.cc -MMD -MF streams/.wvfdstream.d -MP -MQ streams/wvfdstream.o -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/tcl8.3 -DDEBUG=0 -I./include -D_BSD_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUNSTABLE -fPIC -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fno-tree-dce -fno-optimize-sibling-calls -fPIC -DPIC -fno-tree-dce -fno-optimize-sibling-calls -Wall -Woverloaded-virtual
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/string.h:26,
                 from ./include/wvstring.h:18,
                 from ./include/wvbuf.h:10,
                 from ./include/iwvstream.h:10,
                 from ./include/wvstream.h:10,
                 from ./include/wvfdstream.h:10,
                 from streams/wvfdstream.cc:7:
/usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
./CXX -c utils/wvfork   
x86_64-linux-gnu-g++ -c -o utils/wvfork.o utils/wvfork.cc -MMD -MF utils/.wvfork.d -MP -MQ utils/wvfork.o -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/tcl8.3 -DDEBUG=0 -I./include -D_BSD_SOURCE -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUNSTABLE -fPIC -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fno-tree-dce -fno-optimize-sibling-calls -fPIC -DPIC -fno-tree-dce -fno-optimize-sibling-calls -Wall -Woverloaded-virtual
In file included from /usr/include/fcntl.h:25,
                 from utils/wvfork.cc:20:
/usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
In file included from ./include/wvfork.h:18,
                 from utils/wvfork.cc:22:
./include/wvscatterhash.h: In member function ‘unsigned char* WvScatterHash<T, K, Accessor, Comparator>::Iter::getstatus()’:
./include/wvscatterhash.h:186:46: error: invalid use of non-static data member ‘WvScatterHashBase::xstatus’
  186 |         unsigned char *getstatus() { return &xstatus[index-1]; }
      |                                              ^~~~~~~
./include/wvscatterhash.h:90:13: note: declared here
   90 |     Status *xstatus;
      |             ^~~~~~~
utils/wvfork.cc: In function ‘pid_t wvfork_start(int*)’:
utils/wvfork.cc:105:13: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  105 |         read(waitpipe[0], &buf, 1);
      |         ~~~~^~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [wvrules.mk:163: utils/wvfork.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:63: build-arch-stamp] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: