Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 869680 - dev-lang/rust-1.62.1 Sparc64 fails emerge during Preparing sources
Summary: dev-lang/rust-1.62.1 Sparc64 fails emerge during Preparing sources
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc64 Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-11 09:10 UTC by Barnabás Virágh
Modified: 2022-09-12 09:14 UTC (History)
3 users (show)

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


Attachments
environment file from the build temp folder (environment,163.13 KB, text/plain)
2022-09-11 09:16 UTC, Barnabás Virágh
Details
Build.log (build.log,1.90 KB, text/plain)
2022-09-11 14:11 UTC, Barnabás Virágh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Barnabás Virágh 2022-09-11 09:10:37 UTC
A clean system install fails to emerge dev-lang/rust-1.62.1, during "Preparing sources" ebuild phase (bootstrapping issue??) regardless if distcc is enabled or not, makeopts=-j1 or more...

Reproducible: Always

Steps to Reproduce:
1. emerge dev-lang/rust

Actual Results:  
Fails to build

Expected Results:  
Since dev-lang/rust-1.62.1 is marked stable on "sparc", and upstream has Tier 2 sparc64-unknown-linux-gnu support, it must be some trivial??? thing missing probably.

Build.log (very short):

 * Package:    dev-lang/rust-1.62.1
 * Repository: gentoo
 * Maintainer: gyakovlev@gentoo.org rust@gentoo.org
 * USE:        elibc_glibc kernel_linux llvm_targets_Sparc sparc userland_GNU
 * FEATURES:   distcc preserve-libs userpriv
 * Checking for at least 11520 MiB disk space at "/var/tmp/portage/dev-lang/rust-1.62.1/temp" ...
 [ ok ]
 * Checking whether python3_11 is suitable ...
 *   >=dev-lang/python-3.11.0_beta4:3.11 ...
 [ !! ]
 * Checking whether python3_10 is suitable ...
 *   >=dev-lang/python-3.10.4:3.10 ...
 [ ok ]
 * Using python3.10 to build (via PYTHON_COMPAT iteration)
