Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Upcoming moOde 6.5.0
#16
(02-19-2020, 12:58 PM)TheOldPresbyope Wrote:
(02-19-2020, 12:35 PM)Tim Curtis Wrote: Right except that lbrespot is written in Rust and not C. It's built using Cargo which invokes the Rust compiler. I imagine there are some flags for specifying the target architecture but it would take someone with Rust experience to know what they are and which ones to use.

[Full disclosure - I haven't tried this yet]

https://github.com/japaric/rust-cross

and this issue explicitly saying cross-compiling to arm6 can be made to work: https://github.com/japaric/rust-cross/issues/42

Regards,
Kent

Looks kind of messy.

I ran a brief test on a 1B and a 0W and in both cases the Rust install bombed with a memory error.

Code:
info: installing component 'rustc'
33.3 MiB /  65.1 MiB ( 51 %) 960.0 KiB/s in 32s ETA: 33smemory allocation of 73088220 bytes failedAborted

Full log

Code:
pi@rp2:~ $ curl https://sh.rustup.rs -sSf | sh
info: downloading installer

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

It will add the cargo, rustc, rustup and other commands to
Cargo's bin directory, located at:

 /home/pi/.cargo/bin

This can be modified with the CARGO_HOME environment variable.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

 /home/pi/.rustup

This can be modified with the RUSTUP_HOME environment variable.

This path will then be added to your PATH environment variable by
modifying the profile file located at:

 /home/pi/.profile

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:


  default host triple: arm-unknown-linux-gnueabihf
    default toolchain: stable
              profile: default
 modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1

info: profile set to 'default'
info: default host triple is arm-unknown-linux-gnueabihf
info: syncing channel updates for 'stable-arm-unknown-linux-gnueabihf'
476.2 KiB / 476.2 KiB (100 %) 366.2 KiB/s in  2s ETA:  0s
info: latest update on 2020-01-30, rust version 1.41.0 (5e1a79984 2020-01-27)
info: downloading component 'cargo'
 4.2 MiB /   4.2 MiB (100 %) 412.8 KiB/s in 17s ETA:  0s
info: downloading component 'clippy'
 1.8 MiB /   1.8 MiB (100 %) 436.5 KiB/s in  5s ETA:  0s
info: downloading component 'rust-std'
15.3 MiB /  15.3 MiB (100 %) 387.2 KiB/s in 38s ETA:  0s
info: downloading component 'rustc'
65.1 MiB /  65.1 MiB (100 %) 451.2 KiB/s in  3m 18s ETA:  0s    
info: downloading component 'rustfmt'
 2.3 MiB /   2.3 MiB (100 %) 442.5 KiB/s in  6s ETA:  0s
info: installing component 'cargo'
 4.2 MiB /   4.2 MiB (100 %)   1.1 MiB/s in  4s ETA:  0s
info: installing component 'clippy'
 1.8 MiB /   1.8 MiB (100 %) 1016.0 KiB/s in  2s ETA:  0s
info: installing component 'rust-std'
15.3 MiB /  15.3 MiB (100 %)   1.6 MiB/s in 10s ETA:  0s
info: installing component 'rustc'
33.3 MiB /  65.1 MiB ( 51 %) 960.0 KiB/s in 32s ETA: 33smemory allocation of 73088220 bytes failedAborted
pi@rp2:~ $

Rust installed just fine on armv7 Pi and no issues compiling librespot. This suggests that there is some sort of bug or resource requirement in the Rust install that causes it to crash on armv6.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Upcoming moOde 6.5.0 - by Tim Curtis - 02-18-2020, 02:42 AM
RE: Upcoming moOde 6.5.0 - by ksone - 02-18-2020, 09:35 AM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-18-2020, 01:26 PM
RE: Upcoming moOde 6.5.0 - by ksone - 02-18-2020, 02:56 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-18-2020, 03:26 PM
RE: Upcoming moOde 6.5.0 - by JonPike - 02-19-2020, 12:44 AM
RE: Upcoming moOde 6.5.0 - by ksone - 02-19-2020, 07:23 AM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-18-2020, 08:26 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-19-2020, 12:37 AM
RE: Upcoming moOde 6.5.0 - by romain - 04-06-2020, 05:01 PM
RE: Upcoming moOde 6.5.0 - by philrandal - 04-07-2020, 11:04 AM
RE: Upcoming moOde 6.5.0 - by romain - 04-07-2020, 11:47 AM
RE: Upcoming moOde 6.5.0 - by romain - 04-07-2020, 01:15 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-19-2020, 12:51 AM
RE: Upcoming moOde 6.5.0 - by adrii - 02-19-2020, 08:01 AM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-19-2020, 12:35 PM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 02-19-2020, 12:58 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-19-2020, 05:50 PM
RE: Upcoming moOde 6.5.0 - by Norbert - 02-20-2020, 12:04 AM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 02-19-2020, 04:35 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-19-2020, 05:36 PM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 02-20-2020, 01:47 PM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 02-20-2020, 02:08 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-20-2020, 02:12 PM
RE: Upcoming moOde 6.5.0 - by partytime-excellent - 02-20-2020, 10:16 PM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 02-20-2020, 11:48 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-21-2020, 02:20 AM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 02-21-2020, 04:22 AM
RE: Upcoming moOde 6.5.0 - by badbat75 - 02-21-2020, 09:51 AM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 02-21-2020, 11:29 AM
RE: Upcoming moOde 6.5.0 - by badbat75 - 02-21-2020, 11:33 AM
RE: Upcoming moOde 6.5.0 - by badbat75 - 02-21-2020, 11:46 AM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 02-21-2020, 01:06 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-21-2020, 02:22 PM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 02-21-2020, 02:32 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-21-2020, 10:01 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-21-2020, 10:04 PM
RE: Upcoming moOde 6.5.0 - by JST1963 - 02-22-2020, 12:33 PM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 02-22-2020, 02:11 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-22-2020, 01:18 AM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-22-2020, 01:12 PM
RE: Upcoming moOde 6.5.0 - by Pieter - 02-24-2020, 08:14 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 02-24-2020, 01:56 AM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 03-02-2020, 12:00 AM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 03-02-2020, 12:04 AM
RE: Upcoming moOde 6.5.0 - by DRONE7 - 03-03-2020, 06:52 AM
RE: Upcoming moOde 6.5.0 - by TookaFace - 03-03-2020, 10:19 AM
RE: Upcoming moOde 6.5.0 - by philrandal - 03-03-2020, 02:50 PM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 03-03-2020, 03:42 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 03-03-2020, 12:42 PM
RE: Upcoming moOde 6.5.0 - by TookaFace - 03-03-2020, 12:55 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 03-03-2020, 01:04 PM
RE: Upcoming moOde 6.5.0 - by TookaFace - 03-03-2020, 02:56 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 03-03-2020, 04:20 PM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 03-03-2020, 04:48 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 03-03-2020, 05:45 PM
RE: Upcoming moOde 6.5.0 - by philrandal - 03-04-2020, 01:36 PM
RE: Upcoming moOde 6.5.0 - by TookaFace - 03-03-2020, 06:15 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 03-03-2020, 06:51 PM
RE: Upcoming moOde 6.5.0 - by corrobor - 03-14-2020, 09:04 AM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 03-14-2020, 12:52 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 03-22-2020, 10:57 PM
RE: Upcoming moOde 6.5.0 - by HemiRick - 03-23-2020, 02:13 AM
RE: Upcoming moOde 6.5.0 - by japumpy - 03-23-2020, 02:25 AM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 03-23-2020, 02:30 AM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 03-23-2020, 02:36 AM
RE: Upcoming moOde 6.5.0 - by Chris Tennant - 03-23-2020, 09:10 AM
RE: Upcoming moOde 6.5.0 - by vinnn - 03-23-2020, 02:27 PM
RE: Upcoming moOde 6.5.0 - by TheOldPresbyope - 04-06-2020, 05:08 PM
RE: Upcoming moOde 6.5.0 - by romain - 04-06-2020, 05:09 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 04-12-2020, 08:45 PM
RE: Upcoming moOde 6.5.0 - by Tim Curtis - 04-14-2020, 09:27 PM

Forum Jump: