Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875101 - net-irc/irssi-1.4.2 - meson.build: ERROR: Problem encountered: error linking with perl libraries
Summary: net-irc/irssi-1.4.2 - meson.build: ERROR: Problem encountered: error linking ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-04 16:43 UTC by Toralf Förster
Modified: 2022-10-05 19:04 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.72 KB, text/plain)
2022-10-04 16:43 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,63.08 KB, text/plain)
2022-10-04 16:43 UTC, Toralf Förster
Details
environment (environment,116.27 KB, text/plain)
2022-10-04 16:43 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,12.92 KB, application/x-bzip)
2022-10-04 16:43 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,3.90 KB, application/x-bzip)
2022-10-04 16:43 UTC, Toralf Förster
Details
net-irc:irssi-1.4.2:20221004-054243.log (net-irc:irssi-1.4.2:20221004-054243.log,4.45 KB, text/plain)
2022-10-04 16:43 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,30.08 KB, application/x-bzip)
2022-10-04 16:43 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-10-04 16:43:21 UTC
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)"
Comment 1 Toralf Förster gentoo-dev 2022-10-04 16:43:22 UTC
Created attachment 819901 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-04 16:43:23 UTC
Created attachment 819904 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-04 16:43:24 UTC
Created attachment 819907 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-04 16:43:25 UTC
Created attachment 819910 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-04 16:43:26 UTC
Created attachment 819913 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-04 16:43:27 UTC
Created attachment 819916 [details]
net-irc:irssi-1.4.2:20221004-054243.log
Comment 7 Toralf Förster gentoo-dev 2022-10-04 16:43:28 UTC
Created attachment 819919 [details]
temp.tar.bz2
Comment 8 Eli Schwartz 2022-10-04 21:20:20 UTC
```
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.
Comment 9 Sven Wegener gentoo-dev 2022-10-05 19:04:12 UTC
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.