Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Sage 5.4 on ARM
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 34 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Julien Puydt  
View profile  
 More options Nov 16 2012, 3:11 am
From: Julien Puydt <julien.pu...@laposte.net>
Date: Fri, 16 Nov 2012 09:10:59 +0100
Local: Fri, Nov 16 2012 3:10 am
Subject: Sage 5.4 on ARM
Hi,

I finished compiling sage 5.4 on ARM. I'll make a bdist available soon,
and run "make ptestlong" afterwards (and report).

The compilation went mostly fine ; the only caveat is that in libm4rie,
conversion.c took hours to build, and wouldn't build with MAKE="make -j
3" because it was too heavy for the box in that case.

Snark on #sagemath


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julien Puydt  
View profile  
 More options Nov 16 2012, 6:53 am
From: Julien Puydt <julien.pu...@laposte.net>
Date: Fri, 16 Nov 2012 12:53:21 +0100
Local: Fri, Nov 16 2012 6:53 am
Subject: Re: [sage-devel] Sage 5.4 on ARM
Le 16/11/2012 09:10, Julien Puydt a crit :

>  I'll make a bdist available soon,

Here it is:
http://boxen.math.washington.edu/home/jpuydt/sage-5.4-armv7l-Linux.ta...

I'd like to know if it works on more recent ARM-based hardware ; for
example, if someone has an android tablet, it should be possible to
install ubuntu in a chroot (I think there's an app for that, something
like "Ubuntu noroot" or some such) and run the bdist from there.

I just started the tests, and as usual it starts by rebuilding the
docs... I'll report when it will be finished.

Snark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mmarco  
View profile  
 More options Nov 16 2012, 10:53 am
From: mmarco <mma...@unizar.es>
Date: Fri, 16 Nov 2012 07:53:43 -0800 (PST)
Local: Fri, Nov 16 2012 10:53 am
Subject: Re: Sage 5.4 on ARM
I run sage on my tablet (asus transformer prime) precisely in that
way: over a ubuntu chroot. I have an old version installed though. I
have an ubuntu 10 chroot, where i compiled sage 4.8 (it was a pain:
over a week of comilation time).

Later i tested version 5.1 over a very minimal newer version of
ubuntu. It also runs fine.

Which version of ubuntu did you build it in?

On 16 nov, 12:53, Julien Puydt <julien.pu...@laposte.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julien Puydt  
View profile  
 More options Nov 16 2012, 11:07 am
From: Julien Puydt <julien.pu...@laposte.net>
Date: Fri, 16 Nov 2012 17:07:00 +0100
Subject: Re: [sage-devel] Re: Sage 5.4 on ARM
Le 16/11/2012 16:53, mmarco a crit :

> I run sage on my tablet (asus transformer prime) precisely in that
> way: over a ubuntu chroot. I have an old version installed though. I
> have an ubuntu 10 chroot, where i compiled sage 4.8 (it was a pain:
> over a week of comilation time).

What!? *A week*!?

If I don't err, this box has:
- 1Go of RAM (vs 512Mo)
- a quad-core nvidia tegra 3 (vs dual-core nvidia tegra 2)

Perhaps you didn't compile with export MAKE="make -j 3" ?

I was pondering buying one of those beasts (more powerful, more ram,
good autonomy) to replace my poor netbook (toshiba AC100, whose hinges
are starting to get bad -- mechanical problem), so I'm really interested
in understanding what happens.

> Which version of ubuntu did you build it in?

Ubuntu precise (12.04).

Snark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mmarco  
View profile  
 More options Nov 16 2012, 12:58 pm
From: mmarco <mma...@unizar.es>
Date: Fri, 16 Nov 2012 09:58:38 -0800 (PST)
Local: Fri, Nov 16 2012 12:58 pm
Subject: Re: Sage 5.4 on ARM
Well, the main problem was overheating. Compilation failed several
times, the device turned off by itself. I even think it got damaged,
since the power button stopped working properly (luckily asus was kind
enough to replace it)

On 16 nov, 17:07, Julien Puydt <julien.pu...@laposte.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julien Puydt  
View profile  
 More options Nov 16 2012, 1:09 pm
