[rust-dev] Crosscompiling rust with non-blessed compiler prefixes

Ben Harris mail at bharr.is
Thu Oct 16 17:14:57 PDT 2014


That PR only abstracts the target out of rustc. A subsequent PR is needed
to abstract the target out of the build scripts (from memory anyway).
On 16/10/2014 4:48 pm, "Cody P Schafer" <dev at codyps.com> wrote:

> On Thu, Oct 16, 2014 at 3:54 PM, Ilya Dmitrichenko
> <errordeveloper at gmail.com> wrote:
> > Thanks Ben, I was just about to reply with the link:
> > https://github.com/rust-lang/rust/pull/16156/
> >
> > Cody, you are welcome to test out the branch, as you are to compile rust
> > with OE anyway ;)
> >
> > On 16 Oct 2014 20:52, "Ben Harris" <mail at bharr.is> wrote:
> >>
> >> This will be available very soon. There is a pull request in the final
> >> stages of review that will allow you to define custom targets with
> custom
> >> linkers, link args, PIC options, etc.
> >>
> >> That is for building binaries using rustc. I'm not sure what the
> solution
> >> would be for building rustc itself.
> >>
>
> Ok I'm trying out this branch with the following in
> /home/cody/arm-cody-linux-gnueabihf.json (all contents cribbed from
> the rust code specifying the arm-unknown-linux-gnueabihf triple):
>
> ----
> {
> "data_layout" :
>
> "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:64-n32",
> "llvm_target" : "arm-unknown-linux-gnueabi",
> "target_endian" : "little",
> "target_word_size" : "32",
> "arch" : "arm",
> "target_os": "linux",
> "options" : {
> "features" : "+v6,+vfp2"
> },
>
> "linker" : "arm-cody-linux-gnueabihf-gcc"
> }
> ----
>
> Unfortunately, it doesn't appear that configure has been updated to
> allow non-"supported" targets, so after doing:
>
>  $ ../configure --prefix=$HOME/foo
> --target=$HOME/arm-cody-linux-gnueabihf.json
>
> it complains:
>  configure: error: unsupported target triples
> "/home/cody/arm-cody-linux-gnueabihf.json" found
>
> Is there something I'm missing about configuring here?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20141017/aa0ba408/attachment.html>


More information about the Rust-dev mailing list