Skip to content

Compilation on mips (big-endian 32-bit) fails with crate std compiled by an incompatible version of rustc #41471

Closed
@hsivonen

Description

@hsivonen

On Linux on 32-bit big-endian MIPS when trying to compile encoding_rs, I get the following error on both nightly (1.18.0-nightly (1785bca 2017-04-21)) and stable (1.16.0 (30cf806 2017-03-10)) installed via rustup:

   Compiling cfg-if v0.1.0
error[E0514]: found crate `std` compiled by an incompatible version of rustc
  |
  = help: please recompile that crate using this compiler (rustc 1.16.0 (30cf806ef 2017-03-10))
  = note: crate `std` path #1: /home/user/.rustup/toolchains/stable-mips-unknown-linux-gnu/lib/rustlib/mips-unknown-linux-gnu/lib/libstd_shim-fa5d09c1de30baa9.rlib compiled by ""
  = note: crate `std` path #2: /home/user/.rustup/toolchains/stable-mips-unknown-linux-gnu/lib/rustlib/mips-unknown-linux-gnu/lib/libstd_unicode-f161ec64ee07d726.rlib compiled by ""
  = note: crate `std` path #3: /home/user/.rustup/toolchains/stable-mips-unknown-linux-gnu/lib/rustlib/mips-unknown-linux-gnu/lib/libstd-dfe2fc549aedc35c.rlib compiled by ""
  = note: crate `std` path #4: /home/user/.rustup/toolchains/stable-mips-unknown-linux-gnu/lib/rustlib/mips-unknown-linux-gnu/lib/libstd-dfe2fc549aedc35c.so compiled by ""

error: aborting due to previous error

error: Could not compile `cfg-if`.

To learn more, run the command again with --verbose.

Metadata

Metadata

Assignees

Labels

P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions