Re: [rust-dev] Building rustc to cross-compile to Android

2014-06-28 Thread Skirmantas Kligys
d-ifaddrs.h depends on sockaddr (defined in sys/socket.h), but never > includes it. linux-core.c does include it, but only after including > android-ifaddrs.h. > > On 1403990292582, Skirmantas Kligys wrote: >> >> I am trying to build a rustc for x86_64 Linux that would cross-com

[rust-dev] Building rustc to cross-compile to Android

2014-06-28 Thread Skirmantas Kligys
I am trying to build a rustc for x86_64 Linux that would cross-compile to Android. I follow instructions on this page: https://github.com/rust-lang/rust/wiki/Doc-building-for-android Here is my configure command line: ../configure --prefix=/usr/local/stow/rust-android-20140627 --target=arm-linu

Re: [rust-dev] Rust (Servo) Cross-Compile to ARM

2014-06-08 Thread Skirmantas Kligys
is the correct way to compile: rustc --target arm-unknown-linux-gnueabihf -C linker=arm-linux-gnueabihf-g++ hello.rs Thanks for help! > On Sun, Jun 8, 2014 at 2:57 PM, Skirmantas Kligys > wrote: >> Luqman Aden writes: >>> >>> Building a Rust cross compiler that can ta

Re: [rust-dev] Rust (Servo) Cross-Compile to ARM

2014-06-08 Thread Skirmantas Kligys
Luqman Aden writes: > > Building a Rust cross compiler that can target arm isn't too hard. You just need the right toolchain installed. I personally use Debian with the gcc-4.7-arm-linux-gnueabi package from the Emdebian repo. (I believe Ubuntu and other distros have similar packages). From th

Re: [rust-dev] Calling back into Rust from C code

2013-05-13 Thread Skirmantas Kligys
On Sun, May 12, 2013 at 3:23 AM, Florian Weimer wrote: > * Skirmantas Kligys: > >> I am trying to write a native wrapper for >> >> https://github.com/pascalj/rust-expat >> >> (BTW, if there is a native Rust XML parser, I am interested to hear >> about it,

[rust-dev] Calling back into Rust from C code

2013-05-11 Thread Skirmantas Kligys
I am trying to write a native wrapper for https://github.com/pascalj/rust-expat (BTW, if there is a native Rust XML parser, I am interested to hear about it, did not find it). I have trouble calling back into Rust from C code: fn set_element_handlers(parser: expat::XML_Parser, start_handler: &f