<div dir="ltr"><div><div>Hi Ximin, <br></div><div><br>Rust needs 1.5gb of RAM to build so I won't be able to do it on the i586 unfortunately, it's only got 64mb RAM and <i></i>while I could probably get by with SWAP I think it would take way too long.<br><br></div>I thought Debian was set up to allow multi-arch without chroot now but I've had very little success on that front so I'll give chroot and cowbuilder go.<br><br></div><div>I'll also see if I can get somewhere with the official Rust binary maintainers.<br><br></div>Thanks<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 2:02 PM, Ximin Luo <span dir="ltr"><<a href="mailto:infinity0@debian.org" target="_blank">infinity0@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi James,<br>
<br>
If even the upstream binaries are failing for you, this sounds like an upstream issue and you should contact them about it.<br>
<br>
If you want to try compiling from source, you don't need to cross-compile, you can just try to re-build the package on your i586 directly.<br>
<br>
But if you need to use your amd64 machine, you can set up a i386 chroot on it, using `ARCH=i386 git pbuilder create` after installing git-buildpackage and cowbuilder/pbuilder.<br>
<br>
You can then do `ARCH=i386 git pbuilder login` to play about inside it, or use `cowbuilder --basepath /var/cache/pbuilder/base-sid-i386.cow --build rustc_*.dsc` to build a source package directly using it.<br>
<br>
X<br>
<div class="HOEnZb"><div class="h5"><br>
On 01/09/15 14:49, James Fisher wrote:<br>
> Hello,<br>
><br>
> I've been attempting to get Rust up and running on an old i586 laptop.<br>
><br>
> i586 is a superset of i386 but a subset of x86_64 and I understand that i586 is not supported by Rust officially but that i386 binaries should be sufficient.<br>
><br>
> I've tried the stable and nightly binaries of Rust (which are downloaded and installed as i686).  I've also installed tried the i386 binaries installed from Debian Unstable repos.<br>
><br>
> In all cases, when I try to compile some rust eg the hello world example; rustc fails with an error 'illegal hardware instruction'.<br>
><br>
> I suspect I may need to compile Rust from source myself, setting the right CFLAGS for my target architecture.  However I'm not sure where to start.  I've managed to cross compile C code on my amd64 that runs on the i586 by simply building with -m32 however I'm sure building Rust is not that simple.<br>
><br>
> Can anyone help me debug the Debian Rust packages or help me set up a toolchain for cross compiling i586 packages?<br>
><br>
> Kind regards, James<br>
><br>
><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
GPG: 4096R/1318EFAC5FBBDBCE<br>
git://<a href="http://github.com/infinity0/pubkeys.git" rel="noreferrer" target="_blank">github.com/infinity0/pubkeys.git</a><br>
</font></span></blockquote></div><br></div>