https://sourceware.org/bugzilla/show_bug.cgi?id=12762
Martin Schulze <spam.martin.schulze at gmx dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |spam.martin.schulze at gmx dot de --- Comment #32 from Martin Schulze <spam.martin.schulze at gmx dot de> --- I am seeing this issue while cross-compiling Qt 5.9.0 on Arch Linux via x86_64-w64-mingw32-g++ 7.1.1 with (slim) LTO enabled (the error is reported when linking Qt5Gui.dll): $ x86_64-w64-mingw32-g++ -flto-partition=none -Wl,-s -shared -fno-keep-inline-dllexport -pipe -O3 -std=c++1z -flto=4 -fno-fat-lto-objects -fuse-linker-plugin -Wl,-subsystem,windows -Wl,--out-implib,<left out for brevity>/libQt5Gui.a -o ../../lib/Qt5Gui.dll <list of .o/.a files and -L/-l left out for brevity> .obj/release/qimage_compat.o (symbol from plugin):(.gnu.linkonce.t._ZTS12QPaintDevice+0x0): multiple definition of `typeinfo name for QPaintDevice' .obj/release/qimage_ssse3.o:qimage_ssse3.cpp:(.rdata$_ZTS12QPaintDevice[_ZTS12QPaintDevice]+0x0): first defined here .obj/release/qimage_compat.o (symbol from plugin):(.gnu.linkonce.t._ZTI12QPaintDevice+0x0): multiple definition of `typeinfo for QPaintDevice' .obj/release/qimage_ssse3.o:qimage_ssse3.cpp:(.rdata$_ZTI12QPaintDevice[_ZTI12QPaintDevice]+0x0): first defined here .obj/release/qimage_compat.o (symbol from plugin):(.gnu.linkonce.t._ZTS6QImage+0x0): multiple definition of `typeinfo name for QImage' .obj/release/qimage_ssse3.o:qimage_ssse3.cpp:(.rdata$_ZTS6QImage[_ZTS6QImage]+0x0): first defined here .obj/release/qimage_compat.o (symbol from plugin):(.gnu.linkonce.t._ZTI6QImage+0x0): multiple definition of `typeinfo for QImage' .obj/release/qimage_ssse3.o:qimage_ssse3.cpp:(.rdata$_ZTI6QImage[_ZTI6QImage]+0x0): first defined here .obj/release/qaccessible.o (symbol from plugin):(.gnu.linkonce.t._ZTS7QPixmap+0x0): multiple definition of `typeinfo name for QPixmap' .obj/release/qdrawhelper_ssse3.o:qdrawhelper_ssse3.cpp:(.rdata$_ZTS7QPixmap[_ZTS7QPixmap]+0x0): first defined here .obj/release/qaccessible.o (symbol from plugin):(.gnu.linkonce.t._ZTI7QPixmap+0x0): multiple definition of `typeinfo for QPixmap' .obj/release/qdrawhelper_ssse3.o:qdrawhelper_ssse3.cpp:(.rdata$_ZTI7QPixmap[_ZTI7QPixmap]+0x0): first defined here I tried -flto-partition=none without success while -Wl,-allow-multiple-definition seems to have worked. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils