Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931491 - dev-lang/rust-1.77.1 can't be built in prefix
Summary: dev-lang/rust-1.77.1 can't be built in prefix
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Randy Barlow
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-07 13:02 UTC by Esteve Varela Colominas
Modified: 2024-05-07 20:50 UTC (History)
3 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 Esteve Varela Colominas 2024-05-07 13:02:01 UTC
>>> Emerging (1 of 1) dev-lang/rust-1.77.1::gentoo
 * rustc-1.77.1-src.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                   [ ok ]
 * Checking for at least 8192 MiB disk space at "/home/[user]/.gentoo-current/var/tmp/portage/dev-lang/rust-1.77.1/temp" ...                            [ ok ]
 * Checking whether python3_12 is suitable ...
 *   dev-lang/python:3.12 ...                                                                                                                            [ !! ]
 * Checking whether python3_11 is suitable ...
 *   dev-lang/python:3.11 ...                                                                                                                            [ ok ]
 * Using python3.11 to build (via PYTHON_COMPAT iteration)
 * ERROR: dev-lang/rust-1.77.1::gentoo failed (setup phase):
 *   __eapi7_ver_compare: invalid version: (unset)
 *
 * Call stack:
 *            ebuild.sh, line 136:  Called pkg_setup
 *   rust-1.77.1.ebuild, line 274:  Called bootstrap_rust_version_check
 *   rust-1.77.1.ebuild, line 195:  Called ver_test '(unset)' '-lt' '1.76'
 *   eapi7-ver-funcs.sh, line 189:  Called __eapi7_ver_compare '(unset)' '1.76'
 *   eapi7-ver-funcs.sh, line  99:  Called die
 * The specific snippet of code:
 *      [[ ${va} =~ ${re} ]] || die "${FUNCNAME}: invalid version: ${va}"
 *
 * If you need support, post the output of `emerge --info '=dev-lang/rust-1.77.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.77.1::gentoo'`.
 * The complete build log is located at '/home/[user]/.gentoo-current/var/tmp/portage/dev-lang/rust-1.77.1/temp/build.log'.
 * The ebuild environment file is located at '/home/[user]/.gentoo-current/var/tmp/portage/dev-lang/rust-1.77.1/temp/die.env'.
 * Working directory: '/home/[user]/.gentoo-current/var/tmp/portage/dev-lang/rust-1.77.1/empty'
 * S: '/home/[user]/.gentoo-current/var/tmp/portage/dev-lang/rust-1.77.1/work/rustc-1.77.1-src'
Comment 1 Esteve Varela Colominas 2024-05-07 13:05:37 UTC
$ emerge --info
Portage 3.0.64 (python 3.11.9-final-0, default/linux/amd64/17.1/no-multilib/prefix/kernel-3.2+, gcc-13, unavailable, 6.6.21 x86_64)
=================================================================
System uname: Linux-6.6.21-x86_64-AMD_Ryzen_5_PRO_2500U_w-_Radeon_Vega_Mobile_Gfx-with-glibc2.39
sh bash 5.2_p26-r3
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r3::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-lang/python:           3.11.9::gentoo
dev-lang/rust:             1.77.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20240503::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo, 18.1.5::gentoo
sys-kernel/linux-headers:  6.8-r1::gentoo
sys-libs/glibc:            2.39-r5::gentoo
Repositories:

gentoo
    location: /home/[user]/Stuff/Workspace/gentoo/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 3

localrepo
    location: /home/[user]/Stuff/Workspace/localrepo
    masters: gentoo
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -Os -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/[user]/.gentoo-current/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /home/[user]/.gentoo-current/etc/env.d"
CXXFLAGS="-pipe -Os -march=znver1"
DISTDIR="/home/[user]/.gentoo-current/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--ask --nospinner --quiet-unmerge-warn --keep-going --oneshot --with-bdeps=n --usepkg"
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 config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="/usr/portage/distfiles http://distfiles.gentoo.org"
INSTALL_MASK="/etc/env.d/99host"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEFLAGS="-j8"
MAKEOPTS="-j7 -l8"
PKGDIR="/home/[user]/.gentoo-current/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/home/[user]/.gentoo-current/"
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="/home/[user]/.gentoo-current/var/tmp"
SHELL="/home/[user]/.gentoo-current/bin/zsh"
USE="acl amd64 bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc ncurses openmp pcre prefix readline seccomp split-usr ssl test-rust unicode zlib" ABI_X86="64" ADA_TARGET="gcc_12" 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" 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 mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" 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-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LANG, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, 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 2 Esteve Varela Colominas 2024-05-07 13:11:15 UTC
The problem lies in this line:

    local rustc_version=( $(eselect --brief --root="${BROOT}" rust show 2>/dev/null) )

The BROOT is set to the same value as EPREFIX, and eselect has its own EPREFIX value, so this --root= parameter is double-prefixing the path. It shouldn't be set like this, as BROOT cannot be changed in a portage install.