Description: libreoffice-7.2.2.2 build succeeds on x86 and x86_64 using gcc-10.2 without needing patches libreoffice-7.2.2.2 build fails on aarch64 using gcc-10.2 with an error involving an undefined reference to non-virtual thunk to cppu. Using the gcc-10 patch from here: https://bug-attachments.documentfoundation.org/attachment.cgi?id=172646 the above and other similar errors are fixed, but the build fails with: [MOD] avmedia /usr/local/bin/ld: /mnt/sda8/usr/src/libreoffice-7.2.2.2/workdir/CxxObject/xmloff/source/core/xmlimp.o: in function `SvXMLImport::SetAutoStyles(SvXMLStylesContext*)': xmlimp.cxx:(.text+0x89a8): undefined reference to `non-virtual thunk to cppu::WeakImplHelper<com::sun::star::xml::sax::XFastAttributeList, com::sun::star::util::XCloneable>::acquire()' collect2: error: ld returned 1 exit status make[1]: *** [/mnt/sda8/usr/src/libreoffice-7.2.2.2/xmloff/Library_xo.mk:20: /mnt/sda8/usr/src/libreoffice-7.2.2.2/instdir/program/libxolo.so] Error 1 Steps to Reproduce: build with: CC="gcc -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" CXX="g++ -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -DNDEBUG" ./autogen.sh --prefix=/usr/local --localstatedir=/var --with-lang='fr en-GB' --without-help --without-myspell-dicts --without-junit --without-system-dicts --disable-odk --enable-release-build=yes --enable-python=system --without-java --with-system-boost --with-system-curl --with-system-epoxy --with-system-expat --with-system-graphite --with-system-icu --with-system-harfbuzz --with-system-jpeg --with-system-lcms2 --with-system-libpng --with-system-libxml --with-system-neon --with-system-nss --with-system-openssl --with-system-poppler --with-system-zlib --with-system-hunspell --with-system-sane --disable-firebird-sdbc --without-fonts Actual Results: [MOD] avmedia /usr/local/bin/ld: /mnt/sda8/usr/src/libreoffice-7.2.2.2/workdir/CxxObject/xmloff/source/core/xmlimp.o: in function `SvXMLImport::SetAutoStyles(SvXMLStylesContext*)': xmlimp.cxx:(.text+0x89a8): undefined reference to `non-virtual thunk to cppu::WeakImplHelper<com::sun::star::xml::sax::XFastAttributeList, com::sun::star::util::XCloneable>::acquire()' collect2: error: ld returned 1 exit status make[1]: *** [/mnt/sda8/usr/src/libreoffice-7.2.2.2/xmloff/Library_xo.mk:20: /mnt/sda8/usr/src/libreoffice-7.2.2.2/instdir/program/libxolo.so] Error 1 Expected Results: No errors Reproducible: Always User Profile Reset: No Additional Info: building natively on RPi4
The same error occurs with libreoffice-7.2.3.1
I managed to workaround this issue by compiling LO with the clang compiler, with the same patch. I am the one who opened 142442 bug report but so far no conclusive response.
I tried compiling libreoffice-7.2.3.1 with clang-10.1 and the gcc-10 patch. The build fails with: [PRL] CustomTarget/postprocess/images/commandimagelist.ilst /usr/local/bin/ld: /mnt/sda8/usr/src/libreoffice-7.2.3.1/workdir/CxxObject/dbaccess/source/core/dataaccess/databasedocument.o: in function `com_sun_star_comp_dba_ODatabaseDocument': databasedocument.cxx:(.text+0xeda8): undefined reference to `dbaccess::ODatabaseContext::getUnoTunnelId()'
For such build issues I suggest you go to the #libreoffice-dev irc channel for devs' advice.
Thank you for getting in touch with us! Although Bugzilla sometimes feels like the center of the Universe, there are a few topics that need to be reported elsewhere. To find the right place to report your issue, please look at the BugReport wiki page: https://wiki.documentfoundation.org/QA/BugReport#Not_all_bugs_go_to_Bugzilla