Skip to content

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

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

Closed
3 tasks done
brson opened this issue Aug 26, 2016 · 5 comments
Closed
3 tasks done

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

brson opened this issue Aug 26, 2016 · 5 comments
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate. O-linux Operating system: Linux

Comments

@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)

@brson brson added C-enhancement Category: An issue proposing an enhancement or a PR with one. A-infrastructure E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate. O-linux Operating system: Linux labels Aug 26, 2016
@japaric
Copy link
Member

japaric commented Aug 26, 2016

mips64el

#36024 adds the target definition to the compiler.

@japaric
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
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
Copy link
Member

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

@alexcrichton
Copy link
Member

Ok, added mips64 as well, closing.

@alexcrichton
Copy link
Member

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
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate. O-linux Operating system: Linux
Projects
None yet
Development

No branches or pull requests

3 participants