Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot merge dev-lang/rust-r1 with no error message
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
VitalBuggy
n00b
n00b


Joined: 25 Jul 2020
Posts: 6

PostPosted: Sun Oct 18, 2020 1:10 pm    Post subject: Cannot merge dev-lang/rust-r1 with no error message Reply with quote

As the title says, I haven't been able to update my system due to this error. You can find the buildlog here at https://dpaste.org/cazm. So far I have tried to play around with the use flags and running
Code:
ldconfig
and nothing seems to have worked.

Thanks in Advance.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 5002
Location: Dallas area

PostPosted: Sun Oct 18, 2020 1:16 pm    Post subject: Reply with quote

Code:
File "/var/tmp/notmpfs/portage/dev-lang/rust-1.47.0-r1/work/rustc-1.47.0-src/src/bootstrap/bootstrap.py", line 751, in build_bootstrap
raise Exception("no cargo executable found at `{}`".format(
Exception: no cargo executable found at `/bin/cargo`
* ERROR: dev-lang/rust-1.47.0-r1::gentoo failed (compile phase)

_________________
PRIME x570-pro, 3700x, RX 550 - 5.8 zen kernel
Acer E5-575 (laptop), i3-7100u - i965 - 5.5 zen kernel
---both---
gcc 9.3.0, profile 17.1 (no-pie & modified) amd64-no-multilib, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Ionen
Veteran
Veteran


Joined: 06 Dec 2018
Posts: 1436

PostPosted: Sun Oct 18, 2020 1:23 pm    Post subject: Reply with quote

Please post full output of `emerge --info dev-lang/rust`.

Edit: I also see another error:
Code:
rustc: error while loading shared libraries: librustc_driver-54ba7026ee2be5ba.so: cannot open shared object file: No such file or directory
Back to top
View user's profile Send private message
VitalBuggy
n00b
n00b


Joined: 25 Jul 2020
Posts: 6

PostPosted: Sun Oct 18, 2020 1:33 pm    Post subject: Reply with quote

Ionen wrote:
Please post full output of `emerge --info dev-lang/rust`.

Edit: I also see another error:
Code:
rustc: error while loading shared libraries: librustc_driver-54ba7026ee2be5ba.so: cannot open shared object file: No such file or directory


Code:

● ~ › cat log
Portage 3.0.8 (python 3.8.6-final-0, default/linux/amd64/17.1, gcc-10.2.0, glibc-2.32-r2, 5.9.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.9.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-7500U_CPU_@_2.70GHz-with-glibc2.2.5
KiB Mem:    16296340 total,   7808016 free
KiB Swap:    8290300 total,   8290300 free
Timestamp of repository gentoo: Sun, 18 Oct 2020 11:30:01 +0000
Head commit of repository gentoo: 8a20a3cfc4e9bbeece33c1c5dfb90e078b357259
sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p1) 2.35.1
ccache version 3.7.12 [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/ccache:          3.7.12::gentoo
dev-util/cmake:           3.18.4::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.35.1::gentoo
sys-devel/gcc:            10.2.0-r2::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r2::gentoo
Repositories:
gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
Drauthius
    location: /var/lib/layman/Drauthius
    masters: gentoo
    priority: 50
brave-overlay
    location: /var/lib/layman/brave-overlay
    masters: gentoo
    priority: 50
eigenlay
    location: /var/lib/layman/eigenlay
    masters: gentoo
    priority: 50
guru
    location: /var/lib/layman/guru
    masters: gentoo
    priority: 50
jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 50

menelkir
    location: /var/lib/layman/menelkir
    masters: gentoo
    priority: 50
pf4public
    location: /var/lib/layman/pf4public
    masters: gentoo
    priority: 50
steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=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=native -O2 -pipe"
DISTDIR="/var/cache/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="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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=native -O2 -pipe"
GENTOO_MIRRORS="https://gentoo-mirror.alexxy.name/ http://gentoo-mirror.alexxy.name/ http://gentoo.bloodhost.ru/ ftp://gentoo.bloodhost.ru/ rsync://gentoo.bloodhost.ru/gentoo-distfiles https://mirror.yandex.ru/gentoo-distfiles/ http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 --load-average=4"
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="/var/tmp/notmpfs"
USE="256-color X acl alsa alsa-plugins amd64 berkdb bzip2 cli consolekit crypt dbus dri fbcon fortran gdbm gdk-pixbuf iconv ipv6 libglvnd libtirpc multilib ncurses networkmanager nls nptl openmp pam pcre policykit pulseaudio readline seccomp split-usr ssl tcpd udev unicode unicode3 xattr xft xinerama zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="mmx mmxext sse sse2" 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-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
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
=================================================================
                        Package Settings
=================================================================
dev-lang/rust-1.47.0-r1::gentoo was built with the following:
USE="system-bootstrap -clippy -debug (-doc) -libressl -miri -nightly -parallel-compiler -rls -rustfmt -system-llvm -test -wasm" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -AVR -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore"
FEATURES="userfetch binpkg-docompress unknown-features-warn binpkg-dostrip multilib-strict xattr parallel-fetch config-protect-if-modified network-sandbox unmerge-logs protect-owned preserve-libs usersandbox ebuild-locks unmerge-orphans userpriv merge-sync fixlafiles news sandbox sfperms distlocks pid-sandbox ipc-sandbox assume-digests strict binpkg-logs qa-unresolved-soname-deps usersync"


I also tried emerging cargo-c but that exited due to the shared libraries error as well
Back to top
View user's profile Send private message
Ionen
Veteran
Veteran


Joined: 06 Dec 2018
Posts: 1436

PostPosted: Sun Oct 18, 2020 1:36 pm    Post subject: Reply with quote

May want to either try without USE=system-bootstrap or bootstrap using rust-bin. Maybe your toolchain is broken and it can't build itself anymore.
Back to top
View user's profile Send private message
VitalBuggy
n00b
n00b


Joined: 25 Jul 2020
Posts: 6

PostPosted: Sun Oct 18, 2020 1:43 pm    Post subject: Reply with quote

Ionen wrote:
May want to either try without USE=system-bootstrap or bootstrap using rust-bin. Maybe your toolchain is broken and it can't build itself anymore.


Thank you so much, building without system-bootstrap worked. Installing gentoo made my life one long emerge :D
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 16214

PostPosted: Sun Oct 18, 2020 5:33 pm    Post subject: Reply with quote

Anon-E-moose wrote:
Code:
File "/var/tmp/notmpfs/portage/dev-lang/rust-1.47.0-r1/work/rustc-1.47.0-src/src/bootstrap/bootstrap.py", line 751, in build_bootstrap
raise Exception("no cargo executable found at `{}`".format(
Exception: no cargo executable found at `/bin/cargo`
* ERROR: dev-lang/rust-1.47.0-r1::gentoo failed (compile phase)
I wonder if the installed path is /usr/bin/cargo, and someone tested this on one of the crazy systems where /bin is just a symlink to /usr/bin, which let it work despite using the wrong path.
Back to top
View user's profile Send private message
Nreal
Apprentice
Apprentice


Joined: 06 Jan 2009
Posts: 206

PostPosted: Mon Oct 19, 2020 3:17 am    Post subject: Reply with quote

Nowadays Gentoo is broken all the time - it was not like this 4 years ago :(

Code:
/usr/lib/rust/1.47.0/bin/cargo: error while loading shared libraries: libgit2.so.1.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "./x.py", line 11, in <module>
    bootstrap.main()
  File "/var/tmp/portage/dev-lang/rust-1.47.0-r1/work/rustc-1.47.0-src/src/bootstrap/bootstrap.py", line 1009, in main
    bootstrap(help_triggered)
  File "/var/tmp/portage/dev-lang/rust-1.47.0-r1/work/rustc-1.47.0-src/src/bootstrap/bootstrap.py", line 976, in bootstrap
    build.build_bootstrap()
  File "/var/tmp/portage/dev-lang/rust-1.47.0-r1/work/rustc-1.47.0-src/src/bootstrap/bootstrap.py", line 761, in build_bootstrap
    run(args, env=env, verbose=self.verbose)
  File "/var/tmp/portage/dev-lang/rust-1.47.0-r1/work/rustc-1.47.0-src/src/bootstrap/bootstrap.py", line 143, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /usr/lib/rust/1.47.0/bin/cargo build --manifest-path /var/tmp/portage/dev-lang/rust-1.47.0-r1/work/rustc-1.47.0-src/src/bootstrap/Cargo.toml --verbose --locked --frozen
 * ERROR: dev-lang/rust-1.47.0-r1::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 125:  Called src_compile
 *   environment, line 3654:  Called die
 * The specific snippet of code:
 *       env $(cat "${S}"/config.env) RUST_BACKTRACE=1 "${EPYTHON}" ./x.py dist -vv --config="${S}"/config.toml -j$(makeopts_jobs) || die )
 *
 * If you need support, post the output of `emerge --info '=dev-lang/rust-1.47.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.47.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/rust-1.47.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/rust-1.47.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/rust-1.47.0-r1/work/rustc-1.47.0-src'
 * S: '/var/tmp/portage/dev-lang/rust-1.47.0-r1/work/rustc-1.47.0-src'

>>> Failed to emerge dev-lang/rust-1.47.0-r1, Log file:
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 16214

PostPosted: Mon Oct 19, 2020 3:40 am    Post subject: Reply with quote

Your installed rust has rotted, but the rust build is trying to use it anyway. Four years ago, it was more practical to avoid languages like Rust. Try unmerging Rust, then rebuild it.
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1826

PostPosted: Mon Oct 19, 2020 3:57 am    Post subject: Reply with quote

...or downgrade to libgit2-1.0.1 and figure out why portage didn't preserve it...

Code:
$ ldd /usr/bin/cargo
   ...
   libgit2.so.1.1 => /usr/lib64/libgit2.so.1.1 (0x00007fdcf67f3000)
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 356
Location: Stockholm

PostPosted: Mon Oct 19, 2020 6:54 am    Post subject: Reply with quote

KiB Mem: 16296340 total, 7808016 free

What is using Mem? /var/tmp?


umount /var/tmp
Back to top
View user's profile Send private message
Ionen
Veteran
Veteran


Joined: 06 Dec 2018
Posts: 1436

PostPosted: Mon Oct 19, 2020 10:25 am    Post subject: Reply with quote

The libgit2 one is a known issue (see bug #749381).

Even if it's now default (just realized it is, I had been using it for a while), USE=system-bootstrap is still kinda experimental and masked in stable. If something wrong just try without it or temporarily pull in rust-bin again to bootstrap.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum