Checking for function "setupterm" with dependency -ltinfo: YES Compiler for C supports arguments -fPIC: YES Checking if "working Perl support" : links: NO meson.build:390:6: ERROR: Problem encountered: error linking with perl libraries A full log can be found at /var/tmp/portage/net-irc/irssi-1.4.2/work/irssi-1.4.2-build/meson-logs/meson-log.txt ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_systemd-j4-20221003-222746 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-12.2.0 * clang/llvm (if any): clang version 15.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin /usr/lib/llvm/15 15.0.1 Python 3.10.7 Available Rust versions: [1] rust-bin-1.64.0 * The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): GNU Make 4.3 HEAD of ::gentoo commit 7178c82507c105041b97e9aeb445f5a94b6f38a1 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Tue Oct 4 04:47:39 2022 +0000 2022-10-04 04:47:39 UTC emerge -qpvO net-irc/irssi [ebuild N ] net-irc/irssi-1.4.2 USE="perl proxy -otr (-selinux)"
Created attachment 819901 [details] emerge-info.txt
Created attachment 819904 [details] emerge-history.txt
Created attachment 819907 [details] environment
Created attachment 819910 [details] etc.portage.tar.bz2
Created attachment 819913 [details] logs.tar.bz2
Created attachment 819916 [details] net-irc:irssi-1.4.2:20221004-054243.log
Created attachment 819919 [details] temp.tar.bz2
``` Command line: clang -L/usr/lib64/perl5/5.36/x86_64-linux-quadmath/CORE /var/tmp/portage/net-irc/irssi-1.4.2/work/irssi-1.4.2-build/meson-private/tmp_4p3d1sw/testfile.c -o /var/tmp/portage/net-irc/irssi-1.4.2/work/irssi-1.4.2-build/meson-private/tmp_4p3d1sw/output.exe -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -O0 -Werror=implicit-function-declaration -march=native -fno-diagnostics-color -fwrapv -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -isystem/usr/lib64/perl5/5.36/x86_64-linux-quadmath/CORE -fPIC -Wl,-E -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--start-group -lperl -ldl -lm -lcrypt -lutil -Wl,--end-group -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 Code: #include <EXTERN.h> #include <perl.h> int main() { perl_alloc(); return 0; } Compiler stdout: Compiler stderr: In file included from /var/tmp/portage/net-irc/irssi-1.4.2/work/irssi-1.4.2-build/meson-private/tmp_4p3d1sw/testfile.c:3: /usr/lib64/perl5/5.36/x86_64-linux-quadmath/CORE/perl.h:2388:13: fatal error: 'quadmath.h' file not found # include <quadmath.h> ^~~~~~~~~~~~ 1 error generated. Checking if "working Perl support" : links: NO meson.build:390:6: ERROR: Problem encountered: error linking with perl libraries ``` Apparently GCC quadmath does not exist as far as clang is concerned? Not familiar with Gentoo's x86_64-linux-quadmath/ perl directory but overall this just seems to be the compiler being deeply unhappy with the usability of perl in a code snippet.
It looks like perl has been built by gcc with USE=quadmath enabled. As quadmath is gcc-only, building with clang fails, as the quadmath includes are in gcc's include directories.
Bug obsolete, llvm profile masks quadmath for perl.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96d3611375863d4bdade73eaef4fe26a1259149d commit 96d3611375863d4bdade73eaef4fe26a1259149d Author: Sam James <sam@gentoo.org> AuthorDate: 2024-05-08 10:15:07 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-05-08 10:15:07 +0000 profiles/features/llvm: mask perl_features_quadmath While perl_features_quadmath is new, it's likely we forgot to close the old bugs when adding the initial old mask for USE=quadmath to the LLVM profiles. We may still need to figure something out for when people do CC=clang though... Closes: https://bugs.gentoo.org/835663 Closes: https://bugs.gentoo.org/875101 Closes: https://bugs.gentoo.org/885571 Closes: https://bugs.gentoo.org/931562 Signed-off-by: Sam James <sam@gentoo.org> profiles/features/llvm/use.mask | 6 ++++++ 1 file changed, 6 insertions(+)