From: Julien Puydt <julien.pu...@laposte.net>
Date: Fri, 16 Nov 2012 19:09:16 +0100
Local: Fri, Nov 16 2012 1:09 pm
Subject: Re: [sage-devel] Re: Sage 5.4 on ARM
Le 16/11/2012 18:58, mmarco a crit :

> Well, the main problem was overheating. Compilation failed several
> times, the device turned off by itself. I even think it got damaged,
> since the power button stopped working properly (luckily asus was kind
> enough to replace it)

Ouch. Bad, very bad, extremely bad!

I wouldn't have asked for a replacement but for a refound...

What model of asus transformer prime was it?

Snark on #sagemath


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julien Puydt  
View profile  
 More options Nov 16 2012, 3:58 pm
From: Julien Puydt <julien.pu...@laposte.net>
Date: Fri, 16 Nov 2012 21:58:30 +0100
Local: Fri, Nov 16 2012 3:58 pm
Subject: Re: [sage-devel] Sage 5.4 on ARM
Le 16/11/2012 09:10, Julien Puydt a crit :

> and run "make ptestlong" afterwards (and report).

Ok, now it's done.

The failing tests are the usual ones: the ones related to the gamma
function in the libc, and the maxima("1.7e+17") error.

No regression.

Snark on #sagemath


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dima Pasechnik  
View profile  
 More options Nov 17 2012, 4:13 am
From: Dima Pasechnik <dimp...@gmail.com>
Date: Sat, 17 Nov 2012 09:13:01 +0000 (UTC)
Local: Sat, Nov 17 2012 4:13 am
Subject: Re: Sage 5.4 on ARM
On 2012-11-16, Julien Puydt <julien.pu...@laposte.net> wrote:

