[Pkg-ayatana-devel] Bug#984087: libayatana-appindicator: ftbfs with GCC-11

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Mon Nov 15 14:05:05 GMT 2021


Control: close -1
Control: fixed -1 0.5.5-3

Hi Matthias, hi all,

On  Mi 03 Mär 2021 17:13:58 CET, Matthias Klose wrote:

> Package: src:libayatana-appindicator
> Version: 0.5.5-2
> Severity: normal
> Tags: sid bookworm
> User: debian-gcc at 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/libayatana-appindicator_0.5.5-2_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.
>
> [...]
>   260 |     (!g_atomic_pointer_get (location) &&                      
>         \
>       |       ^~~~~~~~~~~~~~~~~~~~
> /usr/include/glib-2.0/gobject/gtype.h:2000:7: note: in expansion of  
> macro ‘g_once_init_enter’
>  2000 |   if (g_once_init_enter (&g_define_type_id__volatile))  \
>       |       ^~~~~~~~~~~~~~~~~
> /usr/include/glib-2.0/gobject/gtype.h:2032:3: note: in expansion of  
> macro ‘_G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER’
>  2032 |   _G_DEFINE_TYPE_EXTENDED_BEGIN_REGISTER(TypeName,  
> type_name, TYPE_PARENT, flags) \
>       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/include/glib-2.0/gobject/gtype.h:1759:61: note: in expansion of  
> macro ‘_G_DEFINE_TYPE_EXTENDED_BEGIN’
>  1759 | #define G_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_)       
> _G_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;}  
> _G_DEFINE_TYPE_EXTENDED_END()
>       |                                                              
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/include/glib-2.0/gobject/gtype.h:1640:61: note: in expansion of  
> macro ‘G_DEFINE_TYPE_EXTENDED’
>  1640 | #define G_DEFINE_TYPE_WITH_PRIVATE(TN, t_n, T_P)             
> G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, G_ADD_PRIVATE (TN))
>       |                                                              
> ^~~~~~~~~~~~~~~~~~~~~~
> ../../../src/app-indicator.c:212:1: note: in expansion of macro  
> ‘G_DEFINE_TYPE_WITH_PRIVATE’
>   212 | G_DEFINE_TYPE_WITH_PRIVATE (AppIndicator, app_indicator,  
> G_TYPE_OBJECT);
>       | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../src -I..  
> -Wdate-time -D_FORTIFY_SOURCE=2 -pthread  
> -I/usr/include/libayatana-indicator-0.4  
> -I/usr/include/libdbusmenu-gtk-0.4  
> -I/usr/include/libdbusmenu-glib-0.4 -I/usr/include/gtk-2.0  
> -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0  
> -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0  
> -I/usr/include/pango-1.0 -I/usr/include/libmount  
> -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo  
> -I/usr/include/pixman-1 -I/usr/include/harfbuzz  
> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  
> -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16  
> -Wall -Werror -Wno-error=deprecated-declarations  
> -DG_LOG_DOMAIN=\"libayatana-appindicator\" -g -O2  
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong  
> -Wformat -Werror=format-security -fPIC -c ../../../src/generate-id.c  
> -o libayatana_appindicator_la-generate-id.o >/dev/null 2>&1
> In file included from /usr/include/gtk-2.0/gtk/gtkobject.h:37,
>                  from /usr/include/gtk-2.0/gtk/gtkwidget.h:36,
>                  from /usr/include/gtk-2.0/gtk/gtkcontainer.h:35,
>                  from /usr/include/gtk-2.0/gtk/gtkbin.h:35,
>                  from /usr/include/gtk-2.0/gtk/gtkwindow.h:36,
>                  from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
>                  from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
>                  from /usr/include/gtk-2.0/gtk/gtk.h:33,
>                  from ../../../src/app-indicator.h:33,
>                  from app-indicator-enum-types.c:33:
> /usr/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning:  
> ‘GTypeDebugFlags’ is deprecated [-Wdeprecated-declarations]
>   236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
>       | ^~~~
> In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
>                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
>                  from /usr/include/glib-2.0/glib-object.h:22,
>                  from app-indicator-enum-types.h:35,
>                  from app-indicator-enum-types.c:32:
> /usr/include/glib-2.0/gobject/gtype.h:679:1: note: declared here
>   679 | {
>       | ^
> In file included from /usr/include/gtk-2.0/gtk/gtktoolitem.h:31,
>                  from /usr/include/gtk-2.0/gtk/gtktoolbutton.h:30,
>                  from /usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
>                  from /usr/include/gtk-2.0/gtk/gtk.h:126,
>                  from ../../../src/app-indicator.h:33,
>                  from app-indicator-enum-types.c:33:
> /usr/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: ‘GTimeVal’ is  
> deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
>    73 |   GTimeVal last_popdown;
>       |   ^~~~~~~~
> In file included from /usr/include/glib-2.0/glib/galloca.h:32,
>                  from /usr/include/glib-2.0/glib.h:30,
>                  from /usr/include/glib-2.0/gobject/gbinding.h:28,
>                  from /usr/include/glib-2.0/glib-object.h:22,
>                  from app-indicator-enum-types.h:35,
>                  from app-indicator-enum-types.c:32:
> /usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
>   547 | struct _GTimeVal
>       |        ^~~~~~~~~
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../src -I..  
> -Wdate-time -D_FORTIFY_SOURCE=2 -pthread  
> -I/usr/include/libayatana-indicator-0.4  
> -I/usr/include/libdbusmenu-gtk-0.4  
> -I/usr/include/libdbusmenu-glib-0.4 -I/usr/include/gtk-2.0  
> -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0  
> -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0  
> -I/usr/include/pango-1.0 -I/usr/include/libmount  
> -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo  
> -I/usr/include/pixman-1 -I/usr/include/harfbuzz  
> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  
> -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16  
> -Wall -Werror -Wno-error=deprecated-declarations  
> -DG_LOG_DOMAIN=\"libayatana-appindicator\" -g -O2  
> -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong  
> -Wformat -Werror=format-security -fPIC -c app-indicator-enum-types.c  
> -o libayatana_appindicator_la-app-indicator-enum-types.o >/dev/null  
> 2>&1
> cc1: all warnings being treated as errors
> make[4]: *** [Makefile:741:  
> libayatana_appindicator_la-app-indicator.lo] Error 1
> make[4]: Leaving directory '/<<PKGBUILDDIR>>/build/gtk2/src'
> make[3]: *** [Makefile:498: all-recursive] Error 1
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/build/gtk2'
> make[2]: *** [Makefile:429: all] Error 2
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/build/gtk2'
> dh_auto_build: error: cd build/gtk2 && make -j4 returned exit code 2
> make[1]: *** [debian/rules:40: dobuild-gtk2] Error 25
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> make: *** [debian/rules:27: binary] Error 2
> dpkg-buildpackage: error: debian/rules binary subprocess returned  
> exit status 2

I have just done a rebuild of libayatana-appindicator 0.5.5-3 against  
Debian unstable and (which has gcc-11 as default by now) and nothing  
failed.

It seems that the observed build error was unrelated to  
libayatana-appindicator and rather collateral damage by something that  
has been fixed meanwhile (e.g. in glib2.0 or such).

If you think, this needs to be reopened, please let me know.

Mike
-- 

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: Digitale PGP-Signatur
URL: <http://alioth-lists.debian.net/pipermail/pkg-ayatana-devel/attachments/20211115/3aa2fe97/attachment.sig>


More information about the Pkg-ayatana-devel mailing list