Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

rust-1.71.1 problem to compile and need help

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
20 posts • Page 1 of 1
Author
Message
sleepingsun
Guru
Guru
User avatar
Posts: 489
Joined: Wed May 03, 2006 9:29 pm
Location: Bosnia
Contact:
Contact sleepingsun
Website

rust-1.71.1 problem to compile and need help

  • Quote

Post by sleepingsun » Fri Sep 15, 2023 9:01 pm

This is error what i get when compile last rust

Code: Select all

ns -Wrustc::internal -Cprefer-dynamic -Zdylib-lto -Clto=fat -Cembed-bitcode=yes" RUST_TEST_THREADS="5" WINAPI_NO_BUNDLED_LIBRARIES="1" __CARGO_DEFAULT_LIB_METADATA="stable" "/var/tmp/portage/dev-lang/rust-1.71.1/work/rust-stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "--release" "-Zcheck-cfg=names,values,output,features" "-Zbinary-dep-depinfo" "-j" "5" "-v" "-v" "--locked" "--frozen" "--features" "llvm max_level_info" "--manifest-path" "/var/tmp/portage/dev-lang/rust-1.71.1/work/rustc-1.71.1-src/compiler/rustc/Cargo.toml" "--message-format" "json-render-diagnostics"
expected success, got: exit status: 101
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/rust-1.71.1/work/rustc-1.71.1-src/./x.py", line 32, in <module>
    bootstrap.main()
  File "/var/tmp/portage/dev-lang/rust-1.71.1/work/rustc-1.71.1-src/src/bootstrap/bootstrap.py", line 1079, in main
    bootstrap(args)
  File "/var/tmp/portage/dev-lang/rust-1.71.1/work/rustc-1.71.1-src/src/bootstrap/bootstrap.py", line 1054, in bootstrap
    run(args, env=env, verbose=build.verbose, is_bootstrap=True)
  File "/var/tmp/portage/dev-lang/rust-1.71.1/work/rustc-1.71.1-src/src/bootstrap/bootstrap.py", line 184, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /var/tmp/portage/dev-lang/rust-1.71.1/work/rustc-1.71.1-src/build/bootstrap/debug/bootstrap build -vv --config=/var/tmp/portage/dev-lang/rust-1.71.1/work/rustc-1.71.1-src/config.toml -j5
 * ERROR: dev-lang/rust-1.71.1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 3906:  Called die
 * The specific snippet of code:
 *       RUST_BACKTRACE=1 "${EPYTHON}" ./x.py build -vv --config="${S}"/config.toml -j$(makeopts_jobs) || die
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/rust-1.71.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.71.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/rust-1.71.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/rust-1.71.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/rust-1.71.1/work/rustc-1.71.1-src'
 * S: '/var/tmp/portage/dev-lang/rust-1.71.1/work/rustc-1.71.1-src'

>>> Failed to emerge dev-lang/rust-1.71.1, Log file:

>>>  '/var/tmp/portage/dev-lang/rust-1.71.1/temp/build.log'

 * Messages for package dev-lang/rust-1.71.1:

 * ERROR: dev-lang/rust-1.71.1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 3906:  Called die
 * The specific snippet of code:
 *       RUST_BACKTRACE=1 "${EPYTHON}" ./x.py build -vv --config="${S}"/config.toml -j$(makeopts_jobs) || die
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/rust-1.71.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.71.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/rust-1.71.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/rust-1.71.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/rust-1.71.1/work/rustc-1.71.1-src'
 * S: '/var/tmp/portage/dev-lang/rust-1.71.1/work/rustc-1.71.1-src'
Gentoo is Rocks
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Sat Sep 16, 2023 5:59 am

Can you post full build.log with transfer.sh and your emerge --info?
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
hujuice
Guru
Guru
User avatar
Posts: 354
Joined: Tue Oct 16, 2007 12:57 pm
Location: Nicosia, Cyprus

  • Quote

Post by hujuice » Sat Sep 16, 2023 8:14 am

