This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/69953] New: Using lto causes gtkmm/gparted and gtkmm/inkscape compile to fail


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69953

            Bug ID: 69953
           Summary: Using lto causes gtkmm/gparted and gtkmm/inkscape
                    compile to fail
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: john.frankish at outlook dot com
  Target Milestone: ---

I compiled libsigc++, glibmm, atkmm, cairomm and pangomm with "./configure
--prefix=/usr/local --disable-static --localstatedir=/var" and no flags and
gtkmm-2.24.4 with CXX="g++ -std=c++11"

gparted-0.25 then compiles without problems

If I repeat the same thing using CC="gcc -flto -fuse-linker-plugin
-mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os
-pipe" ./configure --prefix=/usr/local --disable-static --localstatedir=/var

gparted-0.25 then fails to compile as below.

The same issue exists with gtkmm-3.16.0 and inkscape-0.91

libtool: link: g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -Wall
-std=gnu++11 -o gpartedbin Copy_Blocks.o DMRaid.o Device.o DialogFeatures.o
DialogManageFlags.o Dialog_Base_Partition.o Dialog_Disklabel.o
Dialog_FileSystem_Label.o Dialog_Partition_Copy.o Dialog_Partition_Info.o
Dialog_Partition_Name.o Dialog_Partition_New.o Dialog_Partition_Resize_Move.o
Dialog_Progress.o Dialog_Rescue_Data.o DrawingAreaVisualDisk.o FS_Info.o
FileSystem.o Frame_Resizer_Base.o Frame_Resizer_Extended.o GParted_Core.o
HBoxOperations.o LVM2_PV_Info.o Operation.o OperationChangeUUID.o
OperationCheck.o OperationCopy.o OperationCreate.o OperationDelete.o
OperationDetail.o OperationFormat.o OperationLabelFileSystem.o
OperationNamePartition.o OperationResizeMove.o Partition.o PipeCapture.o
Proc_Partitions_Info.o SWRaid_Info.o TreeView_Detail.o Utils.o Win_GParted.o
btrfs.o exfat.o ext2.o f2fs.o fat16.o hfs.o hfsplus.o jfs.o linux_swap.o
lvm2_pv.o main.o nilfs2.o ntfs.o reiser4.o reiserfs.o ufs.o xfs.o -pthread 
-L/usr/local/lib /usr/local/lib/libgthread-2.0.so
/usr/local/lib/libgtkmm-2.4.so /usr/local/lib/libatkmm-1.6.so
/usr/local/lib/libgdkmm-2.4.so /usr/local/lib/libgiomm-2.4.so
/usr/local/lib/libpangomm-1.4.so /usr/local/lib/libglibmm-2.4.so
/usr/local/lib/libcairomm-1.0.so /usr/local/lib/libsigc-2.0.so
/usr/local/lib/libgtk-x11-2.0.so /usr/local/lib/libgdk-x11-2.0.so
/usr/local/lib/libpangocairo-1.0.so /usr/local/lib/libatk-1.0.so
/usr/local/lib/libcairo.so /usr/local/lib/libgdk_pixbuf-2.0.so
/usr/local/lib/libgio-2.0.so /usr/local/lib/libpangoft2-1.0.so
/usr/local/lib/libpango-1.0.so /usr/local/lib/libgobject-2.0.so
/usr/local/lib/libglib-2.0.so /usr/local/lib/libfontconfig.so
/usr/local/lib/libfreetype.so /usr/local/lib/libparted-fs-resize.so
/usr/local/lib/libparted.so -ldl /usr/lib/libuuid.so -pthread
/tmp/cczCWt7F.ltrans0.ltrans.o: In function
`Gtk::TreeViewColumn::TreeViewColumn<Glib::ustring>(Glib::ustring const&,
Gtk::TreeModelColumn<Glib::ustring> const&) [clone .lto_priv.613]':
<artificial>:(.text+0x692): undefined reference to `VTT for
Gtk::TreeViewColumn'
<artificial>:(.text+0x6ce): undefined reference to `VTT for
Gtk::TreeViewColumn'
<artificial>:(.text+0x6e7): undefined reference to `vtable for
Gtk::TreeViewColumn'
<artificial>:(.text+0x6ef): undefined reference to `vtable for
Gtk::TreeViewColumn'
<artificial>:(.text+0x721): undefined reference to `VTT for
Gtk::TreeViewColumn'
<artificial>:(.text+0x733): undefined reference to `VTT for
Gtk::TreeViewColumn'
/tmp/cczCWt7F.ltrans0.ltrans.o: In function
`Gtk::TreeViewColumn::TreeViewColumn<Glib::RefPtr<Gdk::Pixbuf> >(Glib::ustring
const&, Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> > const&) [clone
.lto_priv.612]':
<artificial>:(.text+0x2ca8): undefined reference to `VTT for
Gtk::TreeViewColumn'
<artificial>:(.text+0x2ce4): undefined reference to `VTT for
Gtk::TreeViewColumn'
<artificial>:(.text+0x2cfd): undefined reference to `vtable for
Gtk::TreeViewColumn'
<artificial>:(.text+0x2d05): undefined reference to `vtable for
Gtk::TreeViewColumn'
<artificial>:(.text+0x2d3c): undefined reference to `VTT for
Gtk::TreeViewColumn'
<artificial>:(.text+0x2d4e): undefined reference to `VTT for
Gtk::TreeViewColumn'
/tmp/cczCWt7F.ltrans28.ltrans.o: In function
`GParted::DialogManageFlags::DialogManageFlags(GParted::Partition const&,
std::map<Glib::ustring, bool, std::less<Glib::ustring>,
std::allocator<std::pair<Glib::ustring const, bool> > >) [clone
.constprop.455]':
<artificial>:(.text+0xf1f): undefined reference to `VTT for
Gtk::TreeViewColumn'
<artificial>:(.text+0xf65): undefined reference to `VTT for
Gtk::TreeViewColumn'
<artificial>:(.text+0xf7f): undefined reference to `vtable for
Gtk::TreeViewColumn'
<artificial>:(.text+0xf88): undefined reference to `vtable for
Gtk::TreeViewColumn'
<artificial>:(.text+0xfd5): undefined reference to `VTT for
Gtk::TreeViewColumn'
<artificial>:(.text+0xfec): undefined reference to `VTT for
Gtk::TreeViewColumn'
collect2: error: ld returned 1 exit status
Makefile:512: recipe for target 'gpartedbin' failed
make[2]: *** [gpartedbin] Error 1
make[2]: Leaving directory '/usr/src/gparted-0.25.0/src'
Makefile:580: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/gparted-0.25.0'
Makefile:434: recipe for target 'all' failed
make: *** [all] Error 2
[reply] [â] Comment 1

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]