Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828042 - dev-lang/rust-1.57.0 cannot bootstrap itself
Summary: dev-lang/rust-1.57.0 cannot bootstrap itself
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-03 01:42 UTC by cyrillic
Modified: 2021-12-03 14:12 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,70.74 KB, text/plain)
2021-12-03 01:43 UTC, cyrillic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cyrillic 2021-12-03 01:42:51 UTC
dev-lang/rust-1.57.0 cannot bootstrap itself.
[system-bootstrap] from 1.56.1 to 1.57.0 works.
[-system-bootstrap] from 1.56.0 to 1.57.0 works.
[system-bootstrap] fails if 1.57.0 is already installed.

Reproducible: Always




# emerge --info
Portage 3.0.28 (python 3.10.0-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.2.1, glibc-2.34-r3, 5.16.0-rc3 x86_64)
=================================================================
System uname: Linux-5.16.0-rc3-x86_64-AMD_Ryzen_Threadripper_2970WX_24-Core_Processor-with-glibc2.34
KiB Mem:    65841944 total,  57986120 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: dc6ded08e616477ef8cf4dd2a281a9b39a5d1bf1

sh bash 5.1_p12
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
app-shells/bash:          5.1_p12::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r5::gentoo
dev-lang/python:          3.10.0_p1::gentoo
dev-lang/rust:            1.57.0::newstuff
dev-util/cmake:           3.22.0::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/openrc:          0.44.9::gentoo
sys-apps/sandbox:         3.1::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.5::gentoo
sys-devel/binutils:       2.37_p1-r1::gentoo
sys-devel/gcc:            11.2.1_p20211127::gentoo
sys-devel/gcc-config:     2.5-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.15-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.34-r3::gentoo
Repositories:

newstuff
    location: /mnt/repos/newstuff
    masters: gentoo
    priority: -1030
    eclass-overrides: fixes

gnomelive
    location: /mnt/repos/gnomelive
    masters: gentoo
    priority: -1010
    eclass-overrides: fixes

gentoo
    location: /mnt/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git
    priority: -1000
    eclass-overrides: fixes

crossdev
    location: /mnt/repos/crossdev
    masters: gentoo
    eclass-overrides: fixes

fixes
    location: /mnt/repos/fixes
    masters: gentoo
    priority: 10
    eclass-overrides: fixes

Installed sets: @clang, @rocm, @system
ACCEPT_KEYWORDS="* amd64 ~*"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -mtune=native -O2 -pipe"
CHOST="x86_64-pc-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="-march=nocona -mtune=native -O2 -pipe"
DISTDIR="/mnt/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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance 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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j48"
PKGDIR="/var/tmp/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=/.git"
PORTAGE_TMPDIR="/tmp"
USE="X a52 aac acl alsa amd64 berkdb bluetooth bluray boost brotli bzip2 cairo caps cdr colord cpudetection css cups curl custom-cflags cxx dbus drm dts dvd eds egl encode exif expat fbcon ffmpeg flac flickr fontconfig fortran gdbm geolocation gif glamor glib gnome gnome-keyring gnutls gpm graphite gssapi gstreamer gtk gtk3 harfbuzz heif ibus icu idn imagemagick introspection ipv6 jpeg jpeg2k kmod kms lcms libass libglvnd libinput libnotify lzma mp3 mpi nautilus ncurses networkmanager nls nptl numa ocamlopt ogg opencl opencv openexr opengl openmp openssl opus orc pam pango pcre pdf png policykit postproc postscript pulseaudio python qml readline samba speex spell split-usr ssl ssp svg systemd tcl telepathy theora threads tiff tk tools tracker truetype udev unicode upnp-av usb utils v4l vala vorbis vpx vulkan wayland webp x264 x265 xcb xkb xml xmp xv xvmc zlib zstd" ABI_X86="64" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="en" LLVM_TARGETS="AMDGPU BPF X86" LUA_SINGLE_TARGET="lua5-4" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="amdgpu intel nouveau radeon radeonsi"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 cyrillic 2021-12-03 01:43:50 UTC
Created attachment 757238 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-03 01:44:58 UTC
This seems to be from the 'newstuff' overlay.
Comment 3 cyrillic 2021-12-03 01:54:02 UTC
Ok, it can wait, but this bug will be valid as soon as Gentoo gets around to bumping rust to the latest release.
Comment 4 Ionen Wolkens gentoo-dev 2021-12-03 01:57:52 UTC
(In reply to cyrillic from comment #3)
> Ok, it can wait, but this bug will be valid as soon as Gentoo gets around to
> bumping rust to the latest release.

It wouldn't be added in this state, but I'll CC gyakovlev@ just so informed in advance.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-03 01:58:07 UTC
(In reply to cyrillic from comment #3)
> Ok, it can wait, but this bug will be valid as soon as Gentoo gets around to
> bumping rust to the latest release.

It'd have been helpful if you mentioned this was your _own_ bump.

I'll leave it to gyakovlev to say if it's helpful to file such bugs but I'd assume probably not. He already has an extensive checklist here: https://wiki.gentoo.org/wiki/User:GYakovlev/Rust_bump and I'd expect him to notice and try to figure out how to fix it at that point..

... you could file bugs like this about any ebuild and say "a patch doesn't apply" or whatever, bu that's kind of what happens with any package. You have to adapt its packaging as you go, right?

If you had figured out a likely issue _and_ a solution, that'd be more helpful I suspect. Anyway, not trying to be dismissive. I'll let gyakovlev speak for himself.
Comment 6 cyrillic 2021-12-03 03:12:23 UTC
Applying this patch from master fixes it for me.

https://github.com/rust-lang/rust/commit/aca8bcb48feca8c87b9af4e440835992d3f6d470

I should have looked a little better for a fix before just saying "it's broken" :)
Comment 7 Georgy Yakovlev archtester gentoo-dev 2021-12-03 14:12:51 UTC
it's pretty common that rust-x can't bootstrap rust-x, but x-1 can. it's usually lagging syntax in bootstraper source.

Thanks for finding the exact commit, I always test and patch this scenario.