1.26.2: clutter isn't LTO ready
When clutter is build with LTO optimisation linking fails.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/clutter-1.26.2/clutter' make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/clutter-1.26.2/clutter' CPPFLAGS="" CFLAGS="-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto" LDFLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin" CC="gcc" PKG_CONFIG="/usr/bin/x86_64-redhat-linux-gnu-pkg-config" GI_HOST_OS="" DLLTOOL="false" /usr/bin/g-ir-scanner --namespace=Clutter --nsversion=1.0 --libtool="/bin/sh ../libtool" --include=GL-1.0 --include=GObject-2.0 --include=cairo-1.0 --include=Cogl-1.0 --include=CoglPango-1.0 --include=Atk-1.0 --include=Json-1.0 --library=libclutter-1.0.la --warn-all --c-include='clutter/clutter.h' --pkg-export=clutter-1.0 --cflags-begin -DCLUTTER_PREFIX=\""/usr"\" -DCLUTTER_LIBDIR=\""/usr/lib64"\" -DCLUTTER_DATADIR=\""/usr/share"\" -DCLUTTER_LOCALEDIR=\""/usr/share/locale"\" -DCLUTTER_SYSCONFDIR=\""/etc"\" -DCLUTTER_COMPILATION=1 -DCOGL_ENABLE_EXPERIMENTAL_API -DCOGL_DISABLE_DEPRECATION_WARNINGS -DG_LOG_DOMAIN=\"Clutter\" -I.. -I../clutter -I../clutter/cally -I.. -I../clutter -DGLIB_DISABLE_DEPRECATION_WARNINGS -DG_DISABLE_CAST_CHECKS -fvisibility=hidden -I/usr/include/cogl -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libdrm -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -pthread -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread --cflags-end clutter-action.h clutter-actor-meta.h clutter-actor.h clutter-align-constraint.h clutter-animatable.h clutter-backend.h clutter-bind-constraint.h clutter-binding-pool.h clutter-bin-layout.h clutter-blur-effect.h clutter-box-layout.h clutter-brightness-contrast-effect.h clutter-cairo.h clutter-canvas.h clutter-child-meta.h clutter-click-action.h clutter-cogl-compat.h clutter-clone.h clutter-color-static.h clutter-color.h clutter-colorize-effect.h clutter-constraint.h clutter-container.h clutter-content.h clutter-deform-effect.h clutter-deprecated.h clutter-desaturate-effect.h clutter-device-manager.h clutter-drag-action.h clutter-drop-action.h clutter-effect.h clutter-enums.h clutter-event.h clutter-feature.h clutter-fixed-layout.h clutter-flow-layout.h clutter-gesture-action.h clutter-grid-layout.h clutter-group.h clutter-image.h clutter-input-device.h clutter-interval.h clutter-keyframe-transition.h clutter-keysyms.h clutter-layout-manager.h clutter-layout-meta.h clutter-macros.h clutter-main.h clutter-offscreen-effect.h clutter-page-turn-effect.h clutter-paint-nodes.h clutter-paint-node.h clutter-pan-action.h clutter-path-constraint.h clutter-path.h clutter-property-transition.h clutter-rotate-action.h clutter-script.h clutter-scriptable.h clutter-scroll-actor.h clutter-settings.h clutter-shader-effect.h clutter-shader-types.h clutter-swipe-action.h clutter-snap-constraint.h clutter-stage.h clutter-stage-manager.h clutter-tap-action.h clutter-test-utils.h clutter-texture.h clutter-text.h clutter-text-buffer.h clutter-timeline.h clutter-transition-group.h clutter-transition.h clutter-types.h clutter-units.h clutter-zoom-action.h clutter.h clutter-version.h clutter-autocleanups.h deprecated/clutter-actor.h deprecated/clutter-alpha.h deprecated/clutter-animatable.h deprecated/clutter-animation.h deprecated/clutter-animator.h deprecated/clutter-backend.h deprecated/clutter-behaviour.h deprecated/clutter-behaviour-depth.h deprecated/clutter-behaviour-ellipse.h deprecated/clutter-behaviour-opacity.h deprecated/clutter-behaviour-path.h deprecated/clutter-behaviour-rotate.h deprecated/clutter-behaviour-scale.h deprecated/clutter-bin-layout.h deprecated/clutter-box.h deprecated/clutter-cairo-texture.h deprecated/clutter-container.h deprecated/clutter-fixed.h deprecated/clutter-frame-source.h deprecated/clutter-group.h deprecated/clutter-input-device.h deprecated/clutter-keysyms.h deprecated/clutter-list-model.h deprecated/clutter-main.h deprecated/clutter-media.h deprecated/clutter-model.h deprecated/clutter-rectangle.h deprecated/clutter-score.h deprecated/clutter-shader.h deprecated/clutter-stage-manager.h deprecated/clutter-stage.h deprecated/clutter-state.h deprecated/clutter-table-layout.h deprecated/clutter-texture.h deprecated/clutter-timeline.h deprecated/clutter-timeout-pool.h deprecated/clutter-util.h clutter-config.h clutter-enum-types.h clutter-marshal.h clutter-action.c clutter-actor-box.c clutter-actor-meta.c clutter-actor.c clutter-align-constraint.c clutter-animatable.c clutter-backend.c clutter-base-types.c clutter-bezier.c clutter-bind-constraint.c clutter-binding-pool.c clutter-bin-layout.c clutter-blur-effect.c clutter-box-layout.c clutter-brightness-contrast-effect.c clutter-cairo.c clutter-canvas.c clutter-child-meta.c clutter-click-action.c clutter-clone.c clutter-color.c clutter-colorize-effect.c clutter-constraint.c clutter-container.c clutter-content.c clutter-deform-effect.c clutter-desaturate-effect.c clutter-device-manager.c clutter-drag-action.c clutter-drop-action.c clutter-effect.c clutter-event.c clutter-feature.c clutter-fixed-layout.c clutter-flatten-effect.c clutter-flow-layout.c clutter-gesture-action.c clutter-grid-layout.c clutter-image.c clutter-input-device.c clutter-interval.c clutter-keyframe-transition.c clutter-keysyms-table.c clutter-layout-manager.c clutter-layout-meta.c clutter-main.c clutter-master-clock.c clutter-master-clock-default.c clutter-offscreen-effect.c clutter-page-turn-effect.c clutter-paint-nodes.c clutter-paint-node.c clutter-pan-action.c clutter-path-constraint.c clutter-path.c clutter-property-transition.c clutter-rotate-action.c clutter-script.c clutter-script-parser.c clutter-scriptable.c clutter-scroll-actor.c clutter-settings.c clutter-shader-effect.c clutter-shader-types.c clutter-swipe-action.c clutter-snap-constraint.c clutter-stage.c clutter-stage-manager.c clutter-stage-window.c clutter-tap-action.c clutter-test-utils.c clutter-text.c clutter-text-buffer.c clutter-transition-group.c clutter-transition.c clutter-timeline.c clutter-units.c clutter-util.c clutter-paint-volume.c clutter-zoom-action.c deprecated/clutter-actor-deprecated.c deprecated/clutter-alpha.c deprecated/clutter-animation.c deprecated/clutter-animator.c deprecated/clutter-behaviour.c deprecated/clutter-behaviour-depth.c deprecated/clutter-behaviour-ellipse.c deprecated/clutter-behaviour-opacity.c deprecated/clutter-behaviour-path.c deprecated/clutter-behaviour-rotate.c deprecated/clutter-behaviour-scale.c deprecated/clutter-box.c deprecated/clutter-cairo-texture.c deprecated/clutter-fixed.c deprecated/clutter-frame-source.c deprecated/clutter-group.c deprecated/clutter-input-device-deprecated.c deprecated/clutter-layout-manager-deprecated.c deprecated/clutter-list-model.c deprecated/clutter-media.c deprecated/clutter-model.c deprecated/clutter-rectangle.c deprecated/clutter-score.c deprecated/clutter-shader.c deprecated/clutter-state.c deprecated/clutter-table-layout.c deprecated/clutter-texture.c deprecated/clutter-timeout-pool.c clutter-enum-types.c clutter-marshal.c libclutter-1.0.la Makefile --output Clutter-1.0.gir g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC gcc -o /home/tkloczko/rpmbuild/BUILD/clutter-1.26.2/clutter/tmp-introspectjrqkg4f8/Clutter-1.0 -export-dynamic -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto /home/tkloczko/rpmbuild/BUILD/clutter-1.26.2/clutter/tmp-introspectjrqkg4f8/Clutter-1.0.o -L. libclutter-1.0.la -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -pthread -lgmodule-2.0 -lglib-2.0 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin libtool: link: gcc -o /home/tkloczko/rpmbuild/BUILD/clutter-1.26.2/clutter/tmp-introspectjrqkg4f8/.libs/Clutter-1.0 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto /home/tkloczko/rpmbuild/BUILD/clutter-1.26.2/clutter/tmp-introspectjrqkg4f8/Clutter-1.0.o -Wl,--export-dynamic -pthread -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -Wl,--export-dynamic -L. ./.libs/libclutter-1.0.so -lm -lcogl-path -latk-1.0 -lcogl-pango -lcogl -lwayland-egl -lgbm -ldrm -lEGL -lXrandr -ljson-glib-1.0 -lgdk-3 -lpangocairo-1.0 -lcairo-gobject -lcairo -lpixman-1 -lpng16 -lz -lxcb-shm -lxcb -lxcb-render -lXrender -lwayland-cursor -lwayland-client -lwayland-server -lX11 -lXext -lXdamage -lXfixes -lXcomposite -lXi -lpangoft2-1.0 -lpango-1.0 -lfontconfig -lfreetype -lgdk_pixbuf-2.0 -ludev -linput -lxkbcommon -lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -pthread Invalid GType function: 'clutter_point_get_type' Failed to find symbol 'clutter_point_get_type' Command '['/home/tkloczko/rpmbuild/BUILD/clutter-1.26.2/clutter/tmp-introspectjrqkg4f8/Clutter-1.0', '--introspect-dump=/home/tkloczko/rpmbuild/BUILD/clutter-1.26.2/clutter/tmp-introspectjrqkg4f8/functions.txt,/home/tkloczko/rpmbuild/BUILD/clutter-1.26.2/clutter/tmp-introspectjrqkg4f8/dump.xml']' returned non-zero exit status 1. make[2]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:156: Clutter-1.0.gir] Error 1 make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/clutter-1.26.2/clutter' make[1]: *** [Makefile:1941: all] Error 2