Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913750 - sys-libs/binutils-libs-2.40-r5 on llvm-openrc profile : "clang-16: error: unsupported option '-print-multi-os-directory'"
Summary: sys-libs/binutils-libs-2.40-r5 on llvm-openrc profile : "clang-16: error: uns...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Profiles (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/bugzilla/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-07 10:39 UTC by Neko-san
Modified: 2024-04-04 23:16 UTC (History)
0 users

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


Attachments
Emerge-info and Emerge Build Log (Emerge-info and Emerge Build Log.tar.gz,59.96 KB, application/gzip)
2023-09-07 11:26 UTC, Neko-san
Details
Build Log (Build Log.tar.gz,55.68 KB, application/gzip)
2023-09-11 14:03 UTC, Neko-san
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neko-san 2023-09-07 10:39:11 UTC
On the LLVM-OpenRC profile the build throws 20 errors, namely, this repeatedly:

clang-16: error: unsupported option '-print-multi-os-directory'
clang-16: error: no input files

though still somehow completes the build and installs anyway for some reason?

And 22 occurrences of things like this:
ld.lld: warning: version script assignment of '(something)' to symbol '(something)' failed: symbol not defined

I'm assuming this is because the package is expecting to be built by GCC but the profile does nothing to accommodate that (for some reason I don't know why) and nor does it do anything for binutils itself being built (which seems to build without errors, if I remember correctly?)

I take it this is supposed to be a more serious problem than how portage is reacting to it given that it *seems* that LLVM is meddling where it shouldn't?
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-07 10:40:06 UTC
Very hard to say without the full build.log and emerge --info, but it's probably because trying to use USE=pgo.
Comment 2 Neko-san 2023-09-07 11:26:22 UTC
Created attachment 870031 [details]
Emerge-info and Emerge Build Log

I don't have PGO enabled
Also, I could've sworn I applied the attachment but it didn't send; looks like it might've been because the file size was too large
Comment 3 Mike Gilbert gentoo-dev 2023-09-09 19:20:42 UTC
Comment on attachment 870031 [details]
Emerge-info and Emerge Build Log

Please attach the build log as a standalone file, not in a tarball.

Provide emerge --info in a comment.

Change the bug status to UNCONFIRMED once this is done.
Comment 4 Neko-san 2023-09-11 14:03:27 UTC
Created attachment 870315 [details]
Build Log

I know you didn't want the build log compressed but I **have** to compress it or I won't be able to upload it at all. 1000KBs is VERY easy to exceed.

-----

