Compiling with gcc-5.2.0, gtk+-3.16.7, gtkmm-3.16.0 on tinycorelinux.
Both inkscape-0.91 and bzr fail with:
CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -std=c++11" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --enable-gtk3-experimental
find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;
make
...
CXXLD inkscape
2geom/solve-bezier.cpp:25:7: warning: type 'struct Bernsteins' violates one definition rule [-Wodr]
class Bernsteins{
^
2geom/solve-bezier-one-d.cpp:28:0: note: a different type is defined in another translation unit
class Bernsteins{
^
2geom/solve-bezier.cpp:28:26: note: the first difference of corresponding definitions is field 'solutions'
std::vector<double> &solutions;
^
2geom/solve-bezier-one-d.cpp:31:12: note: a field with different name is defined in another translation unit
size_t degree, N;
^
/tmp/ccpr6WoG.ltrans19.ltrans.o: In function `int Gtk::TreeView::append_column<Glib::RefPtr<Gdk::Pixbuf> >(Glib::ustring const&, Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> > const&) [clone .constprop.1242]':
<artificial>:(.text+0x3f9): undefined reference to `VTT for Gtk::TreeViewColumn'
<artificial>:(.text+0x435): undefined reference to `VTT for Gtk::TreeViewColumn'
<artificial>:(.text+0x450): undefined reference to `VTT for Gtk::TreeViewColumn'
<artificial>:(.text+0x461): undefined reference to `vtable for Gtk::TreeViewColumn'
<artificial>:(.text+0x469): undefined reference to `vtable for Gtk::TreeViewColumn'
<artificial>:(.text+0x471): undefined reference to `vtable for Gtk::TreeViewColumn'
<artificial>:(.text+0x4db): undefined reference to `VTT for Gtk::TreeViewColumn'
<artificial>:(.text+0x4ed): undefined reference to `VTT for Gtk::TreeViewColumn'
<artificial>:(.text+0x4ff): undefined reference to `VTT for Gtk::TreeViewColumn'
/tmp/ccpr6WoG.ltrans28.ltrans.o: In function `Gtk::TreeViewColumn::TreeViewColumn<int>(Glib::ustring const&, Gtk::TreeModelColumn<int> const&) [clone .lto_priv.9884]':
<artificial>:(.text+0x6325): undefined reference to `VTT for Gtk::TreeViewColumn'
<artificial>:(.text+0x6361): undefined reference to `VTT for Gtk::TreeViewColumn'
/tmp/ccpr6WoG.ltrans28.ltrans.o:<artificial>:(.text+0x637d): more undefined references to `VTT for Gtk::TreeViewColumn' follow
/tmp/ccpr6WoG.ltrans28.ltrans.o: In function `Gtk::TreeViewColumn::TreeViewColumn<int>(Glib::ustring const&, Gtk::TreeModelColumn<int> const&) [clone .lto_priv.9884]':
<artificial>:(.text+0x638d): undefined reference to `vtable for Gtk::TreeViewColumn'
<artificial>:(.text+0x6396): undefined reference to `vtable for Gtk::TreeViewColumn'
<artificial>:(.text+0x639f): undefined reference to `vtable for Gtk::TreeViewColumn'
<artificial>:(.text+0x63f4): undefined reference to `VTT for Gtk::TreeViewColumn'
<artificial>:(.text+0x6409): undefined reference to `VTT for Gtk::TreeViewColumn'
<artificial>:(.text+0x641e): undefined reference to `VTT for Gtk::TreeViewColumn'
collect2: error: ld returned 1 exit status
Makefile:7220: recipe for target 'inkscape' failed
It looks like this is a gcc-5.2/lto bug:
https:/ /gcc.gnu. org/bugzilla/ show_bug. cgi?id= 69953