Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953639 - =net-print/libcupsfilters-2.1.1 fails to run tests with clang+lld due to hardcoded linker search path
Summary: =net-print/libcupsfilters-2.1.1 fails to run tests with clang+lld due to hard...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Printing Team
URL:
Whiteboard:
Keywords: PATCH, TESTFAILURE
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2025-04-12 15:27 UTC by Fabio Scaccabarozzi
Modified: 2025-04-14 23:16 UTC (History)
1 user (show)

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


Attachments
Failing build logs (net-print:libcupsfilters-2.1.1:20250412-151453.log,102.60 KB, text/x-log)
2025-04-12 15:28 UTC, Fabio Scaccabarozzi
Details
Remove explicit lib search path for tests (remove-explicit-lib-search-path-for-tests.patch,585 bytes, patch)
2025-04-12 15:29 UTC, Fabio Scaccabarozzi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Scaccabarozzi 2025-04-12 15:27:40 UTC
Using clang-19 + lld as linker, libcupsfilters cannot run tests because it fails linking them (see attached logs). Build succeeds properly.

Attached patch fixes the linking and makes tests pass, but ebuilds will also need to run autoreconf, as the project uses automake:1.16, which is not depended on anymore (see previous invalid bug report: https://bugs.gentoo.org/953628 ).

Reproducible: Always

Steps to Reproduce:
1. Use clang-19 + lld
2. FEATURES=test emerge -1 libcupsfilters
3.
Actual Results:  
Tests fail.

Expected Results:  
Tests should pass.

Portage 3.0.67 (python 3.12.10-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-14, glibc-2.40-r8, 6.14.2-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.14.2-gentoo-x86_64-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.40
KiB Mem:    65698044 total,  10199384 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository guru: Thu, 10 Apr 2025 14:38:12 +0000
Head commit of repository guru: 972e41f943792af5ddf42a995eb27eb04b8a43a0

Timestamp of repository pentoo: Thu, 10 Apr 2025 14:37:57 +0000
Head commit of repository pentoo: e0191bd485fc9a8d02bd2cf4fa71ceb35590faa9

Head commit of repository steam-overlay: d93137ae2575727f9df5d43ce6e0368d44b6c0e7

Timestamp of repository gentoo: Sat, 12 Apr 2025 08:05:26 +0000
Head commit of repository gentoo: e136874796c2959e409d47ad2da072a9d1398ef8

sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
ccache version 4.10.2 [disabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.31.5::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.12.10::gentoo, 3.13.3::gentoo
dev-lang/rust:             1.85.1::gentoo
dev-util/ccache:           4.10.2-r1::gentoo
llvm-core/clang:           19.1.7::gentoo
llvm-core/lld:             19.1.7::gentoo
llvm-core/llvm:            19.1.7::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-apps/systemd:          256.10::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20250301::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.14::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::gentoo
Repositories:

guru
    location: /nr/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    priority: 400
    volatile: True

pentoo
    location: /nr/repos/pentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pentoo.git
    masters: gentoo
    priority: 400
    volatile: True

steam-overlay
    location: /nr/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 400
    volatile: True

gentoo
    location: /nr/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    sync-user: portage:portage
    priority: 500
    volatile: True

cosmic-overlay
    location: /nr/repos/cosmic-overlay
    masters: gentoo
    priority: 600
    volatile: True

fsvm88-overlay
    location: /nr/repos/fsvm88-overlay
    masters: gentoo
    priority: 600
    volatile: True

Installed sets: @administration, @archivers, @backup, @core, @cosmic, @deep_learning, @desktop, @desktop_apps, @devel, @drivers, @editors, @filesystems, @forensics, @games, @internet, @kubernetes, @monitoring, @multimedia, @opencl, @pentesting, @pkgmgmt, @powermgmt, @rocm, @rust, @rust-ebuilds, @scanner, @science, @sway, @virtualization, @vpn, @work
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="clang-19 -c"
CBUILD="x86_64-pc-linux-gnu"
CC="clang-19"
CFLAGS="-O3 -march=native -pipe -glldb -flto=thin -fwhole-program-vtables -gline-tables-only"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CPP="clang-cpp-19"
CXX="clang++-19"
CXXFLAGS="-O3 -march=native -pipe -glldb -flto=thin -fwhole-program-vtables -gline-tables-only"
DISTDIR="/nr/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --with-bdeps=y --backtrack=10000"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox split-elog splitdebug strict test unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.init7.net/gentoo/ https://mirror.init7.net/gentoo/ rsync://mirror.init7.net/gentoo/"
LANG="it_IT.utf8"
LD="ld.lld"
LDFLAGS="-O3 -march=native -pipe -glldb -flto=thin -fwhole-program-vtables -gline-tables-only -Wl,-O3,-z,now,--as-needed,--lto-O3,--icf=safe"
LEX="flex"
LINGUAS="de en en-US es it"
MAKEOPTS="-j36"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
PKGDIR="/nr/packages"
PORTAGE_BINHOST="/nr/packages"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_COMPRESS="lbzip2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RANLIB="llvm-ranlib"
READELF="llvm-readelf"
SHELL="/bin/fish"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="X a52 aac acl acpi amd64 appindicator bluetooth bpf branding btrfs bzip2 cairo caps cdda cdr cet clang crypt cryptsetup cups custom-cflags dbus djvu dri dts dvd dvdr egl encode exif expat ffmpeg flac fontconfig gdbm gif git gles2 gles2-only gpg gphoto2 gpm gstreamer gtk gtk3 gui http2 iconv icu imagemagick io-uring ipv6 jpeg jpeg2k jumbo-build kf6compat lcms libass libnotify libtirpc llvm-libunwind lm_sensors lto mad mng modules-sign mp3 mp4 mpeg mpris multilib ncurses nftables nls ogg openal opencl opengl openmp opus pam pango pcre pdf pie pipewire png policykit postgres ppds qml rar readline scanner sdl seccomp secureboot socks5 sound spell ssh ssl startup-notification svg system-ffmpeg system-icu system-libvpx systemd taglib test test-rust theora threads tiff tpm truetype udev udisks unicode upower usb v4l vaapi verify-sig vorbis vulkan wayland webp x264 x265 xattr xcb xft xml zeroconf zlib zstd" ABI_X86="64" ADA_TARGET="gcc_14" AMDGPU_TARGETS="gfx1010" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon p2p" COLLECTD_PLUGINS="chrony conntrack contextswitch cpu cpufreq cpusleep df disk dns entropy ethstat fhcount fscache hugepages interface ipc irq load mbmon memory netlink sensors smart swap tcpconns thermal unixsock uptime virt vmem write_prometheus zfs_arc" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64 pc" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en en-US es it" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_SLOT="19" LLVM_TARGETS="AMDGPU BPF SPIRV X86 WebAssembly" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_SOFTMMU_TARGETS="aarch64 i386 mipsn32el mipsn32 mips x86_64" QEMU_USER_TARGETS="aarch64 i386 mipsn32el mipsn32 mips x86_64" RUBY_TARGETS="ruby32" SANE_BACKENDS="hp epson epson2 epsonds escl net" VIDEO_CARDS="amdgpu radeonsi virgl zink" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RUSTFLAGS, SIZE, YACC, YFLAGS
Comment 1 Fabio Scaccabarozzi 2025-04-12 15:28:01 UTC
Created attachment 924465 [details]
Failing build logs
Comment 2 Fabio Scaccabarozzi 2025-04-12 15:29:10 UTC
Created attachment 924466 [details, diff]
Remove explicit lib search path for tests