I'd like to be able to cross-compile Rust applications for Sailfish OS (which is a Linux-based mobile operating system). Since nobody from the Sailfish community was able to help me, I thought I could ask here, so here's the problem:
The Sailfish OS Platform SDK is a chroot environment (a 32-bit one, to be precise), so my Rust installation is 32-bit as well; I've installed it via rustup. However, to compile code for target devices the SDK uses scratchbox2 and a rootfs which contains arch-specific libraries. Running rustc/cargo from the chroot works fine, but if I try to do it from an sb2 prompt, it simply freezes.
I've tried doing an strace, which seems to be waiting forever at this call: futex(0xf77c4c84, FUTEX_WAIT_PRIVATE, 2, NULL
I know that sb2 is a complex piece of software that does a lot of things, and have just recently found this document, which I haven't yet fully read:
The Sailfish OS Platform SDK installation doc is here, if anyone wants to reproduce the issue. I've tried compiling for an i486 target, so that qemu doesn't come into play.
Can anyone tell me why that error is happening?