While waiting for the next SDK to be available for 4.6.x to be able to try some new rust version goodness, I figured out I could use community OBS builds which should work just the same. I have a couple of problems though.
The packages I’m trying to build are librespot
and wl-clipboard-rs
.
N.B: Both packages build on intel without errors!
The first one (librespot) is a modified version of wdehoog’s version that drops most of the rust version patches and uses a fresher vendor archive.
The error:
= note: /usr/bin/ld: cannot find -lasound: No such file or directory
/usr/bin/ld: cannot find -lpulse-simple: No such file or directory
/usr/bin/ld: cannot find -lpulse: No such file or directory
/usr/bin/ld: cannot find -lpulse: No such file or directory
collect2: error: ld returned 1 exit status
previously -L
has "/usr/lib/rustlib/i686-unknown-linux-gnu/lib"
even on the ARM targets…
The second one (wl-clipboard-rs) has dependencies on cargo-packaging
and cargo-auditable
.
Both packages are siblings and are failing one way or another to complete the build on non-Intel targets.
The "failure"s are just build being stuck at some (random) phase. I have tried to remove the --release
from cargo build --offline --release
and I noticed some builds (e.g. 32-bit) go a bit further. But the time they are locked is not consistent, meaning that I do not spot a pattern (30’ seconds? 60’ seconds?)
They are just killed after 1800 seconds.
And again, they ALL pass with an Intel target.
So to recap: library errors and builds stuck with cargo build
only on ARM…
L.E. None of the software above would have build without deep changes to accommodate the old version of rust before. The fact that the builds pass on Intel are a clear win , and they may pass on device too, since both errors seem to be VM related