Summary: | app-office/libreoffice-7.5.5.2 fails to link with clang-17: ld.lld: error: version script assignment of 'PRIVATE_1.4' to symbol '_ZN3sal13backtrace_getEm' failed: symbol not defined | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ppw0 |
Component: | Current packages | Assignee: | Gentoo Office Team <office> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ajak, amanzharov, gem, sam, volkov |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://gerrit.libreoffice.org/c/core/+/143981 https://bugs.gentoo.org/show_bug.cgi?id=916333 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 731004, 836220, 912821 | ||
Attachments: |
build log
emerge --info |
Created attachment 872001 [details]
emerge --info
I can verify that I have the same issue. #MeToo meh. The upstream "fix" is to just silence it: https://github.com/LibreOffice/core/commit/baddc742c3fe260d20d7924ab134f0fbf179fd85. This also happens in a clang-17[-default-libcxx] environment. The attached patch does not solve the issue for me. It also does not work for me. Looking at the build log, I can't even find the option it sets anywhere. I guess it needs some changes or something. Currently, I have to set USE=-clang to get libreoffice (any available version) to build. USE="-clang" worked. Thanks! fail compile too -DLIBO_INTERNAL_ONLY -c $S/salhelper/source/simplereferenceobject.cxx -o $W/CxxObject/salhelper/source/simplereferenceobject.o -I$S/include -I/opt/openjdk-bin-17.0.8.1_p1/include -I/opt/openjdk-bin-17.0.8.1_p1/include/linux -I$S/config_host [CXX] salhelper/source/thread.cxx ld.lld: error: version script assignment of 'PRIVATE_1.4' to symbol '_ZN3sal13backtrace_getEm' failed: symbol not defined ld.lld: error: version script assignment of 'GLIBCXX_3.4' to symbol '_ZNSs4_Rep20_S_empty_rep_storageE' failed: symbol not defined x86_64-pc-linux-gnu-clang++: error: linker command failed with exit code 1 (use -v to see invocation) * ERROR: app-office/libreoffice-7.5.7.1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-office/libreoffice-7.5.7.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-office/libreoffice-7.5.7.1::gentoo'`. * The complete build log is located at '/var/tmp/portage/app-office/libreoffice-7.5.7.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-7.5.7.1/temp/environment'. * Working directory: '/var/tmp/portage/app-office/libreoffice-7.5.7.1/work/libreoffice-7.5.7.1' * S: '/var/tmp/portage/app-office/libreoffice-7.5.7.1/work/libreoffice-7.5.7.1' !!! When you file a bug report, please include the following information: GENTOO_VM=openjdk-bin-17 CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-17.0.8.1_p1" JAVACFLAGS="-source 11 -target 11" COMPILER="" and of course, the output of emerge --info =libreoffice-7.5.7.1 Sienna_Cichlid /home/roman # emerge --info|grep Time Timestamp of repository gentoo: Tue, 10 Oct 2023 12:30:02 +0000 No need for repeated confirmations, thanks. The problem is clear. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c9e8df3cb2bccfcd1699bbae7c30ee7ca616435 commit 1c9e8df3cb2bccfcd1699bbae7c30ee7ca616435 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-10-11 08:29:22 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-10-11 08:29:22 +0000 app-office/libreoffice: workaround failure w/ lld 17 Closes: https://bugs.gentoo.org/915067 Signed-off-by: Sam James <sam@gentoo.org> app-office/libreoffice/libreoffice-7.5.7.1.ebuild | 3 +++ app-office/libreoffice/libreoffice-7.5.9999.ebuild | 3 +++ app-office/libreoffice/libreoffice-9999.ebuild | 3 +++ 3 files changed, 9 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=275a3af1b2d6af3da05f7a0ba6a1f11bb5dee198 commit 275a3af1b2d6af3da05f7a0ba6a1f11bb5dee198 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-10-28 04:45:36 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-10-28 04:52:39 +0000 app-office/libreoffice: backport lld 17 workaround Closes: https://bugs.gentoo.org/916333 Bug: https://bugs.gentoo.org/915067 Signed-off-by: Sam James <sam@gentoo.org> app-office/libreoffice/libreoffice-7.5.6.2.ebuild | 3 +++ 1 file changed, 3 insertions(+) For the record, I still have the problem with "-clang" use. But adding "append-ldflags -Wl,--undefined-version" for "-clang" fix this problem. Then now I have https://bugs.gentoo.org/727188 |
Created attachment 872000 [details] build log In a clang-17[default-libcxx] environment, emerging app-office/libreoffice-7.5.5.2 will fail in the linking phase: --- ld.lld: error: version script assignment of 'PRIVATE_1.4' to symbol '_ZN3sal13backtrace_getEm' failed: symbol not defined ld.lld: error: version script assignment of 'GLIBCXX_3.4' to symbol '_ZNSs4_Rep20_S_empty_rep_storageE' failed: symbol not defined x86_64-pc-linux-gnu-clang++: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [/var/tmp/portage/app-office/libreoffice-7.5.5.2/work/libreoffice-7.5.5.2/sal/Library_sal.mk:11: /var/tmp/portage/app-office/libreoffice-7.5.5.2/work/libreoffice-7.5.5.2/instdir/program/libuno_sal.so.3] Error 1 make[1]: *** Waiting for unfinished jobs.... --- This failure can be avoided by passing "-Wl,--undefined-version" to LDFLAGS. Attaching logs.