I have maybe the same issue.
https://transfer.sh/1sf1Uz7SGB/dev-lang ... 014947.log
https://transfer.sh/zBQRyhWjSV/dev-lang ... erge--info

The issue appear on a VPS (2 CPUs, 4G RAM) and I have

Code: Select all

dev-lang/rust reduce_jobs.conf

Code: Select all

MAKEOPTS="-j1 -l1"
Apparently, emerge --info doesn't report the per-package MAKEOPTS, but it should work.

In the build log the error message is not so helpful:

Code: Select all

rustc exited with signal: 9 (SIGKILL)
error: could not compile `rustc_driver` (lib)
What's the issue?

Regards,
HUjuice
Those who lack character must at least have a method.
Chi non ha carattere, deve pur avere un metodo.
Top
Ionen
Developer
Developer
User avatar
Posts: 3014
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Sat Sep 16, 2023 8:50 am

hujuice wrote:In the build log the error message is not so helpful:

Code: Select all

rustc exited with signal: 9 (SIGKILL)
error: could not compile `rustc_driver` (lib)
The primary reason SIGKILL happens unless you've done kill -9 yourself, is the out-of-memory killer. May want to check the output of `dmesg` for OOM errors assuming you haven't rebooted since. Not that uncommon that a single rustc process may try to use over 4GB ram, and if that's all you have then you may need some more swap to make up even with -j1 given I do assume of that ram is being used other things as well and is not entirely free.

But in that situation I'd just use dev-lang/rust-bin really, not worth building rust itself with so little resources.

Edit: as for this thread's issue, I don't think it's the same given SIGKILL typically gives a 137 return code rather than 101 -- maybe build.log could reveal more though.
Top
hujuice
Guru
Guru
User avatar
Posts: 354
Joined: Tue Oct 16, 2007 12:57 pm
Location: Nicosia, Cyprus

  • Quote

Post by hujuice » Sat Sep 16, 2023 9:37 am

Thank you Ionen.
I left my dev life years ago and it's time to declare that I am rusty.

First, dmesg is clear:

Code: Select all

[14234050.616268] Out of memory: Killed process 11993 (rustc) total-vm:3434316kB, anon-rss:3066628kB, file-rss:0kB, shmem-rss:0kB, UID:250 pgtables:6432kB oom_score_adj:0                                                                                          
[14234050.733275] oom_reaper: reaped process 11993 (rustc), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
Second, I didn't notice there is a dev-lang/rust-bin package.

I will resolv.

Regards,
HUjuice
Those who lack character must at least have a method.
Chi non ha carattere, deve pur avere un metodo.
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sat Sep 16, 2023 2:35 pm

