Closed microfx closed 1 year ago
= note: collect2: fatal error: ld terminated with signal 9 [Killed]
It is possible that you do not have enough RAM, and various compilation processes are getting killed by OOM killer or by some user-space OOM solutions (like systemd-oomd). Check dmesg
and other system logs.
You may try to run with -j1
and add some swap space to circumvent this.
Thanks!! Alright... can you give me a hint how to increase swap? I have already thought that this is the problem since swap is only around 100 MB (RAM 1 GB).
Would you recommend to compile it better on my Mac in general?
Thanks!! Alright... can you give me a hint how to increase swap? I have already thought that this is the problem since swap is only around 100 MB (RAM 1 GB).
It depends... Usually it is done in a following way:
cfdisk /dev/sdX
, where X
is a drive letter (a, b, c... etc.)mkswap /dev/sdXY
, where Y
is a number of the newly created partition.swapon /dev/sdXY
/etc/fstab
so that it will activate automatically during bootNote that creating swap on sdcard is a bad idea as sdcards are usually extremely slow. I would recommend external USB 3.0 SSD if you have it.
Would you recommend to compile it better on my Mac in general?
I would recommend to compile this on some other system as 1 GiB of RAM is just too small for projects in "heavy" languages such as Rust and C++. But compiling on Mac with macOS or on regular Windows x86 PC is not an easy task because of different OS and different CPU architecture. Cross-compiling is not easy.
Okay... I just realised this was not my Pi 4 but Pi 3 ... hence the insufficient ram / swp – just compiled it on my Pi 4 in 22 min! Yay! Thanks for the tips&tricks!
Hey!
Trying to build librespot but the raspberry always crashes on the way (no connection possible anymore).
Build command used:
cargo build --no-default-features --features rodiojack-backend --locked
This is the last step before crashing:
^C Building [======================> ] 321/346: libgit2-sys(build), librespot-protocol, rustls-native-certs, rustls, rustls
System:
I am running build for the second time now and it gets past that last step – I remember it being the last time like this as well ... BUT the librespot binary behaves weird (crashes a lot). I wish I could just download the binary ... but there is no binary with my features.
2nd run errored out as well (mind that I added -j 2 ... I read that it then only uses 2 threads)
Any clue?
Cheers!