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

Bug#984159: gnubiff: ftbfs with GCC-11



Package: src:gnubiff
Version: 2.2.17-3
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/gnubiff_2.2.17-3_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.

[...]
  273 | GMutex *        g_mutex_new             (void);
      |                 ^~~~~~~~~~~
mailbox.cc:64:39: warning: ‘GMutex* g_mutex_new()’ is deprecated [-Wdeprecated-declarations]
   64 |         monitor_mutex_ = g_mutex_new ();
      |                                       ^
In file included from /usr/include/glib-2.0/glib.h:111,
                 from support.h:39,
                 from mailbox.cc:33:
/usr/include/glib-2.0/glib/deprecated/gthread.h:273:17: note: declared here
  273 | GMutex *        g_mutex_new             (void);
      |                 ^~~~~~~~~~~
mailbox.cc: In copy constructor ‘Mailbox::Mailbox(const Mailbox&)’:
mailbox.cc:83:31: warning: ‘GMutex* g_mutex_new()’ is deprecated [-Wdeprecated-declarations]
   83 |         mutex_ = g_mutex_new ();
      |                               ^
In file included from /usr/include/glib-2.0/glib.h:111,
                 from support.h:39,
                 from mailbox.cc:33:
/usr/include/glib-2.0/glib/deprecated/gthread.h:273:17: note: declared here
  273 | GMutex *        g_mutex_new             (void);
      |                 ^~~~~~~~~~~
mailbox.cc:84:39: warning: ‘GMutex* g_mutex_new()’ is deprecated [-Wdeprecated-declarations]
   84 |         monitor_mutex_ = g_mutex_new ();
      |                                       ^
In file included from /usr/include/glib-2.0/glib.h:111,
                 from support.h:39,
                 from mailbox.cc:33:
/usr/include/glib-2.0/glib/deprecated/gthread.h:273:17: note: declared here
  273 | GMutex *        g_mutex_new             (void);
      |                 ^~~~~~~~~~~
mailbox.cc: In destructor ‘virtual Mailbox::~Mailbox()’:
mailbox.cc:107:29: warning: ‘void g_mutex_free(GMutex*)’ is deprecated [-Wdeprecated-declarations]
  107 |         g_mutex_free (mutex_);
      |                             ^
In file included from /usr/include/glib-2.0/glib.h:111,
                 from support.h:39,
                 from mailbox.cc:33:
/usr/include/glib-2.0/glib/deprecated/gthread.h:275:17: note: declared here
  275 | void            g_mutex_free            (GMutex *mutex);
      |                 ^~~~~~~~~~~~
mailbox.cc:110:37: warning: ‘void g_mutex_free(GMutex*)’ is deprecated [-Wdeprecated-declarations]
  110 |         g_mutex_free (monitor_mutex_);
      |                                     ^
In file included from /usr/include/glib-2.0/glib.h:111,
                 from support.h:39,
                 from mailbox.cc:33:
/usr/include/glib-2.0/glib/deprecated/gthread.h:275:17: note: declared here
  275 | void            g_mutex_free            (GMutex *mutex);
      |                 ^~~~~~~~~~~~
mailbox.cc: In static member function ‘static gboolean Mailbox::start_delayed_entry_point(gpointer)’:
mailbox.cc:144:76: warning: ‘GThread* g_thread_create(GThreadFunc, gpointer, gboolean, GError**)’ is deprecated: Use 'g_thread_new' instead [-Wdeprecated-declarations]
  144 |         g_thread_create ((GThreadFunc) start_entry_point, data, false, &err);
      |                                                                            ^
In file included from /usr/include/glib-2.0/glib.h:111,
                 from support.h:39,
                 from mailbox.cc:33:
/usr/include/glib-2.0/glib/deprecated/gthread.h:100:10: note: declared here
  100 | GThread *g_thread_create       (GThreadFunc       func,
      |          ^~~~~~~~~~~~~~~
make[3]: *** [Makefile:828: biff.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:828: mailbox.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:462: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make[1]: *** [debian/rules:16: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: