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

Compilation on aarch64 (arm) fails: expected i32, found i64 #269

Open
mrusme opened this issue Sep 5, 2020 · 6 comments
Open

Compilation on aarch64 (arm) fails: expected i32, found i64 #269

mrusme opened this issue Sep 5, 2020 · 6 comments
Labels
A-host Area: heim-host crate C-bug Category: something isn't working O-linux Operating system: Linux P-low Low priority

Comments

@mrusme
Copy link

mrusme commented Sep 5, 2020

error[E0308]: mismatched types
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/heim-host-0.0.10/src/sys/linux/users/other.rs:79:25
   |
79 |             session_id: entry.ut_session,
   |                         ^^^^^^^^^^^^^^^^ expected `i32`, found `i64`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0308`.
error: could not compile `heim-host`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `bottom v0.4.7`, intermediate artifacts can be found at `/tmp/cargo-install1nVP67`
@svartalf
Copy link
Member

svartalf commented Sep 9, 2020

Hi, @mrusme!

i686 and x86_64 are the only architectures supported right now (see platforms support page for details), but if anyone wants to fix this issue and ensure that CI correctly compiles heim for your arch, I'll be happy to review the PR.

Some ARM targets are already tested in CI, can you elaborate on what target do you use?

## ARM64
- { os: 'ubuntu-latest', target: 'aarch64-unknown-linux-gnu', cross: true }
- { os: 'ubuntu-latest', target: 'aarch64-unknown-linux-musl', cross: true }
## ARMv7
- { os: 'ubuntu-latest', target: 'armv7-unknown-linux-gnueabihf', cross: true }
- { os: 'ubuntu-latest', target: 'armv7-unknown-linux-musleabihf', cross: true }
## ARMv6
- { os: 'ubuntu-latest', target: 'arm-unknown-linux-gnueabihf', cross: true }
- { os: 'ubuntu-latest', target: 'arm-unknown-linux-musleabihf', cross: true }

@svartalf svartalf added A-host Area: heim-host crate C-bug Category: something isn't working O-linux Operating system: Linux P-low Low priority labels Sep 9, 2020
@ghost
Copy link

ghost commented Sep 10, 2020

I get this issue on aarch64-unknown-linux-gnu debian-buster

@Ella-0
Copy link

Ella-0 commented Oct 6, 2020

I have the same issue on aarch64-unknown-linux-gnu on rpi4 running archlinuxarm

@ghost
Copy link

ghost commented Oct 30, 2020

Fails with aarch64-unknown-linux-gnu on NixOS unstable using binfmt+qemu-user-static

@ghost
Copy link

ghost commented Oct 30, 2020

This is a duplicate of #207

@ghost
Copy link

ghost commented Oct 30, 2020

I successfully compiled bottom for aarch64-unknown-linux-gnu by cherry-picking 98a3470 on top of 0.10.0 and changing bottom to use that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-host Area: heim-host crate C-bug Category: something isn't working O-linux Operating system: Linux P-low Low priority
Projects
None yet
Development

No branches or pull requests

3 participants