IMHO Samsung's new ARM Chromebook is what you might want; unfortunately
the internal SSD is small, only 16GB (like on AC100), but 1.7GHz
dual-core Cortex A15.  (and 12"(?) screen)

http://www.chromium.org/chromium-os/developer-information-for-chrome-...

Best,
Dima


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julien Puydt  
View profile  
 More options Nov 17 2012, 5:11 am
From: Julien Puydt <julien.pu...@laposte.net>
Date: Sat, 17 Nov 2012 11:11:01 +0100
Local: Sat, Nov 17 2012 5:11 am
Subject: Re: [sage-devel] Re: Sage 5.4 on ARM
Le 17/11/2012 10:13, Dima Pasechnik a crit :

> IMHO Samsung's new ARM Chromebook is what you might want; unfortunately
> the internal SSD is small, only 16GB (like on AC100), but 1.7GHz
> dual-core Cortex A15.  (and 12"(?) screen)

> http://www.chromium.org/chromium-os/developer-information-for-chrome-...

The internal storage is small, but since it's possible to stick a big SD
in, that could fly (I need about 5Go for a system, 7Go for sage [did I
mention it's too much?] and 20Go [mostly] static storage).

Now I'll only
(1) make sure it can run ubuntu instead of the crappy chrome OS it ships
with
(2) wait until it's available in France (my AC100 isn't dead yet, so no
hurry).

I can't help but notice that you didn't comment on the thread's main
topic: the quite honest status of sage on ARM/ubuntu :-P

Snark on #sagemath


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mmarco  
View profile  
 More options Nov 17 2012, 6:03 am
From: mmarco <mma...@unizar.es>
Date: Sat, 17 Nov 2012 03:03:14 -0800 (PST)
Local: Sat, Nov 17 2012 6:03 am
Subject: Re: Sage 5.4 on ARM
It was a TF 201

Oh, and btw, i think the real bottleneck with it was not the
processor, but the disk access. The processor is not bad (but again,
it can overheat), but the access to the internal sd disk is too slow.

Definitely, not a machine designed with this purpose in mind. And i
guess that pretty much the same could be said for almost every tablet
or smartphone: no cooling system, usually slow internal drives... they
are thought for another kind of usage.

But if your process is not very disk intensive, it does a decent job.
Foir instance, now that i have sage installed, it takes a long time to
startup, but after that, the speed is decent.

On 16 nov, 19:09, Julien Puydt <julien.pu...@laposte.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julien Puydt  
View profile  
 More options Nov 17 2012, 6:53 am
From: Julien Puydt <julien.pu...@laposte.net>
Date: Sat, 17 Nov 2012 12:52:58 +0100
Local: Sat, Nov 17 2012 6:52 am
Subject: Re: [sage-devel] Re: Sage 5.4 on ARM
Le 17/11/2012 12:03, mmarco a crit :

> It was a TF 201

> Oh, and btw, i think the real bottleneck with it was not the
> processor, but the disk access. The processor is not bad (but again,
> it can overheat), but the access to the internal sd disk is too slow.

> Definitely, not a machine designed with this purpose in mind. And i
> guess that pretty much the same could be said for almost every tablet
> or smartphone: no cooling system, usually slow internal drives... they
> are thought for another kind of usage.

> But if your process is not very disk intensive, it does a decent job.
> Foir instance, now that i have sage installed, it takes a long time to
> startup, but after that, the speed is decent.

Same as my AC100 ; and I suspect it is likewise with the latest ARM
chromebook.

Though I think more ram should help, since the poor AC100 has both a
slow (and small) storage, and needs to swap to it a lot.

Snark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dima Pasechnik  
View profile  
 More options Nov 17 2012, 6:57 am
From: Dima Pasechnik <dimp...@gmail.com>
Date: Sat, 17 Nov 2012 11:57:27 +0000 (UTC)
Local: Sat, Nov 17 2012 6:57 am
Subject: Re: Sage 5.4 on ARM
On 2012-11-17, Julien Puydt <julien.pu...@laposte.net> wrote:

> The internal storage is small, but since it's possible to stick a big SD
> in, that could fly (I need about 5Go for a system, 7Go for sage [did I
> mention it's too much?] and 20Go [mostly] static storage).

> Now I'll only
> (1) make sure it can run ubuntu instead of the crappy chrome OS it ships
> with
> (2) wait until it's available in France (my AC100 isn't dead yet, so no
> hurry).

it might take a while, as they are apparently being sold out very
quickly...

> I can't help but notice that you didn't comment on the thread's main
> topic: the quite honest status of sage on ARM/ubuntu :-P

Since Sept. my nappy-changing duties take away a lot of time, so I didn't touch
ARM since. :-)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mmarco  
View profile  
 More options Dec 7 2012, 7:15 am
From: mmarco <mma...@unizar.es>
Date: Fri, 7 Dec 2012 04:15:09 -0800 (PST)
Local: Fri, Dec 7 2012 7:15 am
Subject: Re: Sage 5.4 on ARM

I have tried your package in a chroot environment (actually in two, a
full ubuntu and a lubuntu), and it doesn't start in neither of them.

Stranegly, the problem seems to be different: in the lubuntu case, it
just shows the message with the version and quits. In the full ubuntu,
it complains with the message "can't import module sage", but for
example, sage -python works fine


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mmarco  
View profile  
 More options Dec 7 2012, 7:55 am
From: mmarco <mma...@unizar.es>
Date: Fri, 7 Dec 2012 04:55:55 -0800 (PST)
Local: Fri, Dec 7 2012 7:55 am
Subject: Re: Sage 5.4 on ARM
Nevermind, i found the problem: i had to use an armhf ubuntu.

On 7 dic, 13:15, mmarco <mma...@unizar.es> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jaebond  
View profile  
 More options Dec 7 2012, 5:46 pm
From: jaebond <jacob.ae.b...@gmail.com>
Date: Fri, 7 Dec 2012 14:46:04 -0800 (PST)
Local: Fri, Dec 7 2012 5:46 pm
Subject: Re: Sage 5.4 on ARM

mmarco,

I had been working on this exact same issue a few months ago.  Would you
mind explaining what you did to fix your issue?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mmarco  
View profile  
 More options Dec 8 2012, 9:22 am
From: mmarco <mma...@unizar.es>
Date: Sat, 8 Dec 2012 06:22:20 -0800 (PST)
Local: Sat, Dec 8 2012 9:22 am
Subject: Re: Sage 5.4 on ARM
The problem was that the ubuntu image that i was using was armel
architecture, but the sage distribution made by Julien was compiled in
an armhf environment (a slightly different architecture). So there
were not compatible.

My solution was to get an armhf rootfs from the ubuntu core site
(http://cdimage.ubuntu.com/ubuntu-core/releases/12.04/release/), and
create a disk image with it to use.

The procedure to do so would be the following (on a linux box, maybe
you would need root privileges to mount the image):

1) create an empty file to build the image in. If you just wwant it to
use sage, 3GB should be fine. If you want to install a complete ubuntu
system, you will need more (i used 7GB):
dd -if=/dev/zero of=ubuntu.img -bs=1G count=3

2) format the file
mkfs.ext2 ubuntu.img

3)create a directory and mount the image there
mkdir mount
mount -o loop ubuntu.img mount

4) put the ubuntu core tarball in the directory and unpack it
cd mount
wget http://cdimage.ubuntu.com/ubuntu-core/releases/12.04/release/ubuntu-c...
tar xzf ubuntu-core-12.04.1-core-armhf.tar.gz

