Re: [SailfishDevel] Setting up environment for compiling Rust code

2016-10-24 Thread Krzysztof Lesiak
Just did that with the i486 target. Seems to be waiting forever at that last 
futex.

On 24.10.2016 15:16, Tone Kastlunger wrote:
strace it?

On Sat, Oct 22, 2016 at 3:16 PM, Krzysztof Lesiak 
> wrote:
On the platform SDK.

On Do. Okt. 20 10:48:48 2016 GMT+0200, Tone Kastlunger wrote:
> Are you building on the Platform SDK or on the Mer VM?
>
>
>
> On Mon, Oct 17, 2016 at 10:26 PM, Krzysztof Lesiak 
> > wrote:
>
> Hi all,
>
>
> I'd like to be able to build applications in Rust to run on Sailfish OS; I've 
> installed the Platform SDK, entered the chroot and ran the Rust toolchain 
> installer. Building a simple hello world within the chroot works fine, but 
> for actual applications I need external libraries, which are provided by the 
> targets, i.e. in sb2. However, when I launch sb2 and try to run rustc 
> --version (Rust compiler) or cargo --version (Rust package manager) it 
> doesn't do anything. There's no output, it just hangs until I kill it with 
> Ctrl+C. It happens with both, armv7hl and i486 targets.
>
> Can somebody tell me what's causing this? I couldn't find much documentation 
> about sb2 on the web.
>
>
> Best Regards,
> Krzysztof
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to 
> devel-unsubscr...@lists.sailfishos.org
>
>
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org

$ strace cargo

