[Pkg-rust-maintainers] Illegal hardware instruction

James Fisher jamesobfisher at gmail.com
Tue Sep 1 13:16:12 UTC 2015

Hi Ximin,

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 while I could probably get by
with SWAP I think it would take way too long.

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.

I'll also see if I can get somewhere with the official Rust binary


On Tue, Sep 1, 2015 at 2:02 PM, Ximin Luo <infinity0 at debian.org> wrote:

> Hi James,
> If even the upstream binaries are failing for you, this sounds like an
> upstream issue and you should contact them about it.
> 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.
> 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.
> 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.
> X
> On 01/09/15 14:49, James Fisher wrote:
> > Hello,
> >
> > I've been attempting to get Rust up and running on an old i586 laptop.
> >
> > 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.
> >
> > 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.
> >
> > In all cases, when I try to compile some rust eg the hello world
> example; rustc fails with an error 'illegal hardware instruction'.
> >
> > 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.
> >
> > Can anyone help me debug the Debian Rust packages or help me set up a
> toolchain for cross compiling i586 packages?
> >
> > Kind regards, James
> >
> >
> --
> git://github.com/infinity0/pubkeys.git
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-rust-maintainers/attachments/20150901/6d2c82b4/attachment.html>

More information about the Pkg-rust-maintainers mailing list