5) Unpack the sage install inside the directory
6) Unmount the directory
cd ..
umount mount

And that's it, the file ubuntu.img is ready to be used as a chroot
environment with a very minimal ubuntu system (not even graphical
interface, just the very basic system tools), where sage should work
just fine.

I do have a 7gb image with a lightweight desktop, vnc server, and some
applications installed (although for example qt apps don't render
well, and firefox and chromium don't work either, so i have replaced
them by some alternatives).

I can try to upload it somewhere, if people is interested.

On 7 dic, 23:46, jaebond <jacob.ae.b...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julien Puydt  
View profile  
 More options Dec 8 2012, 11:42 am
From: Julien Puydt <julien.pu...@laposte.net>
Date: Sat, 08 Dec 2012 17:42:37 +0100
Local: Sat, Dec 8 2012 11:42 am
Subject: Re: [sage-devel] Re: Sage 5.4 on ARM
Le 07/12/2012 23:46, jaebond a crit :

> I had been working on this exact same issue a few months ago. Would you
> mind explaining what you did to fix your issue?

To explain a bit more: there are several arm flavours, the armel and the
armhf. The -el stands for "endian-little" (a pun), the -hf for "hard
float". When I started the sage port to arm, I used the armel flavour
(which was the only available then). I switched to armhf as soon as
possible (as you can guess, using hard floats instead of software floats
tends to be faster).

Snark on #sagemath


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jaebond  
View profile  
 More options Dec 8 2012, 5:01 pm
From: jaebond <jacob.ae.b...@gmail.com>
Date: Sat, 8 Dec 2012 14:01:36 -0800 (PST)
Local: Sat, Dec 8 2012 5:01 pm
Subject: Re: Sage 5.4 on ARM

Thank you for that, that will help a lot.  I would be interested in the 7gb
file.  How do you chroot into your images, do you use a script or an app?
 I have been using an app, but it doesn't seem to like images that weren't
made by the app.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mmarco  
View profile  
 More options Dec 9 2012, 4:56 am
From: mmarco <mma...@unizar.es>
Date: Sun, 9 Dec 2012 01:56:52 -0800 (PST)
Local: Sun, Dec 9 2012 4:56 am
Subject: Re: Sage 5.4 on ARM
I have made a zip archive with both the image and the scripts that i
use. you can download it from:

http://riemann.unizar.es/algebra/Archive1.zip

It also includes a readme.txt file

On 8 dic, 23:01, jaebond <jacob.ae.b...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mmarco  
View profile  
 More options Dec 13 2012, 6:35 am
From: mmarco <mma...@unizar.es>
Date: Thu, 13 Dec 2012 03:35:52 -0800 (PST)
Local: Thurs, Dec 13 2012 6:35 am
Subject: Re: Sage 5.4 on ARM
jaebond, did you try the image i linked? did it work for you?

On 9 dic, 10:56, mmarco <mma...@unizar.es> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tom d  
View profile  
 More options Dec 19 2012, 3:52 pm
From: tom d <sdent...@gmail.com>
Date: Wed, 19 Dec 2012 12:52:05 -0800 (PST)
Local: Wed, Dec 19 2012 3:52 pm
Subject: Re: Sage 5.4 on ARM

Hey, yo;

I'm experimenting with building Sage on the Raspberry Pi.  It apparently
has an ARM6 processor, so I'm running from scratch.  I ran into problems
building libm4rie as well (and also on building conversion.c); it would
start running and then after about 20 minutes the device would freeze up
and my ssh session (since I'm running headless!) would seize up.  Nothing I
can find in the log files; seems like just a straight out crash.  I'm
trying again from the beginning in case something went wrong earlier in the
build process.

ATLAS took 807 minutes to compile on the first attempt.  I seem to recall
hearing that ATLAS has some kind of processor database at some point?  I
poked around looking for whether there's a good way to store the timings,
etc, and chop down the ATLAS compile time but wasn't immediately able to
turn any answers up.  Anyone have a good idea of where to look?

cheers!
-tom


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Julien Puydt  
View profile  
 More options Dec 19 2012, 4:47 pm
From: Julien Puydt <julien.pu...@laposte.net>
Date: Wed, 19 Dec 2012 22:47:53 +0100
Local: Wed, Dec 19 2012 4:47 pm
Subject: Re: [sage-devel] Re: Sage 5.4 on ARM
Le 19/12/2012 21:52, tom d a crit :

> I'm experimenting with building Sage on the Raspberry Pi. It apparently
> has an ARM6 processor, so I'm running from scratch. I ran into problems
> building libm4rie as well (and also on building conversion.c); it would
> start running and then after about 20 minutes the device would freeze up
> and my ssh session (since I'm running headless!) would seize up. Nothing
> I can find in the log files; seems like just a straight out crash. I'm
> trying again from the beginning in case something went wrong earlier in
> the build process.

Yes, that one file is a problem.

> ATLAS took 807 minutes to compile on the first attempt. I seem to recall
> hearing that ATLAS has some kind of processor database at some point? I
> poked around looking for whether there's a good way to store the
> timings, etc, and chop down the ATLAS compile time but wasn't
> immediately able to turn any answers up. Anyone have a good idea of
> where to look?

apt-get install libatlas-dev (or something like this),
then export SAGE_ATLAS_LIB=/usr
that way atlas won't get compiled in sage.

Snark on #sagemath


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jaebond  
View profile  
 More options Dec 20 2012, 8:09 pm
From: jaebond <jacob.ae.b...@gmail.com>
Date: Thu, 20 Dec 2012 17:09:44 -0800 (PST)
Local: Thurs, Dec 20 2012 8:09 pm
Subject: Re: Sage 5.4 on ARM

mmarco,

Things got pretty crazy and I haven't had a chance to take a look yet, but
I should be able to give it a try in the next day or two.  Thank you again
for your help.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mmarco  
View profile  
 More options Dec 21 2012, 1:19 pm
From: mmarco <mma...@unizar.es>
Date: Fri, 21 Dec 2012 10:19:48 -0800 (PST)
Local: Fri, Dec 21 2012 1:19 pm
Subject: Re: Sage 5.4 on ARM

I have seen that there is an android app that runs an ubuntu desktop
without the need of root access. From the web page, i see that it uses
something called fakechroot. I would like to investigate that
possibility. Maybe it could be the open door to some nice android app
that would install sage to be run in the terminal emulator.

Somebody knows anything about this fakechroot thing?

And on a different subject: what happened with the ARM machine that
William bought to serve as a buildbot?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Volker Braun  
View profile  
 More options Dec 21 2012, 1:36 pm
From: Volker Braun <vbraun.n...@gmail.com>
Date: Fri, 21 Dec 2012 10:36:11 -0800 (PST)
Local: Fri, Dec 21 2012 1:36 pm
Subject: Re: Sage 5.4 on ARM

fakechroot is a LD_PRELOAD hack that overrides glibc calls and e.g.
redirects file open() calls. Though its not perfect, for example no
pseudo-ttys (I think this already rules out Sage).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 34   Newer >
« Back to Discussions « Newer topic     Older topic »