[Pkg-rust-maintainers] Cross compiling using debian tools

Angus Lees gus at debian.org
Fri Nov 30 06:16:01 GMT 2018


See also this reply to a similar question on users.rust-lang.org:
https://users.rust-lang.org/t/cross-compilation-using-debian-rust-not-rustup/20022/19?u=gus

 - Gus

On Fri, 30 Nov 2018 at 16:39, Ximin Luo <infinity0 at debian.org> wrote:

> Alex King:
> > |How do I cross compile?|
> >
> > |$ cargo run --target=i686-unknown-linux-gnu
> >    Compiling cfg-if v0.1.6
> >    Compiling lazy_static v1.2.0
> > error[E0463]: can't find crate for `core`
> > |
> >   = note: the `i686-unknown-linux-gnu` target may not be installed
> >
> > error: aborting due to previous error
> > ....
> > |
> >
> > |
> > |
> >
> > |The upstream solution is "||rustup target add ..."|
> >
> > |
> > |
> >
> > |How do I do the same using debian packages?|
> >
>
> Hey Alex, you can follow the instructions here:
>
> https://wiki.debian.org/Teams/RustPackaging#Porting_to_a_new_architecture
>
> Note that the page talks about cross-compiling rustc and cargo, but the
> process is exactly the same for other packages, just use e.g.
> "rust-ripgrep" in place of $pkg in those instructions instead of "rustc" or
> "cargo".
>
> You will need to first follow the setup instructions here:
> https://wiki.debian.org/sbuild
>
> X
>
> --
> GPG: ed25519/56034877E1F87C35
> GPG: rsa4096/1318EFAC5FBBDBCE
> https://github.com/infinity0/pubkeys.git
>
> _______________________________________________
> Pkg-rust-maintainers mailing list
> Pkg-rust-maintainers at alioth-lists.debian.net
>
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-rust-maintainers
>


-- 
 - Gus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20181130/4b6ae953/attachment-0001.html>


More information about the Pkg-rust-maintainers mailing list