You could also try distcc + cross compiler on a beefy machine. I almost got
it working on my Raspberry PI before losing interest. IMO this would be the
best solution if you can manage to make it work. Good luck!

https://wiki.gentoo.org/wiki/Raspberry_Pi/Cross_building
http://archlinuxarm.org/developers/distcc-cross-compiling


On 18 February 2016 at 03:20, David Llewellyn-Jones <da...@flypig.co.uk>
wrote:

> Thanks for the advice. I read in this group about previous attempts
> (including yours) building on ARM Android devices, which encouraged me to
> try it on Sailfish. At the moment my build is still chugging away, although
> it got killed earlier and I had to set it off again (but it seems to be
> making progress again now).
>
> If it fails again I'll look into the possibility of emulation, but then
> I'll probably have to build my own Mer images, which I'd rather avoid! Too
> bad about the cross-compiling, but I'm sure making the build changes falls
> well outside my capability.
>
> So, I'll stick with attempting to build on the device until either it or I
> get stuck. Thanks again for the very useful advice.
>
>
> On Wednesday, 17 February 2016 12:40:08 UTC, mmarco wrote:
>>
>> Long ago i succeded at compiling sage in an arm tablet. It took around
>> two weeks (the power button got damaged, but I don't know if was related to
>> the heating of the device during the compiling or if it was an independent
>> problem).
>>
>> Cross compiling has the problem that some elements of Sage perform tests
>> in compile time by running the compiled code, so that would fail. You
>> should change manually the build process to prevent it (which is probably
>> not a good idea, because it is a lot of work, and because that kind of
>> automated testing might be really important, for instance ATLAS compiles
>> with different options, tests all of them and then chooses the fastest one).
>>
>> Another option is to emulate a full ARM machine in a x86 one. That is
>> doable, and theoretically would allow you to use much more RAM than what a
>> phisical ARM device has available, but there is a huge overhead, so it will
>> take also a lot of time.
>>
>> Finally, you have the option of using the arm builds that Sage provides.
>> They are not the last version, but not too old either. The might problem
>> you can find is that they are built for Ubuntu only, but you can overcome
>> that by setting up an ubuntu chroot environment in your device.
>>
>> El miércoles, 17 de febrero de 2016, 12:12:51 (UTC+1), David
>> Llewellyn-Jones escribió:
>>>
>>> Hello,
>>>
>>> I'm new to Sage, but interested to build it for Sailfish OS, an ARM
>>> Linux phone built atop Mer (see for example http://www.merproject.org/
>>> and https://sailfishos.org/ ). I'm doing it out of intrigue, so not
>>> necessarily expecting a practical result.
>>>
>>> Cross-compiling using Scatchbox2 (x86 VM building for armv7hl; see
>>> https://wiki.merproject.org/wiki/Platform_SDK_and_SB2 ) failed when
>>> attempting to execute genautomata. My uneducated guess is that it's
>>> building genautomata for ARM and then trying to execute it in the x86 build
>>> environment.
>>>
>>> Is it possible to cross-compile sage for ARM? Other posts on this list
>>> don't look encouraging, but any advice would be appreciated.
>>>
>>> David
>>>
>>> P.S. My back-up plan is to build it on the phone itself, but so far this
>>> hasn't yielded results (it's gobbling up increasingly large SD cards before
>>> running out of space).
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to