Created attachment 164047 [details] libreoffice online 7.0.0.2 build log I tried to build libreoffice online 7.0.0.2 on openSUSE Tumbleweed, but got a fatal error: 164s] kit/Kit.cpp:756:7: error: type 'struct Document' violates the C++ One Definition Rule [-Werror=odr] [ 164s] 756 | class Document final : public DocumentManagerInterface [ 164s] | ^ [ 164s] wsd/AdminModel.hpp:127:7: note: a type with different bases is defined in another translation unit [ 164s] 127 | class Document [ 164s] | ^ [ 164s] kit/Kit.cpp:796:13: error: type of '__dt_comp ' does not match original declaration [-Werror=lto-type-mismatch] [ 164s] 796 | virtual ~Document() [ 164s] | ^ [ 164s] wsd/AdminModel.hpp:160:5: note: '__dt_comp ' was previously declared here [ 164s] 160 | ~Document() [ 164s] | ^ [ 164s] lto1: all warnings being treated as errors [ 164s] lto-wrapper: fatal error: g++ returned 1 exit status [ 164s] compilation terminated. [ 164s] /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: error: lto-wrapper failed [ 164s] collect2: error: ld returned 1 exit status [ 164s] make[2]: *** [Makefile:1672: loolwsd_fuzzer] Error 1 [ 164s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/online-libreoffice-7.0.0.2' [ 164s] make[2]: *** Waiting for unfinished jobs.... [ 165s] make[2]: Entering directory '/home/abuild/rpmbuild/BUILD/online-libreoffice-7.0.0.2'
Does that mean you're trying to build with LTO?
(In reply to Aron Budea from comment #1) > Does that mean you're trying to build with LTO? Yes, i got the source package from https://github.com/LibreOffice/online/archive/libreoffice-7.0.0.2.tar.gz
Right, I don't think the code is prepared to be built with LTO.
(In reply to Aron Budea from comment #3) > Right, I don't think the code is prepared to be built with LTO. No, the code is valid. This issue can be workarounded by '-Wno-error' option.
Have you tried building without LTO?
Hello Hillwood, is this issue still reproducible with a master build ?
Dear Hillwood Yang, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
The upstream of libreoffice online have been moved to Collabora (https://github.com/CollaboraOnline/online). I don't know whether still trace this issue on TDF.
[Automated Action] NeedInfo-To-Unconfirmed
Okay, if this still occurs with the latest Collabora Online, please open a GH issue: https://github.com/CollaboraOnline/online/issues