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

Bug#957197: fcitx5-gtk: ftbfs with GCC-10



Package: src:fcitx5-gtk
Version: 0.0~git20191111.6f9ef64-2
Severity: normal
Tags: sid bullseye
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-10

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-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/fcitx5-gtk_0.0~git20191111.6f9ef64-2_unstable_gcc10.log
The last lines of the build log are at the end of this report.

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

[...]
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/gtk3/fcitximcontext.cpp:229:9: warning: cast between incompatible function types from ‘void (*)(FcitxIMContext*)’ {aka ‘void (*)(_FcitxIMContext*)’} to ‘GInstanceInitFunc’ {aka ‘void (*)(GTypeInstance*, void*)’} [-Wcast-function-type]
  229 |         (GInstanceInitFunc)fcitx_im_context_init,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/gtk3/fcitximcontext.cpp: In function ‘void fcitx_im_context_class_init(FcitxIMContextClass*)’:
/<<PKGBUILDDIR>>/gtk3/fcitximcontext.cpp:332:72: warning: ‘guint gtk_key_snooper_install(GtkKeySnoopFunc, gpointer)’ is deprecated [-Wdeprecated-declarations]
  332 |         _key_snooper_id = gtk_key_snooper_install(_key_snooper_cb, NULL);
      |                                                                        ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:143,
                 from /<<PKGBUILDDIR>>/gtk3/fcitximcontext.cpp:35:
/usr/include/gtk-3.0/gtk/gtkmain.h:185:12: note: declared here
  185 | guint      gtk_key_snooper_install (GtkKeySnoopFunc snooper,
      |            ^~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/gtk3/fcitximcontext.cpp:332:72: warning: ‘guint gtk_key_snooper_install(GtkKeySnoopFunc, gpointer)’ is deprecated [-Wdeprecated-declarations]
  332 |         _key_snooper_id = gtk_key_snooper_install(_key_snooper_cb, NULL);
      |                                                                        ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:143,
                 from /<<PKGBUILDDIR>>/gtk3/fcitximcontext.cpp:35:
/usr/include/gtk-3.0/gtk/gtkmain.h:185:12: note: declared here
  185 | guint      gtk_key_snooper_install (GtkKeySnoopFunc snooper,
      |            ^~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/gtk3/fcitximcontext.cpp: In function ‘void fcitx_im_context_class_fini(FcitxIMContextClass*)’:
/<<PKGBUILDDIR>>/gtk3/fcitximcontext.cpp:338:47: warning: ‘void gtk_key_snooper_remove(guint)’ is deprecated [-Wdeprecated-declarations]
  338 |         gtk_key_snooper_remove(_key_snooper_id);
      |                                               ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:143,
                 from /<<PKGBUILDDIR>>/gtk3/fcitximcontext.cpp:35:
/usr/include/gtk-3.0/gtk/gtkmain.h:188:12: note: declared here
  188 | void       gtk_key_snooper_remove  (guint           snooper_handler_id);
      |            ^~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/gtk3/fcitximcontext.cpp:338:47: warning: ‘void gtk_key_snooper_remove(guint)’ is deprecated [-Wdeprecated-declarations]
  338 |         gtk_key_snooper_remove(_key_snooper_id);
      |                                               ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:143,
                 from /<<PKGBUILDDIR>>/gtk3/fcitximcontext.cpp:35:
/usr/include/gtk-3.0/gtk/gtkmain.h:188:12: note: declared here
  188 | void       gtk_key_snooper_remove  (guint           snooper_handler_id);
      |            ^~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [gtk3/CMakeFiles/im-fcitx5-gtk3.dir/build.make:79: gtk3/CMakeFiles/im-fcitx5-gtk3.dir/fcitximcontext.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:250: gtk3/CMakeFiles/im-fcitx5-gtk3.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
In file included from /<<PKGBUILDDIR>>/gtk2/fcitximcontext.cpp:30:
/usr/include/Fcitx5/Utils/fcitx-utils/utf8.h: In member function ‘void fcitx::utf8::UTF8CharIterator<Iter>::update()’:
/usr/include/Fcitx5/Utils/fcitx-utils/utf8.h:212:24: error: ‘runtime_error’ is not a member of ‘std’
  212 |             throw std::runtime_error("Invalid UTF8 character.");
      |                        ^~~~~~~~~~~~~
/<<PKGBUILDDIR>>/gtk2/fcitximcontext.cpp: In function ‘void fcitx_im_context_register_type(GTypeModule*)’:
/<<PKGBUILDDIR>>/gtk2/fcitximcontext.cpp:224:9: warning: cast between incompatible function types from ‘void (*)(FcitxIMContextClass*)’ {aka ‘void (*)(_FcitxIMContextClass*)’} to ‘GClassInitFunc’ {aka ‘void (*)(void*, void*)’} [-Wcast-function-type]
  224 |         (GClassInitFunc)fcitx_im_context_class_init,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/gtk2/fcitximcontext.cpp:225:9: warning: cast between incompatible function types from ‘void (*)(FcitxIMContextClass*)’ {aka ‘void (*)(_FcitxIMContextClass*)’} to ‘GClassFinalizeFunc’ {aka ‘void (*)(void*, void*)’} [-Wcast-function-type]
  225 |         (GClassFinalizeFunc)fcitx_im_context_class_fini,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/gtk2/fcitximcontext.cpp:229:9: warning: cast between incompatible function types from ‘void (*)(FcitxIMContext*)’ {aka ‘void (*)(_FcitxIMContext*)’} to ‘GInstanceInitFunc’ {aka ‘void (*)(GTypeInstance*, void*)’} [-Wcast-function-type]
  229 |         (GInstanceInitFunc)fcitx_im_context_init,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [gtk2/CMakeFiles/im-fcitx5.dir/build.make:79: gtk2/CMakeFiles/im-fcitx5.dir/fcitximcontext.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:223: gtk2/CMakeFiles/im-fcitx5.dir/all] Error 2
[ 85%] Generating FcitxG-1.0.typelib
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fcitx-gclient" && /usr/bin/g-ir-compiler --includedir=/<<PKGBUILDDIR>>/fcitx-gclient /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fcitx-gclient/FcitxG-1.0.gir --output=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/fcitx-gclient/FcitxG-1.0.typelib
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 85%] Built target gobject_introspection_compile_target_1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:133: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j4 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:17: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


Reply to: