Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Fails to build with GCC 7 #5439

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

Fails to build with GCC 7 #5439

openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: sebastic
[Submitted to the original trac issue database at 8.30pm, Wednesday, 11th January 2017]

As reported by Matthias Klose in [https://bugs.debian.org/853430 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
@openstreetmap-trac
Copy link
Author

Author: sebastic
[Added to the original trac issue at 6.14pm, Tuesday, 31st January 2017]

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++) {}

                           ^~~~

@openstreetmap-trac
Copy link
Author

Author: sebastic
[Added to the original trac issue at 12.06am, Saturday, 5th August 2017]

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.

@openstreetmap-trac
Copy link
Author

Author: mmd
[Added to the original trac issue at 6.55pm, Tuesday, 19th May 2020]

Gosmore project is no longer active, closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant