nix-rust / nix

Rust friendly bindings to *nix APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nix v0.15.0 on riscv platform

kush930 opened this issue · comments

Hi all,

I am building firefox, during building time i am facing nix package issue.

I am using gcc version 10.2.0. and glibc 3.2 during firefox building time i am facing nix package issue on target board riscv64.

nix 0.15.0 and cargo 1.63.0, I am using on target board

Compiling nix v0.15.0
 1:52.61 error[E0432]: unresolved import `self::consts`
 1:52.62   --> /home/root/luvkhush/firefox/third_party/rust/nix/src/sys/ioctl/linux.rs:50:15
 1:52.62    |
 1:52.62 50 | pub use self::consts::*;
 1:52.63    |               ^^^^^^ could not find `consts` in `self`
 1:53.92 error[E0425]: cannot find value `SIZEBITS` in this scope
 1:53.92   --> /home/root/luvkhush/firefox/third_party/rust/nix/src/sys/ioctl/linux.rs:59:50
 1:53.93    |
 1:53.93 59 | pub const DIRSHIFT: ioctl_num_type = SIZESHIFT + SIZEBITS as ioctl_num_type;
 1:53.94    |                                                  ^^^^^^^^ not found in this scope
 1:53.97 error[E0425]: cannot find value `SIZEBITS` in this scope
 1:53.97   --> /home/root/luvkhush/firefox/third_party/rust/nix/src/sys/ioctl/linux.rs:66:44
 1:53.97    |
 1:53.98 66 | pub const SIZEMASK: ioctl_num_type = (1 << SIZEBITS) - 1;
 1:53.98    |                                            ^^^^^^^^ not found in this scope
 1:54.01 error[E0425]: cannot find value `DIRBITS` in this scope
 1:54.02   --> /home/root/luvkhush/firefox/third_party/rust/nix/src/sys/ioctl/linux.rs:68:43
 1:54.02    |
 1:54.02 13 | pub const NRBITS: ioctl_num_type = 8;
 1:54.03    | ------------------------------------- similarly named constant `NRBITS` defined here
 1:54.03 ...
 1:54.04 68 | pub const DIRMASK: ioctl_num_type = (1 << DIRBITS) - 1;
 1:54.04    |                                           ^^^^^^^ help: a constant with a similar name exists: `NRBITS`
 2:11.58 dom/console
 2:13.73 Some errors have detailed explanations: E0425, E0432.
 2:13.73 For more information about an error, try `rustc --explain E0425`.
 2:13.81 error: could not compile `nix` due to 4 previous errors

Can anyone help me in this, I want to build nix v0.15.0 on riscv64 platform.

T&R
luvkhush

0.15.0? That's very old. Nix didn't have any riscv support at that point. It still isn't an officially supported platform. I'm afraid you're going to have to update.

Closing this issue, because I don't think there's anything we can do here. The OP will have to update .