Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish host builds of mips, mipsel, mips64el for Linux #36015

Closed
brson opened this Issue Aug 26, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@brson
Copy link
Contributor

brson commented Aug 26, 2016

Today we publish target builds for mips and mipsel, and have no support for mips64el. All three of these are or will soon be supported by Debian and Fedora.

  • mips
  • mipsel
  • mips64el

cc #36006 (comment)

@japaric

This comment has been minimized.

Copy link
Member

japaric commented Aug 26, 2016

mips64el

#36024 adds the target definition to the compiler.

@japaric

This comment has been minimized.

Copy link
Member

japaric commented Aug 26, 2016

I managed to produce functional rustcs for the mips and mipsel targets. I've sent the required changes to the rust-buildbot repository (rust-lang-deprecated/rust-buildbot#121).

bors added a commit that referenced this issue Sep 2, 2016

Auto merge of #36024 - japaric:mips64, r=alexcrichton
add mips64-gnu and mips64el-gnu targets

With this commit one can build no_core (and probably no_std as well)
Rust programs for these targets. It's not yet possible to cross compile
std for these targets because rust-lang/libc doesn't know about the
mips64 architecture.

These targets have been tested by cross compiling the "smallest hello"
program (see code below) and then running it under QEMU.

``` rust

extern {
    fn puts(_: *const u8);
}

fn start(_: isize, _: *const *const u8) -> isize {
    unsafe {
        let msg = b"Hello, world!\0";
        puts(msg as *const _ as *const u8);
    }
    0
}

trait Copy {}

trait Sized {}
```

cc #36015
r? @alexcrichton
cc @brson

The cabi stuff is likely wrong. I just copied cabi_mips source and changed some `4`s to `8`s and `32`s to `64`s. It was enough to get libc's `puts` to work but I'd like someone familiar with this module to check it.
@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Oct 11, 2016

Just deployed a change for mips/mipsel, we should hopefully have those tomorrow night

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Oct 12, 2016

Ok, added mips64 as well, closing.

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Oct 13, 2016

Complications last night prevented these nightlies from going out, hopefully tonight though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.