Bug 145656 - libreoffice-7.2.2.2 build fails on aarch64 with undefined reference to non-virtual thunk to cppu
Summary: libreoffice-7.2.2.2 build fails on aarch64 with undefined reference to non-vi...
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.2.2.2 release
Hardware: ARM Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Dev-Bugs
  Show dependency treegraph
 
Reported: 2021-11-13 10:07 UTC by john.frankish
Modified: 2024-02-20 10:37 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description john.frankish 2021-11-13 10:07:26 UTC
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
Comment 1 john.frankish 2021-11-14 04:45:23 UTC
The same error occurs with libreoffice-7.2.3.1
Comment 2 Ali Haydar Çalışkan 2021-11-14 13:22:15 UTC
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.
Comment 3 john.frankish 2021-11-16 05:24:42 UTC
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()'
Comment 4 Kevin Suo 2021-11-17 11:36:36 UTC
For such build issues I suggest you go to the #libreoffice-dev irc channel for devs' advice.
Comment 5 hardikris 2024-02-20 10:37:04 UTC
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