Code: Select all

     Installed versions:  1.71.1(stable/1.71)^t(19:26:26 28/08/2023)(clippy doc miri nightly profiler rust-analyzer rust-src rustfmt system-bootstrap verify-sig wasm -big-endian -debug -dist -llvm-libunwind -lto -parallel-compiler -system-llvm -test ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" CPU_FLAGS_X86="sse2" LLVM_TARGETS="WebAssembly X86 -AArch64 -AMDGPU -ARM -AVR -BPF -Hexagon -Lanai -LoongArch -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -VE -XCore")
USE=lto has been a swap storm killer here @rustc_driver on 2C/4T 4GB RAM.

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
sleepingsun
Guru
Guru
User avatar
Posts: 489
Joined: Wed May 03, 2006 9:29 pm
Location: Bosnia
Contact:
Contact sleepingsun
Website

  • Quote

Post by sleepingsun » Sat Sep 16, 2023 4:49 pm

Code: Select all

 emerge --info

Code: Select all

Portage 3.0.49 (python 3.11.5-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12, glibc-2.37-r3, 6.1.46-gentoo x86_64)
=================================================================
System uname: Linux-6.1.46-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.37
KiB Mem:     8128572 total,   3162096 free
KiB Swap:    2097148 total,     16820 free
Timestamp of repository gentoo: Fri, 15 Sep 2023 10:00:01 +0000
Head commit of repository gentoo: 0e099dec32a1d76fe84e34246e7025d3d6d5ec8a
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo, 16.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE app-arch/unrar unRAR fping xrick linux-fw-redistributable no-source-code JSON NVIDIA-r2 MPEG-4 google-chrome OPERA-2018 AnyDesk-TOS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /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 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="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live 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://mirror.aarnet.edu.au/pub/gentoo/ http://mirror.aarnet.edu.au/pub/gentoo/ rsync://mirror.aarnet.edu.au/pub/gentoo/ ftp://ftp.swin.edu.au/gentoo http://ftp.swin.edu.au/gentoo"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j2"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 apache2 avi berkdb bindist branding bzip2 cairo cdda cdr cgi clamav cli crypt cups daemon dbus declarative dhcpd dri dts dvd dvdr elogind encode exif ext2 ext4 fat fat32 flac fortran gd gdbm gif gles2 gmp gpm gui harfbuzz iconv icu id3tag intl ipv6 jack java jpeg jpg kde kwallet lcms ldap libass libnotify libtirpc mad mdnsresponder-compat mkv mng mp3 mp4 mpeg mtp multilib mysql mysqli ncurses networkmanager nls nptl ntfs ogg opengl openmp pam pango pcntl pcre pcre32 pdf pdo php pipewire plasma png policykit ppds pulseaudio qml qt5 readline realtek samba screencast sdl seccomp semantic-desktop sensord snmp sound spell split-usr ssh ssl startup-notification svg test-rust tidy tiff truetype udev udisks unicode upower usb uvm vmware vorbis vulkan wavpack wayland widgets wxwidgets x264 xattr xcb xft xml xmlrpc xmlwriter xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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="mouse keyboard libinput synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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="virtualbox nvidia nv" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat 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, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Gentoo is Rocks
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3534
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Sat Sep 16, 2023 5:16 pm

Q6600... triggers painful memories. I used to use the same amount of RAM and a swap partition set up for the same amount as yours but in a zram device to aid OOM Killer events.

But there is a binary version and I highly recommend that instead of torturing that hardware and yourself. Also enabling lto on a compiler is a well known source of trouble.

Best Regards,
Georgi
Top
trilithium
n00b
n00b
Posts: 43
Joined: Mon Nov 18, 2019 7:22 pm

  • Quote

Post by trilithium » Sat Sep 16, 2023 7:14 pm

Building rust is a great stress test for the virtual memory subsystem. On my workstation emerge dev-lang/rust-1.71.1 have been mysteriously crashing with g++ complaining about "virtual memory exhausted" despite 47 GB free physical memory. Tonight I realized that this is likely due to a kernel 6.5.3 bug since the entire system becomes unstable after each crash. Indeed, the emerge completes flawlessly on 6.4.12-gentoo. Finally I can build the latest firefox!
Top
sleepingsun
Guru
Guru
User avatar
Posts: 489
Joined: Wed May 03, 2006 9:29 pm
Location: Bosnia
Contact:
Contact sleepingsun
Website

  • Quote

Post by sleepingsun » Sat Sep 16, 2023 8:58 pm

https://transfer.sh/5ECCCrctqV/build.log
Gentoo is Rocks
Top
Ionen
Developer
Developer
User avatar
Posts: 3014
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Sun Sep 17, 2023 2:26 am

sleepingsun wrote:https://transfer.sh/5ECCCrctqV/build.log
Ah, it was sigkill for you as well, guess it doesn't carry the "typical" error code over, not that these are really a reference and just good for guessing.

Code: Select all

rustc exited with signal: 9 (SIGKILL)
error: could not compile `rustc_driver` (lib)

Caused by:
  process didn't exit successfully: `CARGO=/var/tmp/portage/dev-lang/rust-1.71.1/work/rust-stage0/bin/cargo CARGO_CR

Did not run successfully: signal: 9 (SIGKILL)
LD_LIBRARY_PATH="/var/tmp/portage/dev-lang/rust-1.71.1/work/rustc-1.71.1-src/build/x86_64-unknown-linux-gnu/stage1/l
-------------
command did not execute successfully: cd "/var/tmp/portage/dev-lang/rust-1.71.1/work/rustc-1.71.1-src" && AR_x86_64_
expected success, got: exit status: 101
So yeah, everyone in this thread has the same issue (ran out of ram) :|

Note USE=lto is currently default because it's safer for rust than with other compilers and there's (normally) little to lose from enabling it, except that it likely does use a lot more ram for linking. So low ram users should do either of:

1. MAKEOPTS=-j1 and USE=-lto for dev-lang/rust, maybe add more swap too

2. emerge -1 dev-lang/rust-bin + emerge -c dev-lang/rust and not worry about this anymore.

I do strongly recommend #2.
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Sun Sep 17, 2023 3:13 am

Is there a way to do use different options for the different build segments of rust?

Seems that the llvm portion of rust wants a bigger -j for throughput ... but not the rust building rust sections - and especially not LTO.

I may have to disable LTO on my 8G C2Q machines...which I have a lot of... I've been having decent luck without LTO with fairly hefty -j + distcc and thus have decent build times, but it sounds the recipe will needs to be changed.
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
sleepingsun
Guru
Guru
User avatar
Posts: 489
Joined: Wed May 03, 2006 9:29 pm
Location: Bosnia
Contact:
Contact sleepingsun
Website

  • Quote

Post by sleepingsun » Tue Sep 19, 2023 8:07 am

I done as suggested and its look like rust is installed

Code: Select all

2. emerge -1 dev-lang/rust-bin + emerge -c dev-lang/rust and not worry about this anymore.
Gentoo is Rocks
Top
svoop
n00b
n00b
Posts: 64
Joined: Sun Jan 11, 2009 11:45 am

  • Quote

Post by svoop » Wed Oct 18, 2023 10:49 am

Ionen wrote: 2. emerge -1 dev-lang/rust-bin + emerge -c dev-lang/rust and not worry about this anymore.
Like it, however, I can't really get rid of dev-lang/rust this way:

Code: Select all

$ emerge -1 dev-lang/rust-bin
# compiles fine

$ emerge -c dev-lang/rust
Calculating dependencies... done!
>>> No packages selected for removal by depclean

$ equery depends rust
 * These packages depend on rust:
dev-lang/rust-1.69.0-r1 (system-bootstrap ? =dev-lang/rust-1.68*)
                        (system-bootstrap ? =dev-lang/rust-1.69*)
dev-python/bcrypt-4.0.1 (>=virtual/rust-1.53)
dev-python/cryptography-41.0.3 (>=virtual/rust-1.56.0)
dev-python/setuptools-rust-1.7.0 (virtual/rust)
                                 (test ? virtual/rust)
virtual/rust-1.69.0 (~dev-lang/rust-1.69.0[abi_x86_64(-)])

$ emerge --ask --depclean
 dev-lang/rust-bin
    selected: 1.71.1
   protected: none
     omitted: none
I don't have dev-lang/rust in my world file and all dependencies are against virtual/rust. How can I replace rust with rust-bin without adding the latter to the world file?
Top
Hu
Administrator
Administrator
Posts: 24401
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Oct 18, 2023 11:55 am

Do not use equery depends here. It shows potential dependencies, not necessarily the ones in force. What is the output of emerge --ask --verbose --depclean dev-lang/rust? This will remove rust or tell you exactly why not.
Top
svoop
n00b
n00b
Posts: 64
Joined: Sun Jan 11, 2009 11:45 am

  • Quote

Post by svoop » Thu Oct 19, 2023 12:16 pm

Hu wrote:Do not use equery depends here. It shows potential dependencies, not necessarily the ones in force. What is the output of emerge --ask --verbose --depclean dev-lang/rust? This will remove rust or tell you exactly why not.
Thanks for your reply, here you go...

Code: Select all

Calculating dependencies... done!
  dev-lang/rust-1.69.0-r1 pulled in by:
    virtual/rust-1.69.0 requires ~dev-lang/rust-1.69.0[abi_x86_64(-)]

>>> No packages selected for removal by depclean
Top
freke
Veteran
Veteran
Posts: 1136
Joined: Thu Jan 23, 2003 3:17 pm
Location: Somewhere in Denmark
Contact:
Contact freke
Website

  • Quote

Post by freke » Thu Oct 19, 2023 1:33 pm

svoop wrote:
Hu wrote:Do not use equery depends here. It shows potential dependencies, not necessarily the ones in force. What is the output of emerge --ask --verbose --depclean dev-lang/rust? This will remove rust or tell you exactly why not.
Thanks for your reply, here you go...

Code: Select all

Calculating dependencies... done!
  dev-lang/rust-1.69.0-r1 pulled in by:
    virtual/rust-1.69.0 requires ~dev-lang/rust-1.69.0[abi_x86_64(-)]

>>> No packages selected for removal by depclean
I think you either want to emerge the same version of rust-bin as the virtual installed - or try to update the virtual to currently installed rust-bin - then try again.
Top
svoop
n00b
n00b
Posts: 64
Joined: Sun Jan 11, 2009 11:45 am

  • Quote

Post by svoop » Wed Oct 25, 2023 11:41 am

freke wrote:
svoop wrote:
Hu wrote:Do not use equery depends here. It shows potential dependencies, not necessarily the ones in force. What is
I think you either want to emerge the same version of rust-bin as the virtual installed - or try to update the virtual to currently installed rust-bin - then try again.
Worked like a charm following this guide: https://wiki.gentoo.org/wiki/User:Vazhn ... h_rust-bin
Top
Fitzcarraldo
Advocate
Advocate
User avatar
Posts: 2057
Joined: Sat Aug 30, 2008 9:49 pm
Location: United Kingdom
Contact:
Contact Fitzcarraldo
Website

  • Quote

Post by Fitzcarraldo » Sat Nov 04, 2023 1:02 pm

svoop wrote:
Hu wrote:Do not use equery depends here. It shows potential dependencies, not necessarily the ones in force. What is
I think you either want to emerge the same version of rust-bin as the virtual installed - or try to update the virtual to currently installed rust-bin - then try again.
Worked like a charm following this guide: https://wiki.gentoo.org/wiki/User:Vazhn ... h_rust-bin
Thanks for that Wiki link, which is helpful, albeit that procedure didn't quite work in my case (~amd64); I had to mask dev-lang/rust before merging virtual/rust and dev-lang/rust-bin otherwise the emerge command wanted to merge dev-lang/rust, and I had to specify the versions of virtual/rust and dev-lang/rust-bin explicitly in the merge command. (I also had to add "abi_x86_32" to package.use for dev-lang/rust-bin, as my system is multilib.)
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.

My blog
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Thu Nov 16, 2023 3:43 am

Code: Select all

top - 20:40:33 up 16:56,  2 users,  load average: 1.00, 1.04, 2.25
Tasks: 135 total,   1 running, 134 sleeping,   0 stopped,   0 zombie
%Cpu(s): 25.8 us,  0.8 sy,  0.0 ni, 73.4 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :  16006.8 total,    315.9 free,   6180.7 used,   9510.2 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.   9491.5 avail Mem 

  PID USER      NI    VIRT    RES   SWAP S  %CPU   TIME nMaj COMMAND           
28163 portage    0 6098756   5.6g      0 S 100.0  23:01 5628 rustc             
28182 root       0    4904   2860      0 R   6.5   0:01    0 top     
This is the worst CPU utilization (in terms of throughput/underutilization not overcommit) I've ever seen while building rust, and glad this wasn't on my 8G machines. MAKEOPTS was with -j16 -l7 on this quad core CPU...
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
Post Reply

20 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic