Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949795 - dev-lang/rust-1.71.1-r101 fails to build (configure phase)
Summary: dev-lang/rust-1.71.1-r101 fails to build (configure phase)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Randy Barlow
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-02-15 10:27 UTC by Martin Filo
Modified: 2025-02-17 19:04 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Filo 2025-02-15 10:27:52 UTC
dev-lang/rust-1.71.1-r101 fails to build in compile phase because ALL_LLVM_TARGETS doesn't contain ARC target. I don't known reason why it's required I don't need ARC target.
# equery hasuse ARC
 * Searching for USE flag ARC ...
dev-lang/rust-1.83.0-r2 isn't affected


Reproducible: Always

Steps to Reproduce:
1.emerge =dev-lang/rust-1.71.1-r101
2.
3.
Actual Results:  
 * ERROR: dev-lang/rust-1.71.1-r101::gentoo failed (configure phase):
 *   USE Flag 'llvm_targets_ARC' not in IUSE for dev-lang/rust-1.71.1-r101
 *             
 * Call stack: 
 *          ebuild.sh, line  136:  Called src_configure
 *        environment, line 3967:  Called use 'llvm_targets_ARC'
 *   phase-helpers.sh, line  256:  Called die
 * The specific snippet of code:
 *                              die "USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}"


Expected Results:  
compile without unneeded llvm_targets_ARC USE Flag

emerge --info '=dev-lang/rust-1.71.1-r101::gentoo
> '
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/moje/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.


Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/split-usr/no-multilib/hardened/selinux, gcc-14, glibc-2.40-r8, 6.6.74-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.74-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-glibc2.40
KiB Mem:    12271304 total,   1049348 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 15 Feb 2025 08:45:00 +0000
Head commit of repository gentoo: 1ce06866e7eb21d158e0a6f96f78b58c99d9cb30
Head commit of repository ago: bb997dd114e6faa56110d5bc521dde444d86c62a

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
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.16.5-r2::gentoo
dev-build/cmake:           3.30.6::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.6.1::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.12.8_p1::gentoo, 3.13.1_p1::gentoo
dev-lang/rust:             1.71.1-r100::gentoo, 1.83.0-r2::gentoo
llvm-core/clang:           19.1.7::gentoo
llvm-core/llvm:            19.1.7::gentoo
sec-policy/selinux-base:   2.20240916-r1::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::gentoo
sys-libs/libselinux:       3.7-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

ago
    location: /usr/local/portage/ago
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/dev/ago.git
    masters: gentoo
    volatile: True
    sync-git-verify-commit-signature: yes

local
    location: /usr/local/portage/moje
    masters: gentoo
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=bdver2 -mtune=bdver2 -mfpmath=sse -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/bin/startx /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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 /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=bdver2 -mtune=bdver2 -mfpmath=sse -O2 -pipe"
DISTDIR="/plac/portage/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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="sk_SK.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--hash-style=gnu"
LEX="flex"
LINGUAS="sk en"
MAKEOPTS="-j4"
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="/plac/portage/tmp"
SHELL="/bin/bash"
USE="X acl acpi alsa amd64 audit bzip2 cairo caps cet crypt dvb elogind exif gdbm geoip hardened iconv ipv6 jpeg jpeg2k lcms libtirpc mng ncurses nls open_perms opengl openmp pam pax-kernel pcre pdf peer_perms pic pie png postscript readline savedconfig seccomp selinux smp split-usr ssl ssp svg test-rust tiff truetype ubac unicode vaapi vdpau verify-sig vim-syntax wmf xattr xpm xtpax zlib" ABI_X86="64" ADA_TARGET="gcc_13" ALSA_CARDS="hda-intel" 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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev vmmouse" KERNEL="linux" L10N="sk en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" SANE_BACKENDS="hp3500" VIDEO_CARDS="cirrus vmware qxl radeon radeonsi amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 gen2dev 2025-02-15 19:44:17 UTC
This might be related to bug 767700. Quick summary: rust and clang (et al) builds break when llvm targets change. The least evil way of avoiding the breakage, at least for now, is to force all targets on in package.use.force:

> # Micha�~B Górny <mgorny@gentoo.org> (2021-11-04)
> # Enable all LLVM targets unconditionally.  Unfortunately, disabling
> # targets tend to break reverse dependencies (e.g. Rust) and we are yet
> # to find a clean way of resolving that.  Compared to the damage
> # potential, the increase of build time is a minor problem.  Users who
> # really insist of building a smaller system can un-force the flags
> # at their own responsibility. See bug #767700.

Try rebuilding lld and maybe the failure will go away.
Comment 2 Martin Filo 2025-02-15 23:52:33 UTC
I don't have llvm-core/lld installed.
Comment 3 Larry the Git Cow gentoo-dev 2025-02-16 12:30:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff8e2b548c258e60463b1df0224beda29c7aacec

commit ff8e2b548c258e60463b1df0224beda29c7aacec
Author:     Z. Liu <zhixu.liu@gmail.com>
AuthorDate: 2025-02-16 12:10:29 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-16 12:28:41 +0000

    dev-lang/rust: experimental target must be available first
    
    current experimental targets are defined from v1.73 only, so the final
    experimental target list should be the intersection of
    ALL_LLVM_EXPERIMENTAL_TARGETS in ALL_LLVM_TARGETS.
    
    Fixes: 94e2375d8bbaa777c83a3bffd60355075ee6ff83
    Fixes: 3d841904ebfe01e74cb01eae6456b30f6aeca7e8
    Closes: https://bugs.gentoo.org/949795
    Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/40594
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/rust/rust-1.71.1-r101.ebuild | 9 ++++++++-
 dev-lang/rust/rust-1.74.1-r101.ebuild | 9 ++++++++-
 dev-lang/rust/rust-1.75.0-r101.ebuild | 9 ++++++++-
 dev-lang/rust/rust-1.76.0-r101.ebuild | 9 ++++++++-
 dev-lang/rust/rust-1.77.1-r101.ebuild | 9 ++++++++-
 dev-lang/rust/rust-1.78.0-r101.ebuild | 9 ++++++++-
 dev-lang/rust/rust-1.79.0-r101.ebuild | 9 ++++++++-
 dev-lang/rust/rust-1.80.1-r101.ebuild | 9 ++++++++-
 dev-lang/rust/rust-1.81.0-r101.ebuild | 9 ++++++++-
 dev-lang/rust/rust-1.82.0-r102.ebuild | 9 ++++++++-
 dev-lang/rust/rust-1.83.0-r2.ebuild   | 9 ++++++++-
 dev-lang/rust/rust-1.84.0-r1.ebuild   | 9 ++++++++-
 dev-lang/rust/rust-1.84.1-r1.ebuild   | 9 ++++++++-
 13 files changed, 104 insertions(+), 13 deletions(-)
Comment 4 Martin Filo 2025-02-17 19:04:42 UTC
I can confirm that its fixed