Created attachment 885696 [details] emerge --info libcxx-18 added stack system header to its imported header leading to this unusual behaviour with clang accepting executables in include paths to happen. https://github.com/llvm/llvm-project/commit/82d21814e6556480a71c83a2f8da350d0c8cadf6 $ cat test.cxx #include <iostream> $ ls stack # executable test.cxx $ clang++ -I. -c -o test.o test.cxx # failure $ clang++ -c -o test.o test.cxx # success $ g++ -I. -c -o test.o test.cxx # success Id argue this is a bug with clang rather than elfutils.
Created attachment 885697 [details] dev-libs/elfutils-0.190 build.log (xz compressed)
I can also reproduce this using gcc-full.conf on package.env I gonna include my logs and env file
Created attachment 886633 [details] efutils build log and gcc-full.conf env file
Created attachment 892277 [details] build log Adding build log for dev-libs/elfutils-0.191 using llvm profile and # clang --version = clang version 18.1.4+libcxx
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=631d30345702f6c5aa323808f8ebbae1c0fbd5ea commit 631d30345702f6c5aa323808f8ebbae1c0fbd5ea Author: Alfred Wingate <parona@protonmail.com> AuthorDate: 2024-03-11 08:03:00 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-06-09 16:21:56 +0000 dev-libs/elfutils: avoid overriding libcxx system header Closes: https://bugs.gentoo.org/925241 Signed-off-by: Alfred Wingate <parona@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/35707 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/elfutils/elfutils-0.191-r1.ebuild | 123 +++++++++++++++++++++ ...191-avoid-overriding-libcxx-system-header.patch | 28 +++++ 2 files changed, 151 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0998c45f60570c31e5833e333f226056f974202c commit 0998c45f60570c31e5833e333f226056f974202c Author: Sam James <sam@gentoo.org> AuthorDate: 2024-08-31 01:36:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-08-31 01:36:13 +0000 dev-libs/elfutils: bring back USE=static-libs I dropped it in 8d06a4aeffc377c8e4edd58e0e7b085ba20b16f6 and while it _was_ broken, it was only broken recently by the autoreconf added for the libcxx patch, so let's bring it back. I had assumed it was been broken for longer. Bug: https://bugs.gentoo.org/925241 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/elfutils/elfutils-0.191-r2.ebuild | 141 +++++++++++++++++++++++++++++ dev-libs/elfutils/elfutils-9999.ebuild | 16 ++-- 2 files changed, 151 insertions(+), 6 deletions(-)