Portage 3.0.49 (python 3.11.5-final-0, default/linux/amd64/17.1/clang, gcc-12, glibc-2.37-r3, 6.4.12-tkg-gentoo-gcc-zen2 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.4.12-tkg-gentoo-gcc-zen2-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-glibc2.37
KiB Mem:    32762652 total,   7583192 free
KiB Swap:   16777212 total,  10926184 free
Timestamp of repository gentoo: Wed, 06 Sep 2023 22:47:24 +0000
Head commit of repository gentoo: f1930d1b4d6b8cc59ab648b03f7af1ec52e3179b

Timestamp of repository guru: Tue, 05 Sep 2023 22:46:50 +0000
Head commit of repository guru: 4aa254711d1387220710fc1fa688bf3611dd26ef

Timestamp of repository steam-overlay: Wed, 23 Aug 2023 07:46:41 +0000
Head commit of repository steam-overlay: f99709b5ad1cef25a18763987742b5e07cd1e649

Head commit of repository librewolf: 2e75069a7228b74506da4e4e63fdb46998a09840

Head commit of repository src_prepare-overlay: 66ce6c6edcc1f884f15cb2c578b4604a384df15b

Head commit of repository tatsh-overlay: 9b1ecfaee3d49a815d16b1afe836f169a5e6c56f

Timestamp of repository thegreatmcpain: Wed, 06 Sep 2023 04:47:17 +0000
Head commit of repository thegreatmcpain: 5dba401d1eabac85fb06f89dc3e8007006959e0e

Head commit of repository x0rzavi: c9e531bea68e782c758b2d1e9e97e2160831c3cc

Timestamp of repository xwing: Mon, 28 Aug 2023 06:01:34 +0000
Head commit of repository xwing: 442cff52339e2dd6025c18b3896884b07f7f5b23

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo, 16.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    priority: 50
    volatile: False

src_prepare-overlay
    location: /var/db/repos/src_prepare-overlay
    sync-type: git
    sync-uri: https://gitlab.com/src_prepare/src_prepare-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

tatsh-overlay
    location: /var/db/repos/tatsh-overlay
    sync-type: git
    sync-uri: https://github.com/Tatsh/tatsh-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

thegreatmcpain
    location: /var/db/repos/thegreatmcpain
    sync-type: git
    sync-uri: https://gitlab.com/TheGreatMcPain/thegreatmcpain-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

x0rzavi
    location: /var/db/repos/x0rzavi
    sync-type: git
    sync-uri: https://github.com/x0rzavi/x0rzavi-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

xwing
    location: /var/db/repos/xwing
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/xwing.git
    masters: gentoo
    priority: 50
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
ADDR2LINE="llvm-addr2line"
AR="llvm-ar"
AS="llvm-as"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=znver2 -mtune=znver2 -pipe -O3 -fno-plt -fexceptions -fstrict-flex-arrays=1 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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 /etc/terminfo"
CPP="clang-cpp"
CXX="clang++"
CXXFLAGS="-march=znver2 -mtune=znver2 -pipe -O3 -fno-plt -fexceptions -fstrict-flex-arrays=1 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection"
DISTDIR="/var/cache/distfiles"
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="-march=znver2 -mtune=znver2 -pipe -O3 -fno-plt -fexceptions -fstrict-flex-arrays=1 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection"
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 multilib-strict 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=znver2 -mtune=znver2 -pipe -O3 -fno-plt -fexceptions -fstrict-flex-arrays=1 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fstack-protector-strong -fcf-protection"
GENTOO_MIRRORS="https://gentoo.osuosl.org/"
LANG="en_US.utf8"
LD="ld.lld"
LDFLAGS="-Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now"
LEX="flex"
MAKEOPTS="-j7"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="pigz"
PORTAGE_COMPRESS_FLAGS="-9 -R -p4"
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"
RUSTFLAGS="-C opt-level=3 -C target-cpu=native -C codegen-units=1"
SHELL="/bin/bash"
STRINGS="llvm-strings"
STRIP="llvm-strip"
USE="7z X a52 aac acl acpi activities alsa amd64 autotype bluetooth branding browser browser-integration bzip2 cairo cdda cdr clang cli colord crash-handler crypt cups dbus declarative default-compiler-rt default-libcxx default-lld desktop-portal dhclient discover dri dts dvd dvdr echo-cancel elogind encode exif ffmpeg firewall flac flatpak fluidsynth fortran gbm gdbm gif gles2 gles3 gnutls gpm gstreamer gtk gui hardened iconv icu ipv6 iwd jack jack-client jpeg kde kwallet lcms legacy-systray libcxx libnotify libtirpc llvm-libunwind lm-sensors mad mgba mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl nvenc ogg opengl openh264 openmp openssl opus pam pango pcre pdf pic pie pipewire pipewire-alsa plasma png policykit ppds pulseaudio qml qt5 raw readline resolvconf retroachievements rtc screencast sddm sdl seccomp sechash semantic-desktop share smart sound sound-server spell split-usr ssl startup-notification svg system-crontab system-man test-rust threads tiff timidity truetype udev udisks unicode upnp upower usb v4l vaapi vdpau vorbis vulkan wallpapers wav wayland widgets wired wxwidgets x264 xattr xcb xcsecurity xft xml xorg xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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" CURL_SSL="gnutls" ELIBC="glibc" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="fbdev nvidia vesa dummy v4l" 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:  ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, SIZE, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

sys-libs/binutils-libs-2.40-r5::gentoo was built with the following:
USE="nls -64-bit-bfd (-cet) -multitarget -static-libs -test" ABI_X86="32 (64) (-x32)"
FEATURES="network-sandbox config-protect-if-modified usersandbox strict xattr unmerge-logs userfetch buildpkg-live binpkg-docompress protect-owned assume-digests userpriv unmerge-orphans usersync binpkg-logs unknown-features-warn pid-sandbox sfperms binpkg-dostrip binpkg-multi-instance news preserve-libs fixlafiles ebuild-locks distlocks multilib-strict sandbox ipc-sandbox merge-sync qa-unresolved-soname-deps parallel-fetch"
Comment 5 Greg Kubaryk 2023-09-11 18:23:44 UTC
(In reply to Neko-san from comment #4)
> Created attachment 870315 [details]
> Build Log
> 
> I know you didn't want the build log compressed but I **have** to compress
> it or I won't be able to upload it at all. 1000KBs is VERY easy to exceed.

Compression and tar are separate concepts; you may need to compress the file, you do not need to put it in a tar first.
Comment 6 Neko-san 2023-09-11 19:52:55 UTC
I don't understand why that's an issue at all but, fine, I'll not do that going forward.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-11 19:57:49 UTC
Sorry, I didn't mean to close this.
Comment 8 Mike Gilbert gentoo-dev 2023-09-11 20:07:05 UTC
(In reply to Neko-san from comment #6)
> I don't understand why that's an issue at all but, fine, I'll not do that
> going forward.

It's an extra step to unpack a tarball and then view the log. The request is just to make life easier on Gentoo devs.
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2023-09-12 01:05:42 UTC
2003-01-27  Alexandre Oliva  <aoliva@redhat.com>

        * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
        /`$$CC -print-multi-os-directory`.

That code is old as dirt...
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2023-09-12 01:06:42 UTC
this is in libiberty/Makefile.in

    385 # This is tricky.  Even though CC in the Makefile contains
    386 # multilib-specific flags, it's overridden by FLAGS_TO_PASS from the
    387 # default multilib, so we have to take CFLAGS into account as well,
    388 # since it will be passed the multilib flags.
    389 MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`