Created attachment 930934 [details] build.log.tar.bz2 Error during linking phase: ##### /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-office/libreoffice-25.2.4.2/work/libreoffice-25.2.4.2/workdir/CxxObject/sd/source/filter/xml/sdxmlwrp.o: in function `TestImportPPTX': sdxmlwrp.cxx:(.text+0x22f0): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-office/libreoffice-25.2.4.2/work/libreoffice-25.2.4.2/workdir/CxxObject/sd/source/filter/xml/sdxmlwrp.o: in function `TestImportFODP': sdxmlwrp.cxx:(.text+0x26c7): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-office/libreoffice-25.2.4.2/work/libreoffice-25.2.4.2/workdir/CxxObject/sd/source/filter/sdpptwrp.o: in function `SdPPTFilter::Export()': sdpptwrp.cxx:(.text+0xe37): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()' /usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-office/libreoffice-25.2.4.2/work/libreoffice-25.2.4.2/workdir/CxxObject/sd/source/filter/sdpptwrp.o: in function `SdPPTFilter::Import()': sdpptwrp.cxx:(.text+0x1663): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()' collect2: error: ld returned 1 exit status ##### This failure only happens with gcc and did not occur when I used to use llvm.
Created attachment 930935 [details] emerge info
Created attachment 930936 [details] emerge pqv
It's because of -Oz. *** This bug has been marked as a duplicate of bug 727188 ***
compiled and ran successfully with `-O2`. Thank you Sam James!
(In reply to dave@dave3.xyz from comment #4) > compiled and ran successfully with `-O2`. Thank you Sam James! You're welcome! :)