Dear Rust Developers,

Yesterday I tried to Compile Rust on a Panda board with Ubuntu 12.04.
I reused Luqman's Rust binary (armhf), but I got the following error:

compile_and_link: arm-unknown-linux-gnu/stage0/lib/rustc/arm-unknown-linux-gnu/lib/libstd.so arm-unknown-linux-gnu/stage0/bin/rustc: error while loading shared libraries: libgreen-83b1c0e5-0.9.so: cannot open shared object file: No such file or directory make: *** [arm-unknown-linux-gnu/stage0/lib/rustc/arm-unknown-linux-gnu/lib/libstd.so] Error 127

Then I copied this lib from the Luqman's Rust libs to this folder: arm-unknown-linux-gnu/stage0/lib/. After that a new error came:

cp: arm-unknown-linux-gnu/stage0/lib/rustc/arm-unknown-linux-gnu/lib/librustrt.a compile_and_link: arm-unknown-linux-gnu/stage0/lib/rustc/arm-unknown-linux-gnu/lib/libstd.so /home/ebalint/Work/rust_servo_version_cross/rust/src/libstd/managed.rs:36:26: 36:29 error: found `mut` in ident position /home/ebalint/Work/rust_servo_version_cross/rust/src/libstd/managed.rs:36 pub fn mut_ptr_eq<T>(a: @mut T, b: @mut T) -> bool {
^~~
/home/ebalint/Work/rust_servo_version_cross/rust/src/libstd/managed.rs:36:30: 36:31 error: expected `,` but found `T` /home/ebalint/Work/rust_servo_version_cross/rust/src/libstd/managed.rs:36 pub fn mut_ptr_eq<T>(a: @mut T, b: @mut T) -> bool {
^
task 'rustc' failed at 'explicit failure', /scratch/laden/rust/src/libsyntax/diagnostic.rs:41 task '<main>' failed at 'explicit failure', /scratch/laden/rust/src/librustc/lib.rs:448 make: *** [arm-unknown-linux-gnu/stage0/lib/rustc/arm-unknown-linux-gnu/lib/libstd.so] Error 101


Can you write me how you did the compiling on your RK3188?

Thank you,
Best Regards:
Edit


On 2014-02-11 17:25, Edit Balint wrote:
Dear Rust Developers,
Thank you for your answers.

Cross-compiling Rust HelloWorld to ARM was working fine.

Passing --target-triples=arm-unknown-linux-gnueabihf to the servo configure script wasn't working. The result servo binary was x86-64.

Today I'm going to try to compile Rust on ARM platform, reusing Luqman's compiled binaries as a snapshot.

Best Regards,

Edit

On 2014-02-06 18:06, Simon Sapin wrote:
On 06/02/2014 16:30, Edit Balint wrote:
Dear Rust Developers!

My name is Edit Balint, I'm a software developer at University of
Szeged, Hungary.
We have a research project regarding Servo and Rust.
Our main goal is to cross-compile and run Rust and Servo on ARM Linux
(not  Android).
We have several issues with the cross-compiling procedure. Is there any
guide how to achieve this?

Although you’re not using Android, this

https://github.com/mozilla/servo/wiki/Building-for-Android#wiki-build-servo

suggests that you need to pass --target-triples=arm-linux-SOMETHING to the configure script, but I don’t know what value of SOMETHING is relevant to you. It may be gnu, the default triple on my machine is x86_64-unknown-linux-gnu.


_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to