execve("/parentroot/srv/mer/targets/SailfishOS-i486/lib/ld-linux.so.2", 
["/parentroot/srv/mer/targets/Sail"..., "--rpath-prefix", 
"/parentroot/srv/mer/targets/Sail"..., "--nodefaultdirs", "--argv0", "cargo", 
"/home/krzysztof/.cargo/bin/cargo"], [/* 51 vars */]) = 0
brk(0)  = 0x580d9000
open("/home/krzysztof/.cargo/bin/cargo", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0<\211\3\0004\0\0\0"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=7805076, ...}) = 0
mmap2(NULL, 6680484, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0xf70c5000
mmap2(0xf76bf000, 393216, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5fa000) = 0xf76bf000
mmap2(0xf771f000, 20388, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xf771f000
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xf70c4000
open("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/i686/sse2/cmov/libsb2.so.1",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/i686/sse2/cmov",
 0xffda93b0) = -1 ENOENT (No such file or directory)
open("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/i686/sse2/libsb2.so.1",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/i686/sse2",
 0xffda93b0) = -1 ENOENT (No such file or directory)
open("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/i686/cmov/libsb2.so.1",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/i686/cmov",
 0xffda93b0) = -1 ENOENT (No such file or directory)
open("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/i686/libsb2.so.1",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/i686", 
0xffda93b0) = -1 ENOENT (No such file or directory)
open("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/sse2/cmov/libsb2.so.1",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/sse2/cmov",
 0xffda93b0) = -1 ENOENT (No such file or directory)
open("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/sse2/libsb2.so.1",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/sse2", 
0xffda93b0) = -1 ENOENT (No such file or directory)
open("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/cmov/libsb2.so.1",
 O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/parentroot/srv/mer/targets/SailfishOS-i486/usr/lib/libsb2/tls/cmov", 
0xffda93b0) = -1 ENOENT (No such file or directory)

Re: [SailfishDevel] Setting up environment for compiling Rust code

2016-10-24 Thread Krzysztof Lesiak
Thanks, but I'd really like to avoid on-device compiling. For big projects, 
like e.g. Servo it's just not feasible.

On 24.10.2016 15:37, Corvinux wrote:
Maybe you should also check out this 
https://github.com/rust-lang/rust/issues/35843

It helped me get rustup, rustc and cargo working on Jolla C

Corvinux

On Mon, Oct 24, 2016 at 3:16 PM, Tone Kastlunger 
> wrote:
strace it?

On Sat, Oct 22, 2016 at 3:16 PM, Krzysztof Lesiak 
> wrote:
On the platform SDK.

On Do. Okt. 20 10:48:48 2016 GMT+0200, Tone Kastlunger wrote:
> Are you building on the Platform SDK or on the Mer VM?
>
>
>
> On Mon, Oct 17, 2016 at 10:26 PM, Krzysztof Lesiak 
> > wrote:
>
> Hi all,
>
>
> I'd like to be able to build applications in Rust to run on Sailfish OS; I've 
> installed the Platform SDK, entered the chroot and ran the Rust toolchain 
> installer. Building a simple hello world within the chroot works fine, but 
> for actual applications I need external libraries, which are provided by the 
> targets, i.e. in sb2. However, when I launch sb2 and try to run rustc 
> --version (Rust compiler) or cargo --version (Rust package manager) it 
> doesn't do anything. There's no output, it just hangs until I kill it with 
> Ctrl+C. It happens with both, armv7hl and i486 targets.
>
> Can somebody tell me what's causing this? I couldn't find much documentation 
> about sb2 on the web.
>
>
> Best Regards,
> Krzysztof
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to 
> devel-unsubscr...@lists.sailfishos.org
>
>
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to 
devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Setting up environment for compiling Rust code

2016-10-24 Thread Corvinux
Maybe you should also check out this
https://github.com/rust-lang/rust/issues/35843

It helped me get rustup, rustc and cargo working on Jolla C

Corvinux

On Mon, Oct 24, 2016 at 3:16 PM, Tone Kastlunger 
wrote:

> strace it?
>
> On Sat, Oct 22, 2016 at 3:16 PM, Krzysztof Lesiak 
> wrote:
>
>> On the platform SDK.
>>
>> On Do. Okt. 20 10:48:48 2016 GMT+0200, Tone Kastlunger wrote:
>> > Are you building on the Platform SDK or on the Mer VM?
>> >
>> >
>> >
>> > On Mon, Oct 17, 2016 at 10:26 PM, Krzysztof Lesiak <
>> wave@hotmail.com> wrote:
>> >
>> > Hi all,
>> >
>> >
>> > I'd like to be able to build applications in Rust to run on Sailfish
>> OS; I've installed the Platform SDK, entered the chroot and ran the Rust
>> toolchain installer. Building a simple hello world within the chroot works
>> fine, but for actual applications I need external libraries, which are
>> provided by the targets, i.e. in sb2. However, when I launch sb2 and try to
>> run rustc --version (Rust compiler) or cargo --version (Rust package
>> manager) it doesn't do anything. There's no output, it just hangs until I
>> kill it with Ctrl+C. It happens with both, armv7hl and i486 targets.
>> >
>> > Can somebody tell me what's causing this? I couldn't find much
>> documentation about sb2 on the web.
>> >
>> >
>> > Best Regards,
>> > Krzysztof
>> >
>> >
>> > ___
>> > SailfishOS.org Devel mailing list
>> > To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>> >
>> >
>> >
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Setting up environment for compiling Rust code

2016-10-24 Thread Tone Kastlunger
strace it?

On Sat, Oct 22, 2016 at 3:16 PM, Krzysztof Lesiak 
wrote:

> On the platform SDK.
>
> On Do. Okt. 20 10:48:48 2016 GMT+0200, Tone Kastlunger wrote:
> > Are you building on the Platform SDK or on the Mer VM?
> >
> >
> >
> > On Mon, Oct 17, 2016 at 10:26 PM, Krzysztof Lesiak 
> wrote:
> >
> > Hi all,
> >
> >
> > I'd like to be able to build applications in Rust to run on Sailfish OS;
> I've installed the Platform SDK, entered the chroot and ran the Rust
> toolchain installer. Building a simple hello world within the chroot works
> fine, but for actual applications I need external libraries, which are
> provided by the targets, i.e. in sb2. However, when I launch sb2 and try to
> run rustc --version (Rust compiler) or cargo --version (Rust package
> manager) it doesn't do anything. There's no output, it just hangs until I
> kill it with Ctrl+C. It happens with both, armv7hl and i486 targets.
> >
> > Can somebody tell me what's causing this? I couldn't find much
> documentation about sb2 on the web.
> >
> >
> > Best Regards,
> > Krzysztof
> >
> >
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
> >
> >
> >
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Setting up environment for compiling Rust code

2016-10-22 Thread Krzysztof Lesiak
On the platform SDK.

On Do. Okt. 20 10:48:48 2016 GMT+0200, Tone Kastlunger wrote:
> Are you building on the Platform SDK or on the Mer VM?
> 
> 
> 
> On Mon, Oct 17, 2016 at 10:26 PM, Krzysztof Lesiak  
> wrote:
> 
> Hi all,
> 
> 
> I'd like to be able to build applications in Rust to run on Sailfish OS; I've 
> installed the Platform SDK, entered the chroot and ran the Rust toolchain 
> installer. Building a simple hello world within the chroot works fine, but 
> for actual applications I need external libraries, which are provided by the 
> targets, i.e. in sb2. However, when I launch sb2 and try to run rustc 
> --version (Rust compiler) or cargo --version (Rust package manager) it 
> doesn't do anything. There's no output, it just hangs until I kill it with 
> Ctrl+C. It happens with both, armv7hl and i486 targets.
> 
> Can somebody tell me what's causing this? I couldn't find much documentation 
> about sb2 on the web.
> 
> 
> Best Regards,
> Krzysztof
> 
> 
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
> 
> 
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Setting up environment for compiling Rust code

2016-10-20 Thread Tone Kastlunger
Are you building on the Platform SDK or on the Mer VM?

On Mon, Oct 17, 2016 at 10:26 PM, Krzysztof Lesiak 
wrote:

> Hi all,
>
>
> I'd like to be able to build applications in Rust to run on Sailfish OS;
> I've installed the Platform SDK, entered the chroot and ran the Rust
> toolchain installer . Building a simple hello world
> within the chroot works fine, but for actual applications I need external
> libraries, which are provided by the targets, i.e. in sb2. However, when I
> launch sb2 and try to run rustc --version (Rust compiler) or cargo
> --version (Rust package manager) it doesn't do anything. There's no output,
> it just hangs until I kill it with Ctrl+C. It happens with both, armv7hl
> and i486 targets.
>
> Can somebody tell me what's causing this? I couldn't find much
> documentation about sb2 on the web.
>
>
> Best Regards,
>
> Krzysztof
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Setting up environment for compiling Rust code

2016-10-17 Thread Krzysztof Lesiak
Hi all,


I'd like to be able to build applications in Rust to run on Sailfish OS; I've 
installed the Platform SDK, entered the chroot and ran the Rust toolchain 
installer. Building a simple hello world within the chroot 
works fine, but for actual applications I need external libraries, which are 
provided by the targets, i.e. in sb2. However, when I launch sb2 and try to run 
rustc --version (Rust compiler) or cargo --version (Rust package manager) it 
doesn't do anything. There's no output, it just hangs until I kill it with 
Ctrl+C. It happens with both, armv7hl and i486 targets.

Can somebody tell me what's causing this? I couldn't find much documentation 
about sb2 on the web.


Best Regards,

Krzysztof
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org