Created attachment 884425 [details] emerge --info app-office/libreoffice-24.2.0.3 fails to compile with libc++-19 (musl/clang/merged-usr) Steps to Reproduce: - Compile with `emerge =app-office/libreoffice-24.2.0.3::gentoo` [C ] soltools/mkdepend/cppsetup.c In file included from /var/tmp/portage/app-office/libreoffice-24.2.0.3/work/libreoffice-24.2.0.3/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx:20: In file included from /var/tmp/portage/app-office/libreoffice-24.2.0.3/work/libreoffice-24.2.0.3/sdext/source/pdfimport/xpdfwrapper/pnghelper.hxx:24: In file included from /var/tmp/portage/app-office/libreoffice-24.2.0.3/work/libreoffice-24.2.0.3/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx:36: In file included from /usr/include/poppler/GfxState.h:41: In file included from /usr/include/poppler/Object.h:39: In file included from /usr/include/c++/v1/set:1499: In file included from /usr/include/c++/v1/functional:526: In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:27: In file included from /usr/include/c++/v1/vector:325: In file included from /usr/include/c++/v1/__format/formatter_bool.h:20: In file included from /usr/include/c++/v1/__format/formatter_integral.h:21: In file included from /usr/include/c++/v1/__format/formatter_output.h:22: In file included from /usr/include/c++/v1/__format/parser_std_format_spec.h:39: /usr/include/c++/v1/string:730:43: error: implicit instantiation of undefined template 'std::char_traits<unsigned short>' 730 | static_assert((is_same<_CharT, typename traits_type::char_type>::value), | ^ /usr/include/poppler/cpp/poppler-global.h:101:43: note: in instantiation of template class 'std::basic_string<unsigned short>' requested here 101 | class POPPLER_CPP_EXPORT ustring : public std::basic_string<unsigned short> | ^ /usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here 23 | struct _LIBCPP_TEMPLATE_VIS char_traits; | ^
Created attachment 884426 [details] build.log
Can you come up with a fix and send that upstream?
Created attachment 889290 [details, diff] ebuild.patch The build errors appear when compiling third-party code, patching the bundled zxcvbn-c addon (and poppler system library) should work
24.2.6.2 still affected.
This should probably block bug 836220, this affects also clang/libcxx with glibc.
Please remove MUSL from title as this issue affects only >=libcxx-19 and not musl at all :)
I'm facing the same issue and tried building with libstd, but that also fails with this error during configure script: configure: error: Your libstdc++ headers are not visibility safe. This is no longer supported. FYI: my libstd script doesn't redefine CXXFLAGS, but rather appends `-stdlib=libstdc++` Is this related or even relevant?
https://bugs.gentoo.org/940119
*** Bug 940119 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceca90a5c957a4ad070f881ba2b6ff2404a091e1 commit ceca90a5c957a4ad070f881ba2b6ff2404a091e1 Author: LinuxUserGD <hugegameartgd@gmail.com> AuthorDate: 2024-06-17 18:34:56 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-11-14 21:28:57 +0000 app-office/libreoffice: Fix build with Clang 19 Closes: https://bugs.gentoo.org/923950 Upstream-PR: https://gerrit.libreoffice.org/c/core/+/163048 Upstream-Commit: https://git.libreoffice.org/core/commit/d91ab7de467abea6c01c9dd8473f81ac1f29513c Signed-off-by: LinuxUserGD <hugegameartgd@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/37199 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> ...reoffice-24.2.7.2-no-std-basic_string-int.patch | 119 +++++++++++++++++++++ app-office/libreoffice/libreoffice-24.2.7.2.ebuild | 3 + 2 files changed, 122 insertions(+)