Skip to content

Compilation error on RHEL8 on s390x  #369

Open
@jabir366

Description

@jabir366

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions