When building sys-process/systemd-cron on a system with clang-17 installed using libcxx I receive the following error: clang++ -march=native -O3 -pipe -flto=thin -Wall -Wextra -fno-exceptions -Wno-psabi -std=c++20 -I /var/tmp/portage/sys-process/systemd-cron-2.2.0/work/systemd-cron-2.2.0/out/build/include /var/tmp/portage/sys-process/systemd-cron-2.2.0/work/systemd-cron-2.2.0/out/build/include/libvoreutils.hpp -o /var/tmp/portage/sys-process/systemd-cron-2.2.0/work/systemd-cron-2.2.0/out/build/include/libvoreutils.hpp.gch clang++: error: cannot specify -o when generating multiple output files make: *** [Makefile:220: /var/tmp/portage/sys-process/systemd-cron-2.2.0/work/systemd-cron-2.2.0/out/build/include/libvoreutils.hpp.gch] Error 1 Reproducible: Always Steps to Reproduce: 1. Have clang as a system compiler and use libcxx 2. Attempt to emerge systemd-cron Actual Results: Package does not compile Expected Results: Package compiles As per upstream bug report, builds fine using GCC.
Please always include the full build.log and emerge --info.
Sorry, they're attached upstream. Will add here
Created attachment 875666 [details] gcc systemd-cron
Created attachment 875667 [details] build.log (clang)
Created attachment 875668 [details] emerge --info
These logs are from manual builds, but I had the same problem with portage on v2.2.0, the issue appears to have been resolved upstream for a future release.
*** Bug 919410 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=d77f5a3f40122879f39a97420f170fca226e6e58 commit d77f5a3f40122879f39a97420f170fca226e6e58 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-01-14 17:10:48 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-14 17:15:20 +0000 sys-process/systemd-cron: disable PCH By policy in Gentoo, we don't do PCH as it's too brittle. Closes: https://bugs.gentoo.org/917646 Signed-off-by: Sam James <sam@gentoo.org> .../files/systemd-cron-2.3.0-pch.patch | 46 ++++++++++ .../systemd-cron/systemd-cron-2.3.0-r2.ebuild | 100 +++++++++++++++++++++ 2 files changed, 146 insertions(+)
Sorry - need to reopen this bug as the fix doesn't work - PCH= also needs to be added to the call to emake in src_install.
Created attachment 885224 [details] systemd-cron-2.3.0-r3.ebuild Proposed new ebuild
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4c75bbeaccd78d51241734b277d3c2b6b176b54 commit d4c75bbeaccd78d51241734b277d3c2b6b176b54 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-02-17 18:28:09 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-17 21:14:50 +0000 sys-process/systemd-cron: disable PCH harder Closes: https://bugs.gentoo.org/917646 Fixes: d77f5a3f40122879f39a97420f170fca226e6e58 Signed-off-by: Sam James <sam@gentoo.org> sys-process/systemd-cron/systemd-cron-2.3.0-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)