View previous topic :: View next topic |
Author |
Message |
mortonP Tux's lil' helper
Joined: 22 Dec 2015 Posts: 88
|
Posted: Fri Mar 12, 2021 8:39 pm Post subject: rust 1.50 on aarch64 |
|
|
I'm trying to build Rust 1.50 on aarch64.
Rust 1.49 worked fine (afair Rust 1.48 also) but with this latest release build is stuck at
Quote: |
[...]
Compiling xz2 v0.1.6
Running `/var/tmp/portage/dev-lang/rust-1.50.0/work/rustc-1.50.0-src/build/bootstrap/debug/rustc --crate-name xz2
[...]
sysroot: "/var/tmp/portage/dev-lang/rust-1.50.0/work/rust-stage0"
libdir: "/var/tmp/portage/dev-lang/rust-1.50.0/work/rust-stage0/lib"
|
...and no change there since about a day, no CPU load.
Any idea what could be wrong?
As compile takes a long time, how to debug this where it stops?
Thank you for ideas.... |
|
Back to top |
|
|
Lebkoungcity Apprentice
Joined: 16 Nov 2008 Posts: 221 Location: near Lebkoungcity (='Gingerbreadcity' =Nuremberg)
|
Posted: Sat Mar 13, 2021 7:21 am Post subject: |
|
|
Hi mortonP,
I don't have a solution for your problem but I had something similar on my RPi4 32bit-install. After hours of compiling it stopped at some point and stood there motionless until I killed it. Maybe at the same point as yours? I don't know I don't have the build-log anymore...
As a workaround I emerged dev-lang/rust-bin (and eselected it afterwards with 'eselect rust'). Maybe I will try dev-lang/rust sometime in the future but for the time being I could go on with emerging stuff.
I keep my fingers crossed there'll be a solution for your issue!
Andy _________________ "The most dangerous world view is the world view of the ones who haven't viewed the world."
Alexander von Humboldt (1769-1859) |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sat Mar 13, 2021 9:49 am Post subject: |
|
|
mortonP,
It does build. I've done it on an X-Gene 1 and a Cavium Thunder
Poke about in `/var/tmp/portage/dev-lang/rust-1.50.0/work/ and find the build log.
What is the timestamp on the build log?
That's the last time the log was updated.
Pastebin the last 100 lines or so from the build log.
There is a very long single threaded part at the end of the build, so even on the 96 core Cavium Thunder its slow as only one core can work on that part of the build. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
mortonP Tux's lil' helper
Joined: 22 Dec 2015 Posts: 88
|
Posted: Sat Mar 13, 2021 6:16 pm Post subject: |
|
|
I do not doubt that it built properly, however I also know that in rare cases when sun and moon are in a certain alignment, stuff does not work, and later magically again. Maybe me and Lebkoungcity have rare luck to live through such a moon and sun alignment? :-)
The end of terminal output is https://pastebin.com/raw/hAg0ZLCQ
Searching for this output in a build log
Quote: | /var/tmp/portage/dev-lang/rust-1.50.0/work$ grep -r -i "Compiling xz2 v0.1.6" * |
comes up empty, there is no full log of terminal output?
The last "rustc command: ..... sysroot: .... libdir:" output is also available in file
Quote: |
/var/tmp/portage/dev-lang/rust-1.50.0/work/rustc-1.50.0-src/build/aarch64-unknown-linux-gnu/stage0-bootstrap-tools/aarch64-unknown-linux-gnu/release/.fingerprint/xz2-bf7817fa97b705d8/output-lib-xz2
|
but this has not been touched for 2 days.
Looking via lsof what file are currently open by cargo processes:
Quote: |
...-1.50.0/work/rustc-1.50.0-src/build/aarch64-unknown-linux-gnu/stage0-bootstrap-tools/aarch64-unknown-linux-gnu/release/.cargo-lock
...-1.50.0/work/rustc-1.50.0-src/build/aarch64-unknown-linux-gnu/stage0-bootstrap-tools/release/.cargo-lock
...-1.50.0/work/rustc-1.50.0-src/build/aarch64-unknown-linux-gnu/stage0-bootstrap-tools/release/.fingerprint/cc-0d75b14be057d278/output-lib-cc
...-1.50.0/work/rustc-1.50.0-src/build/aarch64-unknown-linux-gnu/stage0-bootstrap-tools/release/.fingerprint/pkg-config-8f359e6621366f69/output-lib-pkg-config
...-1.50.0/work/rustc-1.50.0-src/build/aarch64-unknown-linux-gnu/stage0-bootstrap-tools/release/.fingerprint/rayon-core-da4fe1f712e479d5/output-build-script-build-script-build
...-1.50.0/work/rustc-1.50.0-src/build/aarch64-unknown-linux-gnu/stage1-tools/aarch64-unknown-linux-gnu/release/.cargo-lock (deleted)
...-1.50.0/work/rustc-1.50.0-src/build/aarch64-unknown-linux-gnu/stage1-tools/release/.cargo-lock (deleted)
|
..doesn't make me any smarter.
Guess I just wait for next release and try again? |
|
Back to top |
|
|
mortonP Tux's lil' helper
Joined: 22 Dec 2015 Posts: 88
|
Posted: Tue Apr 06, 2021 9:36 am Post subject: |
|
|
As an update, I can report Rust 1.51 builds fine!
(although it takes almost 2 days ;-)
Maybe 1.50 really had a bug, or the stars are in a different alignment now and a rare race does not show up...
Morton |
|
Back to top |
|
|
mortonP Tux's lil' helper
Joined: 22 Dec 2015 Posts: 88
|
Posted: Mon Oct 25, 2021 7:48 pm Post subject: |
|
|
hangs with Rust 1.56 again - bad stars alignment again? :-(
with MAKEOPTS="-j1" it took a loooong time, but it ran through... |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1248 Location: Richmond Hill, Canada
|
Posted: Mon Oct 25, 2021 8:20 pm Post subject: |
|
|
Wild guess, have you try to use pstree -g and strace?
Use pstree to find if there some unexpected process branch that is waiting for something.
Use strace on leaf of each pstree branch to see the leaf process if they were waiting for something. |
|
Back to top |
|
|
mortonP Tux's lil' helper
Joined: 22 Dec 2015 Posts: 88
|
Posted: Fri Oct 29, 2021 3:25 pm Post subject: |
|
|
I do remember, I first saw in htop one core doing seemingly nothing - so e.g. 4 core parallelization but only 3 cores working, and soon later all cores doing nothing. Probably one core/process gets stuck and then everyone else waits for something and this never finishes. I saw with ps process stuck in "S" state and an additional modifier, but don't remember the details.
Next time I'll try to take a closer look :-) |
|
Back to top |
|
|
|