Forums

Skip to content

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

SOLVED: Very Long Rust Emerge on Old Laptop

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
robert1234
n00b
n00b
Posts: 33
Joined: Tue Feb 09, 2021 4:45 pm

SOLVED: Very Long Rust Emerge on Old Laptop

  • Quote

Post by robert1234 » Sun Feb 28, 2021 2:51 pm

Does it sound realistic that Rust would take over 2 days to compile on an old Intel core i3 processor? Or should I kill it and try to see if something is wrong?
Last edited by robert1234 on Mon Mar 01, 2021 4:50 am, edited 1 time in total.
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Sun Feb 28, 2021 3:43 pm

Rust is a huge package and needs a lot of time to emerge. But 2 days is probably too long.

Don't stop emerge yet. Try to find out what's going on. Check for excessive swapping.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31988
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Sun Feb 28, 2021 3:45 pm

I agree with mike155, in my i7-6700HQ

Code: Select all

Tue Nov 17 20:08:44 2020 >>> dev-lang/rust-1.46.0
       merge time: 1 hour, 20 minutes and 8 seconds.
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
robert1234
n00b
n00b
Posts: 33
Joined: Tue Feb 09, 2021 4:45 pm

  • Quote

Post by robert1234 » Sun Feb 28, 2021 5:46 pm

I'm actually still in the installation. I tried to chroot into the installation in a different tty, and the chroot command has been running for 30 minutes.
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Sun Feb 28, 2021 5:56 pm

some of the early i3's were slow and memory constrained (more likely what's happening)

What specs on the emerge machine, which i3, how much memory, have you set up a swap partition/file?
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
Irre
Guru
Guru
Posts: 434
Joined: Sat Nov 09, 2013 10:03 am
Location: Stockholm

  • Quote

Post by Irre » Sun Feb 28, 2021 6:03 pm

Or: emerge rust-bin :)
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Sun Feb 28, 2021 6:08 pm

robert1234 wrote:I tried to chroot into the installation in a different tty, and the chroot command has been running for 30 minutes.
That's a typical sign for excessive swapping. :)

You don't need to chroot. Start 'top' and look at the line with the swap values:

Code: Select all

MiB Swap:   1952.0 total,   1952.0 free,      0.0 used.   6912.7 avail Mem 
Is the 'free' value close to zero and do the numbers change every few seconds?

Does your machine have a HDD LED? Is it constantly on? That's another sign for excessive swapping.
Top
robert1234
n00b
n00b
Posts: 33
Joined: Tue Feb 09, 2021 4:45 pm

  • Quote

Post by robert1234 » Mon Mar 01, 2021 1:03 am

For some reason I had set -j4 for my makeopts when I should have set -j2. I changed this and restarted the emerge. Now it seems like it is emerging properly. It is much more responsive to inputs, and other commands now run fine. I am hoping this fixed the problem. Perhaps I will know by morning...

edit: Rust has now completed emerging. Mission success.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon Mar 01, 2021 9:30 am

robert1234,

If MAKEOPTS="j4" is what you really want to use, its possible set overides oh anything in make.conf on a per packages basis.
That lets you use MAKEOPTS="j4" for everything except rust and other big packages.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
eccerr0r
Watchman
Watchman
Posts: 10241
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Tue Mar 02, 2021 8:11 am

Rust should not take more than 29 hours - or at least that's how long it takes on my *really* slow laptop ...

(Atom 1.6GHz, single core -- probably slowest general purpose SSE2 processor out there? Any other slower ones?)

BTW I had been trying to compile rust on my i5 laptop, and due to trying to build with a limited amount of RAM and tmpfs, it swapped heavily... and took a bit bite out of endurance on one of my SSDs...
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
Post Reply

10 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