Bug 156210 - Build failure with gcc-11
Summary: Build failure with gcc-11
Status: RESOLVED MOVED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-09 16:36 UTC by Sakura286
Modified: 2023-09-13 06:32 UTC (History)
3 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 Sakura286 2023-07-09 16:36:13 UTC
Description:
I tried to build libreoffice 7.5.4 with gcc 12.3.0 on riscv64 but it failed:

/usr/bin/ld: /home/infinity/libreoffice-build/workdir/CxxObject/xmloff/source/core/xmlimp.o: in function `.LEHB218':                                                                                
xmlimp.cxx:(.text+0x6256): 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]: *** [/home/infinity/libreoffice-build/xmloff/Library_xo.mk:20: /home/infinity/libreoffice
-build/instdir/program/libxolo.so] Error 1
make: *** [Makefile:289: build] Error 2

The error log is almost same with bug 142442[1] and bug 145656[2].

Although in bug 142442 gcc-10 patch[3] was mentioned, but it seems that the patch solved another problem[4] about 'XSeekable', which is different to 'XCloneable'. I have applied the patch, it does not help with this error.

I tried to modify 'xmloff/source/core/xmlimp.cxx' but it doesn't work:

+template class css::uno::Reference < css::util::XCloneable >;

[1] https://bugs.documentfoundation.org/show_bug.cgi?id=142442
[2] https://bugs.documentfoundation.org/show_bug.cgi?id=145656
[3] https://bug-attachments.documentfoundation.org/attachment.cgi?id=172646
[4] https://bugs.gentoo.org/727188

Steps to Reproduce:
On riscv64, run

./autogen.sh --with-system-firebird --with-galleries=no --disable-skia

Actual Results:
None

Expected Results:
None


Reproducible: Always


User Profile Reset: No

Additional Info:
None
Comment 1 raal 2023-08-15 22:51:24 UTC
cc to Hossein, maybe he can help.
Comment 2 Buovjaga 2023-09-13 06:32:46 UTC
Build failures are not discussed in Bugzilla, but the dev list: https://wiki.documentfoundation.org/QA/BugReport#Not_all_bugs_go_to_Bugzilla