Opened 2 years ago

Last modified 23 months ago

#5441 new defect

Fails to build with GCC 7

Reported by: sebastic Owned by: nroets@…
Priority: minor Milestone:
Component: gosmore Version:
Keywords: Cc: sebastic

Description

As reported by Matthias Klose in Debian Bug #853430:

The package fails to build in a test rebuild on at least amd64 with gcc-7/g++-7, but succeeds to build with gcc-6/g++-6. The severity of this report may be raised before the buster release. There is no need to fix this issue in time for the stretch release.

The full build log can be found at: http://people.debian.org/~doko/logs/gcc7-20170126/gosmore_0.0.0.svn30327-1_unstable_gcc7.log The last lines of the build log are at the end of this report.

To build with GCC 7, either set CC=gcc-7 CXX=g++-7 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-7/porting_to.html

[...]
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from jni/gosmore.cpp:83:
/usr/include/glib-2.0/glib/deprecated/gthread.h:265:10: note: declared here
 void     g_thread_init                   (gpointer vtable);
          ^~~~~~~~~~~~~
jni/gosmore.cpp:3377:22: warning: 'void g_thread_init(gpointer)' is deprecated [-Wdeprecated-declarations]
   g_thread_init (NULL);  // Something to do with curl progress bar

                      ^
In file included from /usr/include/glib-2.0/glib.h:107:0,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from jni/gosmore.cpp:83:
/usr/include/glib-2.0/glib/deprecated/gthread.h:265:10: note: declared here
 void     g_thread_init                   (gpointer vtable);
          ^~~~~~~~~~~~~
In file included from /usr/include/gtk-2.0/gtk/gtkcalendar.h:40:0,
                 from /usr/include/gtk-2.0/gtk/gtk.h:53,
                 from jni/gosmore.cpp:83:
jni/gosmore.cpp:3425:46: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       GTK_SIGNAL_FUNC (HitGtkButton), (char*)i);

                                              ^
/usr/include/gtk-2.0/gtk/gtksignal.h:51:62: note: in definition of macro 'gtk_signal_connect'
    gtk_signal_connect_full ((object), (name), (func), NULL, (func_data), NULL, 0, 0)
                                                              ^~~~~~~~~
jni/gosmore.cpp: At global scope:
jni/gosmore.cpp:2070:14: warning: 'casing' defined but not used [-Wunused-variable]
 static short casing[10 + CASING_MAX * 2];
              ^~~~~~
Makefile:56: recipe for target 'gosmore' failed
make[1]: *** [gosmore] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j64 returned exit code 2
debian/rules:17: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Attachments (1)

gosmore_0.0.0.svn30327-1_unstable_gcc7.log (111.4 KB) - added by sebastic 2 years ago.
Full build log

Download all attachments as: .zip

Change History (3)

Changed 2 years ago by sebastic

Full build log

comment:1 Changed 2 years ago by sebastic

Error from the build log:

jni/gosmore.cpp: In function 'void ExtractClipboard(GtkClipboard*, const gchar*, void*)':
jni/gosmore.cpp:1276:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         for (t += 3; t != '\0' && !isalnum (*t); t++) {}

                           ^~~~

comment:2 Changed 23 months ago by sebastic

GCC 7 is now the default compiler in Debian causing the issue to become Release Critical which will trigger to automatic removal of the package from Debian testing (and by extension from the next stable release) when the issue remains unfixed.

Note: See TracTickets for help on using tickets.