>>> Unpacking source...
>>> Unpacking rustc-1.62.1-src.tar.xz to /var/tmp/portage/dev-lang/rust-1.62.1/work
>>> Source unpacked in /var/tmp/portage/dev-lang/rust-1.62.1/work
>>> Preparing source in /var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src ...
/var/tmp/portage/dev-lang/rust-1.62.1/temp/environment: line 4092: /var/tmp/portage/dev-lang/rust-1.62.1/work/rust-1.61.0-sparc64-unknown-linux-gnu/install.sh: No such file or directory
 * ERROR: dev-lang/rust-1.62.1::gentoo failed (prepare phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 127:  Called src_prepare
 *   environment, line 4092:  Called die
 * The specific snippet of code:
 *           "${WORKDIR}/${rust_stage0}"/install.sh --disable-ldconfig --without=rust-docs --destdir="${rust_stage0_root}" --prefix=/ || die;
 *
 * If you need support, post the output of `emerge --info '=dev-lang/rust-1.62.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.62.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/rust-1.62.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/rust-1.62.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src'
 * S: '/var/tmp/portage/dev-lang/rust-1.62.1/work/rustc-1.62.1-src'

===========================================================================
  output of emerge --info dev-lang/rust:
Portage 3.0.30 (python 3.10.6-final-0, default/linux/sparc/17.0/64ul, gcc-11.3.0, glibc-2.35-r8, 5.10.135-gentoo-16 sparc64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.135-gentoo-16-sparc64-sun4u-with-glibc2.35
KiB Mem:    32809068 total,  10190796 free
KiB Swap:   33554424 total,  33554424 free
Timestamp of repository gentoo: Wed, 07 Sep 2022 01:45:01 +0000                                                                                                                                                                              Head commit of repository gentoo: c0a7889115890bfc1011568bc20381cd77f24e69
sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
distcc 3.4 sparc64-unknown-linux-gnu [enabled]                                                                                                                                                                                               app-misc/pax-utils:        1.3.5::gentoo                                                                                                                                                                                                     app-shells/bash:           5.1_p16-r1::gentoo                                                                                                                                                                                                dev-lang/perl:             5.34.1-r3::gentoo                                                                                                                                                                                                 dev-lang/python:           3.9.9-r1::gentoo, 3.10.6_p4::gentoo                                                                                                                                                                               dev-util/cmake:            3.23.3::gentoo                                                                                                                                                                                                    dev-util/meson:            0.62.2::gentoo                                                                                                                                                                                                    sys-apps/baselayout:       2.8::gentoo                                                                                                                                                                                                       sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo                                                                                                                                                                                                      sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo, 2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: ****************
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: no
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

local
    location: /var/db/repos/local
    masters: gentoo

Installed sets: @favorites
ACCEPT_KEYWORDS="* sparc"
ACCEPT_LICENSE="@FREE"
CBUILD="sparc64-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=ultrasparc -pipe"
CHOST="sparc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /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"
CXXFLAGS="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=y --keep-going=y --buildpkg --usepkg --binpkg-respect-use=y --jobs=6 --load-average 10"
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="-O2 -mcpu=ultrasparc -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned qa-unresolved-son
ame-deps sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync xattr"
FFLAGS="-O2 -mcpu=ultrasparc -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j28 -l12"
PKGDIR="/var/cache/packages"
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=/.g
it"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 acl alsa ap big-endian bmp bzip2 cairo cdparanoia classic cli consolekit crypt cups curl cvs dbus dga directfb dri drmkms dts egl evdev faad fbcon ffmpeg flac fortran fuse gdbm gif git glamor gles gles1 gles2 gpg gpm gssapi gt
k harfbuzz iconv icu imagemagick jpeg jpeg2k kerberos lame libglvnd libnotify libproxy libtirpc llvm-libunwind matroska mesa modplug mp3 mpeg mpeg2 mpeg3 multicore ncurses nfs nfsv4 nls nptl ogg opengl openmp openssl pam pcre perl png po
licykit python readline samba shout sparc sparc64 split-usr sqlite ssl subversion svg syslog system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite threads timidity truetype udev unicode usb v4l vorbis x264 x2
65 xattr xinerama xml xorg xv xvid zlib" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core authz_host dir mime unixd socache_shmcb" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="load memory syslog write_prometheus
 cpu cpufreq df interface swap" CURL_SSL="openssl" 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" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-m
inimizer" LLVM_TARGETS="Sparc" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="pyt
hon3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chao
s account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJ
COPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Barnabás Virágh 2022-09-11 09:16:02 UTC
Created attachment 804604 [details]
environment file from the build temp folder
Comment 2 Stephan Hartmann (RETIRED) gentoo-dev 2022-09-11 10:20:28 UTC
Please attach the full build.log. Afterwards please re-open.
Comment 3 Barnabás Virágh 2022-09-11 13:21:43 UTC
(In reply to Stephan Hartmann from comment #2)
> Please attach the full build.log. Afterwards please re-open.

Ofc I can attach it as well, but it is so short, I opted to simply copy-paste it into the description. It is the FULL log.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-11 13:50:55 UTC
Why is system-bootstrap off?
Comment 5 Barnabás Virágh 2022-09-11 14:11:33 UTC
Created attachment 804667 [details]
Build.log
Comment 6 Barnabás Virágh 2022-09-11 14:16:51 UTC
(In reply to Sam James from comment #4)
> Why is system-bootstrap off?

# emerge -pqv '=dev-lang/rust-1.62.1::gentoo'
[ebuild  N    ] dev-lang/rust-1.62.1  USE="-clippy -debug -dist -doc (-miri) (-nightly) (-parallel-compiler) (-profiler) -rls -rust-src -rustfmt (-system-bootstrap) (-system-llvm) -test -verify-sig (-wasm)" LLVM_TARGETS="(Sparc) -AArch64
 -AMDGPU -ARM -AVR -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -SystemZ -WebAssembly -X86 -XCore"


You mean that (-system-bootstrap)?
1.) It's masked USE flag in the profile for some reason
2.) I don't have previously installed rustc on the clean system, to make it's usage meaningful...
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-11 14:19:07 UTC
(In reply to Barnabás Virágh from comment #6)
> (In reply to Sam James from comment #4)
> > Why is system-bootstrap off?
> 
> # emerge -pqv '=dev-lang/rust-1.62.1::gentoo'
> [ebuild  N    ] dev-lang/rust-1.62.1  USE="-clippy -debug -dist -doc (-miri)
> (-nightly) (-parallel-compiler) (-profiler) -rls -rust-src -rustfmt
> (-system-bootstrap) (-system-llvm) -test -verify-sig (-wasm)"
> LLVM_TARGETS="(Sparc) -AArch64
>  -AMDGPU -ARM -AVR -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV
> -SystemZ -WebAssembly -X86 -XCore"
> 
> 
> You mean that (-system-bootstrap)?
> 1.) It's masked USE flag in the profile for some reason
> 2.) I don't have previously installed rustc on the clean system, to make
> it's usage meaningful...

It's needed on sparc though...

profiles/arch/sparc/package.use.force:6:# tarball, so force system-bootstrap instead (i.e. force using rust-bin
profiles/arch/sparc/package.use.force:8:dev-lang/rust system-bootstrap
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-11 14:19:52 UTC
(In reply to Sam James from comment #7)
> (In reply to Barnabás Virágh from comment #6)
> > (In reply to Sam James from comment #4)
> > > Why is system-bootstrap off?
> > 
> > # emerge -pqv '=dev-lang/rust-1.62.1::gentoo'
> > [ebuild  N    ] dev-lang/rust-1.62.1  USE="-clippy -debug -dist -doc (-miri)
> > (-nightly) (-parallel-compiler) (-profiler) -rls -rust-src -rustfmt
> > (-system-bootstrap) (-system-llvm) -test -verify-sig (-wasm)"
> > LLVM_TARGETS="(Sparc) -AArch64
> >  -AMDGPU -ARM -AVR -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV
> > -SystemZ -WebAssembly -X86 -XCore"
> > 
> > 
> > You mean that (-system-bootstrap)?
> > 1.) It's masked USE flag in the profile for some reason
> > 2.) I don't have previously installed rustc on the clean system, to make
> > it's usage meaningful...
> 
> It's needed on sparc though...
> 
> profiles/arch/sparc/package.use.force:6:# tarball, so force system-bootstrap
> instead (i.e. force using rust-bin
> profiles/arch/sparc/package.use.force:8:dev-lang/rust system-bootstrap

i.e. using USE=system-bootstrap forces using either a previous dev-lang/rust OR dev-lang/rust-bin, and you need rust-bin for that initial bit on sparc, as normally, with USE=-system-bootstrap, dev-lang/rust downloads a binary first.

So it's un clear to me how it's off for you.. we force it on for sparc profiles?
Comment 9 Barnabás Virágh 2022-09-11 14:39:26 UTC
(In reply to Sam James from comment #8)
> (In reply to Sam James from comment #7)
> > (In reply to Barnabás Virágh from comment #6)
> > > (In reply to Sam James from comment #4)
> > > > Why is system-bootstrap off?
> > > 
> > > # emerge -pqv '=dev-lang/rust-1.62.1::gentoo'
> > > [ebuild  N    ] dev-lang/rust-1.62.1  USE="-clippy -debug -dist -doc (-miri)
> > > (-nightly) (-parallel-compiler) (-profiler) -rls -rust-src -rustfmt
> > > (-system-bootstrap) (-system-llvm) -test -verify-sig (-wasm)"
> > > LLVM_TARGETS="(Sparc) -AArch64
> > >  -AMDGPU -ARM -AVR -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV
> > > -SystemZ -WebAssembly -X86 -XCore"
> > > 
> > > 
> > > You mean that (-system-bootstrap)?
> > > 1.) It's masked USE flag in the profile for some reason
> > > 2.) I don't have previously installed rustc on the clean system, to make
> > > it's usage meaningful...
> > 
> > It's needed on sparc though...
> > 
> > profiles/arch/sparc/package.use.force:6:# tarball, so force system-bootstrap
> > instead (i.e. force using rust-bin
> > profiles/arch/sparc/package.use.force:8:dev-lang/rust system-bootstrap
> 
> i.e. using USE=system-bootstrap forces using either a previous dev-lang/rust
> OR dev-lang/rust-bin, and you need rust-bin for that initial bit on sparc,
> as normally, with USE=-system-bootstrap, dev-lang/rust downloads a binary
> first.
> 
> So it's un clear to me how it's off for you.. we force it on for sparc
> profiles?

I am using default/linux/sparc/17.0/64ul profile...
Now unmasked system-bootstrap use flag in /etc/portage, and giving an other try to build...
Comment 10 Barnabás Virágh 2022-09-11 14:44:39 UTC
base/package.use.stable.mask:dev-lang/rust nightly profiler system-bootstrap
This could be the source of masking of system-bootstrap?
Comment 11 Larry the Git Cow gentoo-dev 2022-09-11 20:15:33 UTC
The bug has been closed via the following commit(s):

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

commit 311dc338a9566052b660de5494e47ff9dd417173
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-09-11 20:15:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-11 20:15:24 +0000

    profiles/arch/sparc: add dev-lang/rust[system-bootstrap] to p.u.stable.force too
    
    Bug: https://bugs.gentoo.org/842246
    Closes: https://bugs.gentoo.org/869680
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/sparc/package.use.force        | 2 +-
 profiles/arch/sparc/package.use.stable.force | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-11 20:16:03 UTC
(In reply to Barnabás Virágh from comment #10)
> base/package.use.stable.mask:dev-lang/rust nightly profiler system-bootstrap
> This could be the source of masking of system-bootstrap?

Yeah, we needed package.use.stable.force too -- thanks to matoro for figuring that out, doh. Done!
Comment 13 Larry the Git Cow gentoo-dev 2022-09-12 09:14:55 UTC
The bug has been referenced in the following commit(s):

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

commit 014c6629fcfb9011300931af6c460c910765e767
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-09-12 09:14:29 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-12 09:14:29 +0000

    profiles/arch/sparc: un-stable-mask USE=system-bootstrap
    
    Thanks to Arfrever for noticing, doh.
    
    Bug: https://bugs.gentoo.org/842246
    Bug: https://bugs.gentoo.org/869680
    Fixes: 311dc338a9566052b660de5494e47ff9dd417173
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/sparc/package.use.stable.force | 8 --------
 profiles/arch/sparc/package.use.stable.mask  | 6 ++++++
 2 files changed, 6 insertions(+), 8 deletions(-)