Bug 146829 - svt linking failure
Summary: svt linking failure
Status: RESOLVED MOVED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.3.0.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-17 16:36 UTC by Ismael Luceno
Modified: 2022-12-12 14:59 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
config.log (211.32 KB, text/x-log)
2022-01-17 16:39 UTC, Ismael Luceno
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ismael Luceno 2022-01-17 16:36:50 UTC
Build log:

Automatic fetching of external tarballs is disabled.
mkdir -p /media/bulk/ismael/proj/office/libreoffice-core.build/instdir
/media/bulk/ismael/proj/office/libreoffice-core/solenv/bin/install-gdb-printers -a /media/bulk/ismael/proj/office/libreoffice-core.build/instdir -c
make   -rs -f /media/bulk/ismael/proj/office/libreoffice-core/Makefile.gbuild build  
[build DEP] LNK:Library/libsvtlo.so
[build LNK] Library/libsvtlo.so
/usr/bin/ld: /media/bulk/ismael/proj/office/libreoffice-core.build/workdir/CxxObject/svtools/source/misc/imageresourceaccess.o: in function `svt::GraphicAccess::getImageStream(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&)':
imageresourceaccess.cxx:(.text+0xa52): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
/usr/bin/ld: /media/bulk/ismael/proj/office/libreoffice-core.build/workdir/CxxObject/svtools/source/misc/imageresourceaccess.o: in function `svt::GraphicAccess::getImageXStream(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&)':
imageresourceaccess.cxx:(.text+0xf5b): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
collect2: error: ld returned 1 exit status
make[1]: *** [/media/bulk/ismael/proj/office/libreoffice-core/svtools/Library_svt.mk:20: /media/bulk/ismael/proj/office/libreoffice-core.build/instdir/program/libsvtlo.so] Error 1
make: *** [Makefile:288: build] Error 2
Comment 1 Ismael Luceno 2022-01-17 16:39:40 UTC
Created attachment 177616 [details]
config.log
Comment 2 Ismael Luceno 2022-01-17 16:44:28 UTC
The system uses musl libc; shouldn't be relevant.

- GCC 10.3.0
- clang 13.0.0
- linker: gnu ld 2.37

ac_cv_prog_CXX=x86_64-pc-linux-musl-g++
ac_cv_prog_LO_CLANG_CXX=clang++
COMPILER_PLUGINS_CXX=''
CXX='x86_64-pc-linux-musl-g++'
LO_CLANG_CXX='clang++'
MSVC_CXX=''
ac_ct_CXX=''
Comment 3 Ismael Luceno 2022-01-17 16:53:03 UTC
With CC=clang CXX=clang++ linking succeeds.
Comment 4 Ismael Luceno 2022-01-17 16:55:12 UTC
(In reply to Ismael Luceno from comment #3)
> With CC=clang CXX=clang++ linking succeeds.

My bad, no, it doesn't, it just rebuilt some other stuff. Then failed again:

Automatic fetching of external tarballs is disabled.
mkdir -p /media/bulk/ismael/proj/office/libreoffice-core.build/instdir
/media/bulk/ismael/proj/office/libreoffice-core/solenv/bin/install-gdb-printers -a /media/bulk/ismael/proj/office/libreoffice-core.build/instdir -c
make   -rs -f /media/bulk/ismael/proj/office/libreoffice-core/Makefile.gbuild build  
[build DEP] LNK:Library/libsvtlo.so
[build LNK] Library/libsvtlo.so
/usr/bin/ld: /media/bulk/ismael/proj/office/libreoffice-core.build/workdir/CxxObject/svtools/source/misc/imageresourceaccess.o: in function `svt::GraphicAccess::getImageStream(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&)':
imageresourceaccess.cxx:(.text+0xa52): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
/usr/bin/ld: /media/bulk/ismael/proj/office/libreoffice-core.build/workdir/CxxObject/svtools/source/misc/imageresourceaccess.o: in function `svt::GraphicAccess::getImageXStream(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&)':
imageresourceaccess.cxx:(.text+0xf5b): undefined reference to `non-virtual thunk to cppu::ImplInheritanceHelper<utl::OInputStreamWrapper, com::sun::star::io::XSeekable>::acquire()'
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [/media/bulk/ismael/proj/office/libreoffice-core/svtools/Library_svt.mk:20: /media/bulk/ismael/proj/office/libreoffice-core.build/instdir/program/libsvtlo.so] Error 1
make: *** [Makefile:288: build] Error 2
Comment 5 Ismael Luceno 2022-01-31 13:00:53 UTC
Turns out recompiling from scratch with clang solved the issue.

I would like to know what's exactly behind this to avoid forcing a dependency in clang in the future.
Comment 6 Buovjaga 2022-12-12 14:58:58 UTC
You can ask about build issues on the developer mailing list.