https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: net-print/cups-filters-1.28.17 fails to compile (MUSL-CLANG-SYSTEM). Discovered on: amd64 (internal ref: tinderbox_musl) NOTE: (MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Created attachment 854936 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: filter/texttopdf.c:236:24: warning: passing arguments to 'write_pretty_header' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] grep: /usr/share/liblouis/tables/*.ctb: No such file or directory grep: /usr/share/liblouis/tables/*.utb: No such file or directory werror: no
Same as bug #898156? Have you tried 1.28.17-r1?
The new ebuild now fails for me with this error message instead: filter/pdftoraster.cxx:2154:34: error: ISO C++17 does not allow dynamic exception specifications [-Wdynamic-exception-spec] void * operator new(size_t size) _GLIBCXX_THROW (std::bad_alloc) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ filter/pdftoraster.cxx:2151:24: note: expanded from macro '_GLIBCXX_THROW' #define _GLIBCXX_THROW throw ^ filter/pdftoraster.cxx:2154:34: note: use 'noexcept(false)' instead void * operator new(size_t size) _GLIBCXX_THROW (std::bad_alloc) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ noexcept(false) It actually worked for me with std=c++11 (I guess it's due to me using LLVM's libcxx instead of GNU's libstdc++).
Created attachment 857353 [details] emerge --info output and build.log
(In reply to Markus from comment #3) > Same as bug #898156? > Have you tried 1.28.17-r1? This ebuild worked for me, where 1.28.17 didn't.
*** Bug 901243 has been marked as a duplicate of this bug. ***
(In reply to Carlos from comment #4) > The new ebuild now fails for me with this error message instead: > > filter/pdftoraster.cxx:2154:34: error: ISO C++17 does not allow dynamic > exception specifications [-Wdynamic-exception-spec] > void * operator new(size_t size) _GLIBCXX_THROW (std::bad_alloc) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > filter/pdftoraster.cxx:2151:24: note: expanded from macro '_GLIBCXX_THROW' > #define _GLIBCXX_THROW throw > ^ > filter/pdftoraster.cxx:2154:34: note: use 'noexcept(false)' instead > void * operator new(size_t size) _GLIBCXX_THROW (std::bad_alloc) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > noexcept(false) > > It actually worked for me with std=c++11 (I guess it's due to me using > LLVM's libcxx instead of GNU's libstdc++). Happens for me with 1.28.17-r1 on default/linux/amd64/17.1/clang profile. See #901243
1.28.17 compiles just fine on default/linux/amd64/17.1/clang profile. Looks like the change of -std=c++11 to -std=c++17 is breaking the build for me.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c79a0e06a7be1a76ec0368168cafdcf708b977b7 commit c79a0e06a7be1a76ec0368168cafdcf708b977b7 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-03-14 22:45:05 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-03-14 22:46:19 +0000 net-print/cups-filters: fix build w/ C++17 Closes: https://bugs.gentoo.org/898076 Closes: https://bugs.gentoo.org/901243 Signed-off-by: Sam James <sam@gentoo.org> .../cups-filters/cups-filters-1.28.17-r1.ebuild | 4 +++ .../files/cups-filters-1.28.17-c++17.patch | 31 ++++++++++++++++++++++ 2 files changed, 35 insertions(+)