If you only have LLVM and Clang 15 installed, and not 14, the build process doesn't process the $STRINGS and other variables correctly on the configure file. I might be able to paste the build logs and emerge --info later. Reproducible: Always Steps to Reproduce: 1. Only have Clang and LLVM 15 installed, and not GCC 2. emerge -1av cairo 3. Actual Results: Emerge fails. Expected Results: Successful emerge, without an output stating that the -a command has not been found. Works just fine if you run STRINGS="llvm-strings" emerge -1av cairo instead.
Please include the full build.log and emerge --info. There's nothing actionable in this bug. I've fixed texlive-core a few minutes ago (bug 872110) but cairo itself was fixed over a year ago (bug 726200).
$STRINGS defaults to 'strings' which is a utility from the 'binutils' package. If you don't have binutils installed, the default value for $STRINGS won't work. In such cases, you probably do need to manually set STRINGS to something else. However, as I understand it, this would be the case with both CLANG/LLVM-14 and CLANG/LLVM-15. The only role I see llvm playing here is to provide an alternative for binutils's strings utility. If I'm misunderstanding something, please add the output of emerge --info and a log demonstrating the error (preferably a build log).
Created attachment 813187 [details] Build log
Portage 3.0.36 (python 3.10.7-final-0, default/linux/amd64/17.0/musl/hardened, [unavailable], musl-1.2.3-r4, 5.19.6-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.19.6-gentoo-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-libc KiB Mem: 32799740 total, 26286684 free KiB Swap: 8374268 total, 8374268 free Timestamp of repository gentoo: Wed, 21 Sep 2022 01:46:48 +0000 Head commit of repository gentoo: 6ae7923a1dae11185e3dd0db866feb5818f3de99 Head commit of repository clang-musl: ec4020fcfd4ce866bac5962995a918bf6041105e Timestamp of repository guru: Mon, 19 Sep 2022 06:31:45 +0000 Head commit of repository guru: f7c8bab90df3ae80e0bdf51fdcdcf90cee6a7cb4 Timestamp of repository musl: Mon, 12 Sep 2022 19:25:25 +0000 Head commit of repository musl: e6dd47112d070c323e0d399bb67845c4d3ae2bac Head commit of repository librewolf: 964d58b3bc9fba0174051ae1c4c42023528fd38a sh bash 5.1_p16-r2 ld LLD 15.0.0 (compatible with GNU linkers) app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r2::gentoo dev-lang/perl: 5.36.0::gentoo dev-lang/python: 3.10.7::gentoo dev-lang/rust: 1.63.0::clang-musl dev-util/cmake: 3.24.2::gentoo dev-util/meson: 0.63.2-r1::gentoo sys-apps/baselayout: 2.9::gentoo sys-apps/openrc: 0.45.2::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.13-r3::gentoo, 2.71-r4::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/clang: 15.0.0-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 15.0.0::gentoo sys-devel/llvm: 15.0.0::clang-musl sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.19::gentoo (virtual/os-headers) sys-libs/musl: 1.2.3-r4::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo priority: -1000 sync-git-verify-commit-signature: true clang-musl location: /var/db/repos/clang-musl sync-type: git sync-uri: https://github.com/clang-musl-overlay/clang-musl-overlay.git masters: gentoo guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo local location: /var/db/repos/local masters: gentoo musl location: /var/db/repos/musl sync-type: git sync-uri: https://github.com/gentoo-mirror/musl.git masters: gentoo librewolf location: /var/db/repos/librewolf sync-type: git sync-uri: https://gitlab.com/librewolf-community/browser/gentoo.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" AR="llvm-ar" CBUILD="x86_64-gentoo-linux-musl" CC="clang" CFLAGS="-march=native -O3 -pipe -mllvm -polly -flto=thin" CHOST="x86_64-gentoo-linux-musl" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CPP="x86_64-gentoo-linux-musl-clang-cpp" CXX="clang++" CXXFLAGS="-march=native -O3 -pipe -mllvm -polly -flto=thin" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-march=native -O3 -pipe -mllvm -polly" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O3 -pipe -mllvm -polly" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="charset.alias /usr/share/locale/locale.alias" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O2 -Wl,--as-needed" MAKEOPTS="-j7" NM="llvm-nm" PKGDIR="/var/cache/binpkgs" 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="/tmp" RANLIB="llvm-ranlib" RUSTFLAGS="-C opt-level=3 -C codegen-units=8 -C target-cpu=native -C llvm-args=--polly" SHELL="/bin/bash" USE="aac acl aes alsa amd64 apparmor avx avx2 bash-completion bzip2 cdda clang cli compiler-rt cpu-flags-x86-rdrand crypt custom-cflags default-compiler-rt default-libcxx default-lld dri dvd elogind f16c ffmpeg flac fma3 fontconfig fontforge fortran gdk-pixbuf gegl gif gstreamer gtk3 haptic hardened headless-awt iconv ipv6 jpeg jpeg2k jpg kerberos libass libcxx libcxxabi libglvnd libtirpc lld llvm-libunwind lm-sensors lto mmx mmxext mp3 mpeg ncurses nftables nls nptl ogg opengl openmp opus pam pango pclmul pcre pgo pie pipewire pipewire-alsa png polly popcnt pulseaudio rdrand readline screencast seccomp sha split-usr sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssp ssse3 svg system-zlib theora threads truetype udev unicode vaapi vcd vdpau verify-sig vorbis vpx vtv vulkan wayland x264 x265 xattr xtpax zink zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en de eo pt-BR de-DE" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-3 luajit" LUA_TARGETS="lua5-3 luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby31" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, ARFLAGS, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= x11-libs/cairo-1.16.0-r5::gentoo was built with the following: USE="glib opengl svg -X (-aqua) -debug -gles2-only -static-libs -utils -valgrind"
Ah, now I get it. 1. You're using an old LLVM (you're missing https://gitweb.gentoo.org/repo/gentoo.git/commit/sys-devel/llvm?id=bdf39f35ac968c1f5656096b9c9667a3101f4f2d which creates e.g. 'strings' and such for the benefit of some installs, see bug 870577). You're also not using LLVM from ::gentoo. Upgrade. 2. You should be using the Clang profile, like I told you the other day, which sets STRINGS for you. If you manufacture not having binutils yourself, make sure you configure things correctly. Either one of those would've avoided this situation.