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 error on RHEL8 on s390x #369

Open
jabir366 opened this issue Feb 15, 2024 · 0 comments
Open

Compilation error on RHEL8 on s390x #369

jabir366 opened this issue Feb 15, 2024 · 0 comments

Comments

@jabir366
Copy link

jabir366 commented Feb 15, 2024

The cargo build is failing

$  cargo build
   Compiling heim-net v0.1.0-rc.1 (/root/jab/heim/heim-net)
   Compiling heim-disk v0.1.0-rc.1 (/root/jab/heim/heim-disk)
error: multiple fields are never read
  --> heim-net/src/sys/linux/counters.rs:17:5
   |
11 | pub struct IoCounters {
   |            ---------- fields in this struct
...
17 |     rx_fifo: u64,
   |     ^^^^^^^
18 |     rx_frame: u64,
   |     ^^^^^^^^
19 |     rx_compressed: u64,
   |     ^^^^^^^^^^^^^
20 |     rx_multicast: u64,
   |     ^^^^^^^^^^^^
...
25 |     tx_fifo: u64,
   |     ^^^^^^^
26 |     tx_frame: u64,
   |     ^^^^^^^^
27 |     tx_compressed: u64,
   |     ^^^^^^^^^^^^^
28 |     tx_multicast: u64,
   |     ^^^^^^^^^^^^
   |
   = note: `IoCounters` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
note: the lint level is defined here
  --> heim-net/src/lib.rs:13:5
   |
13 |     dead_code,
   |     ^^^^^^^^^

error: could not compile `heim-net` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: fields `read_merged_count` and `write_merged_count` are never read
  --> heim-disk/src/sys/linux/counters.rs:31:5
   |
24 | pub struct IoCounters {
   |            ---------- fields in this struct
...
31 |     read_merged_count: u64,
   |     ^^^^^^^^^^^^^^^^^
32 |     write_merged_count: u64,
   |     ^^^^^^^^^^^^^^^^^^
   |
   = note: `IoCounters` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
note: the lint level is defined here
  --> heim-disk/src/lib.rs:13:5
   |
13 |     dead_code,
   |     ^^^^^^^^^

error: could not compile `heim-disk` (lib) due to 1 previous error

OS details

 cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.8 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.8 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.8
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.8"
@jabir366 jabir366 changed the title Compilation error on RHEL8 Compilation error on RHEL8 on s390x Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant