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

Build fail on aarch64 #191

Closed
ggardet opened this issue Aug 20, 2020 · 7 comments
Closed

Build fail on aarch64 #191

ggardet opened this issue Aug 20, 2020 · 7 comments
Labels
bug Something isn't working the way that is expected.

Comments

@ggardet
Copy link

ggardet commented Aug 20, 2020

Describe the bug

While trying to build for aarch64, I get the following error:

[  359s] error[E0308]: mismatched types
[  359s]   --> /home/abuild/rpmbuild/BUILD/bottom-0.4.3/vendor/heim-host/src/sys/linux/users/other.rs:79:25
[  359s]    |
[  359s] 79 |             session_id: entry.ut_session,
[  359s]    |                         ^^^^^^^^^^^^^^^^ expected `i32`, found `i64`
[  359s] 
[  359s] error: aborting due to previous error
[  359s] 
[  359s] For more information about this error, try `rustc --explain E0308`.
[  359s] error: could not compile `heim-host`.

To reproduce

Try to build for aarch64.

Platform

Operating System:
openSUSE Tumbleweed - aarch64

Terminal:

Shell:

bottom version (use btm -V):
0.4.3

Any other relevant information (more details are always good!):

Additional context

@ggardet ggardet added the bug Something isn't working the way that is expected. label Aug 20, 2020
@ClementTsang
Copy link
Owner

@ggardet I don't officially support ARM, unfortunately, and heim, the library that is failing to build, also doesn't officially support it as far as I'm aware. I just realized my README might have been a bit misleading, I've corrected it - I only support x86 and x86-64 since that's what the libraries I use support.

That being said, I could potentially look into seeing if there's a way to get it to build on ARM... if it's just heim that's having issues, I could see if it's potentially possible to replace heim's usage and just not use the library on ARM compilations... guess I'll bust out the Pi and have a crack at it after I fix some of my current issues.

@Titaniumtown
Copy link

I get the exact same error.

@ClementTsang ClementTsang mentioned this issue Sep 1, 2020
12 tasks
@ClementTsang
Copy link
Owner

@ggardet @Titaniumtown could you try cloning the master branch and see if you can get it to build? I've gotten it to build now on a Raspberry Pi 4 and an Opensuse Tumbleweed Aarch64 VM.

Note it's not perfect yet (for example, disk read/s and write/s doesn't work yet, I have to implement that myself), but it should at least compile and mostly work from testing it a bit.

@ggardet
Copy link
Author

ggardet commented Sep 3, 2020

It complains about anyhow missing:

 error: no matching package named `anyhow` found

Is it a new dependency?

@ClementTsang
Copy link
Owner

@ggardet I'm using it for error handling, yes.

@ggardet
Copy link
Author

ggardet commented Sep 3, 2020

@ggardet I'm using it for error handling, yes.

I am not good enough in rust packaging to add it to the vendor archive to build it in Open Build Service.
But if you have it built on openSUSE Tumbleweed aarch64, that's fine then.

@ClementTsang
Copy link
Owner

ClementTsang commented Sep 27, 2020

Going to close this for now, since while I'm still not officially supporting ARM builds yet, it should build correctly now, and I run Travis checks to ensure it will. Feel free to re-open or create a new issue if it fails again, or doesn't properly work, or if you have any other questions that aren't about the build failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working the way that is expected.
Projects
None yet
Development

No branches or pull requests

3 participants