can't complie on Ubuntu18.10
(Sorry for my poor english
Description
I can't compile Redox on Ubuntu.
Environment info
- Operating system: Linux
-
uname -a
: Linux readlnh-Inspiron-3542 4.18.0-10-generic #11-Ubuntu SMP Thu Oct 11 15:13:55 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux -
rustc -V
: rustc 1.32.0-nightly (b3af09205 2018-12-04) -
git rev-parse HEAD
: 389ef613
Steps to reproduce
After git pull
(redox and submodules) and rustup update
:
make clean
make all
Behavior
-
Expected behavior: Successful compilation.
-
Actual behavior: Compilation fails with the folloning error message (see full log below):
readlnh@readlnh-Inspiron-3542:~/redox$ make all
mkdir -p build
nasm -f bin -o build/bootloader -D ARCH_x86_64 -ibootloader/x86_64/ bootloader/x86_64/disk.asm
cd kernel && xargo clean
rm -rf build/initfs
mkdir -p build/initfs
export PATH="/home/readlnh/redox/prefix/x86_64-unknown-redox/gcc-install/bin:$PATH" && \
cargo run --manifest-path installer/Cargo.toml -- --cookbook=cookbook -c initfs.toml build/initfs/
Compiling version_check v0.1.5
Compiling cc v1.0.25
Compiling proc-macro2 v0.4.20
Compiling typenum v1.10.0
Compiling unicode-xid v0.1.0
Compiling matches v0.1.8
Compiling cfg-if v0.1.5
Compiling httparse v1.3.3
Compiling winapi-build v0.1.1
Compiling unicode-normalization v0.1.7
Compiling build_const v0.2.1
Compiling untrusted v0.6.2
Compiling libc v0.2.43
Compiling serde v1.0.80
Compiling quote v0.3.15
Compiling safemem v0.3.0
Compiling percent-encoding v1.0.1
Compiling pkg-config v0.3.14
Compiling safemem v0.2.0
Compiling byteorder v1.2.6
Compiling unicode-xid v0.0.4
Compiling nodrop v0.1.12
Compiling winapi v0.2.8
Compiling failure_derive v0.1.2
Compiling typeable v0.1.2
Compiling traitobject v0.1.0
Compiling unicode-width v0.1.5
Compiling language-tags v0.2.2
Compiling byteorder v0.5.3
Compiling ordermap v0.3.5
Compiling adler32 v1.0.3
Compiling constant_time_eq v0.1.3
Compiling bytecount v0.3.2
Compiling rustc-demangle v0.1.9
Compiling pkgutils v0.1.1 (https://gitlab.redox-os.org/redox-os/pkgutils.git#43620f22)
Compiling bitflags v1.0.4
Compiling thread-scoped v1.0.2
Compiling fixedbitset v0.1.9
Compiling ordermap v0.2.13
Compiling scoped_threadpool v0.1.9
Compiling redox_syscall v0.1.40
Compiling bidir-map v0.6.0
Compiling spin v0.4.9
Compiling serde v0.8.23
Compiling version-compare v0.0.4
Compiling libc v0.2.43 (https://gitlab.redox-os.org/redox-os/liblibc.git?branch=relibc#919dd7c8)
Compiling arg_parser v0.1.0 (https://gitlab.redox-os.org/redox-os/arg-parser.git#75035318)
Compiling lazy_static v1.1.0
Compiling unicase v1.4.2
Compiling unicode-bidi v0.3.4
Compiling log v0.4.5
Compiling kernel32-sys v0.2.2
Compiling ring v0.13.2
Compiling backtrace-sys v0.1.24
Compiling crc v1.8.1
Compiling rand v0.4.3
Compiling num_cpus v1.8.0
Compiling time v0.1.40
Compiling xattr v0.1.11
Compiling termion v1.5.1
Compiling syn v0.10.8
Compiling base64 v0.9.3
Compiling base64 v0.6.0
Compiling fuse v0.3.1
Compiling arrayvec v0.4.7
Compiling textwrap v0.10.0
Compiling petgraph v0.4.13
Compiling log v0.3.9
Compiling toml v0.2.1
Compiling tar v0.4.13 (https://gitlab.redox-os.org/redox-os/tar-rs#b71c2202)
Compiling rand v0.3.22
Compiling liner v0.4.5 (https://gitlab.redox-os.org/redox-os/liner#82c1715f)
Compiling liner v0.1.5
Compiling blake2-rfc v0.2.18
Compiling clap v2.32.0
Compiling quote v0.6.8
Compiling serde_codegen_internals v0.11.3
Compiling mime v0.2.6
Compiling generic-array v0.2.1
Compiling uuid v0.5.1
Compiling argon2rs v0.2.5
Compiling syn v0.14.9
Compiling syn v0.15.11
Compiling serde_codegen v0.8.23
Compiling toml v0.4.8
Compiling pbr v1.0.0 (https://github.com/ids1024/pb?branch=duration#abe4d6e4)
Compiling backtrace v0.3.9
Compiling static-buffer v0.2.0
Compiling libflate v0.1.18
Compiling idna v0.1.5
Compiling redoxfs v0.3.2
Compiling synstructure v0.9.0
Compiling serde_derive v0.8.23
Compiling serde_derive v1.0.80
Compiling sct v0.4.0
Compiling webpki v0.18.1
Compiling octavo-digest v0.1.2 (https://github.com/libOctavo/octavo.git#2eff2009)
Compiling url v1.7.1
Compiling rustls v0.13.1
Compiling webpki-roots v0.15.0
Compiling failure v0.1.2
Compiling octavo v0.1.1 (https://github.com/libOctavo/octavo.git#2eff2009)
Compiling hyper v0.10.13
Compiling hyper-rustls v0.6.2
Compiling redox_installer v0.2.0 (/home/readlnh/redox/installer)
Finished dev [unoptimized + debuginfo] target(s) in 2m 03s
Running `installer/target/debug/redox_installer --cookbook=cookbook -c initfs.toml build/initfs/`
Install Config {
general: GeneralConfig {
prompt: false
},
packages: {
"drivers": PackageConfig {
version: None,
git: None,
path: None
},
"init": PackageConfig {
version: None,
git: None,
path: None
},
"redoxfs": PackageConfig {
version: None,
git: None,
path: None
}
},
files: [
FileConfig {
path: "/etc/init.rc",
data: "export PATH /bin\nexport TMPDIR /tmp\nvesad T T G\nstdio display:1\nps2d us\npcid /etc/pcid/initfs.toml\nredoxfs --uuid $REDOXFS_UUID file\ncd file:\nexport PATH file:/bin\nrun.d /etc/init.d\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None
}
],
users: {}
} to build/initfs/
repo - preparing drivers
cook - drivers prepare
repo - building drivers
cook - drivers build
Updating `git://mirrors.ustc.edu.cn/crates.io-index` index
Compiling cc v1.0.25
Compiling core v0.0.0 (/home/readlnh/redox/rust/src/libcore)
Compiling unwind v0.0.0 (/home/readlnh/redox/rust/src/libunwind)
Compiling build_helper v0.1.0 (/home/readlnh/redox/rust/src/build_helper)
Compiling compiler_builtins v0.0.0 (/home/readlnh/redox/rust/src/rustc/compiler_builtins_shim)
Compiling std v0.0.0 (/home/readlnh/redox/rust/src/libstd)
warning: the feature `macro_at_most_once_rep` has been stable since 1.32.0 and no longer requires an attribute to enable
--> /home/readlnh/redox/rust/src/libcore/lib.rs:97:12
|
97 | #![feature(macro_at_most_once_rep)]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(stable_features)] on by default
Compiling libc v0.0.0 (/home/readlnh/redox/rust/src/rustc/libc_shim)
Compiling alloc v0.0.0 (/home/readlnh/redox/rust/src/liballoc)
Compiling alloc_system v0.0.0 (/home/readlnh/redox/rust/src/liballoc_system)
Compiling panic_abort v0.0.0 (/home/readlnh/redox/rust/src/libpanic_abort)
Compiling panic_unwind v0.0.0 (/home/readlnh/redox/rust/src/libpanic_unwind)
warning: dropping unsupported crate type `dylib` for target `x86_64-unknown-redox`
Finished release [optimized] target(s) in 1m 02s
Compiling semver-parser v0.7.0
Compiling libc v0.2.44
Compiling void v1.0.2
Compiling rand_core v0.3.0
Compiling cc v1.0.25
Compiling cfg-if v0.1.6
Compiling nodrop v0.1.13
Compiling stable_deref_trait v1.1.1
Compiling memoffset v0.2.1
Compiling scopeguard v0.3.3
Compiling iovec v0.1.2
Compiling byteorder v1.2.7
Compiling version_check v0.1.5
Compiling matches v0.1.8
Compiling lazy_static v1.2.0
Compiling unicode-normalization v0.1.7
Compiling slab v0.4.1
Compiling proc-macro2 v0.4.24
Compiling httparse v1.3.3
Compiling untrusted v0.6.2
Compiling lazycell v1.2.1
Compiling futures v0.1.25
Compiling redox_syscall v0.1.43
Compiling crossbeam-utils v0.5.0
Compiling percent-encoding v1.0.1
Compiling safemem v0.3.0
Compiling unicode-xid v0.1.0
Compiling serde v1.0.80
Compiling traitobject v0.1.0
Compiling language-tags v0.2.2
Compiling typeable v0.1.2
Compiling byteorder v0.5.3
Compiling utf8parse v0.1.1
Compiling extra v0.1.0 (https://gitlab.redox-os.org/redox-os/libextra.git#0b50f3f2)
Compiling arg_parser v0.1.0 (https://gitlab.redox-os.org/redox-os/arg-parser.git#75035318)
Compiling spin v0.4.10
Compiling plain v0.2.3
Compiling bitflags v0.7.0
Compiling bitflags v1.0.4
Compiling unreachable v1.0.0
Compiling rand_core v0.2.2
Compiling crossbeam-utils v0.6.1
Compiling log v0.4.6
Compiling arrayvec v0.4.8
Compiling owning_ref v0.4.0
Compiling semver v0.9.0
Compiling bytes v0.4.11
Compiling unicode-bidi v0.3.4
Compiling unicase v1.4.2
Compiling ring v0.13.5
Compiling redox_termios v0.1.1
Compiling redox_event v0.1.0 (https://gitlab.redox-os.org/redox-os/event.git#c31e3d3d)
Compiling orbclient v0.3.18
Compiling base64 v0.9.3
Compiling vte v0.3.3
Compiling tokio-executor v0.1.4 (https://gitlab.redox-os.org/redox-os/tokio#1a120870)
Compiling ahcid v0.1.0 (/home/readlnh/redox/cookbook/recipes/drivers/build/ahcid)
Compiling nvmed v0.1.0 (/home/readlnh/redox/cookbook/recipes/drivers/build/nvmed)
warning: unused import: `std::fs::File`
--> nvmed/src/main.rs:9:5
|
9 | use std::fs::File;
| ^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default
warning: unused imports: `Read`, `Write`
--> nvmed/src/main.rs:10:15
|
10 | use std::io::{Read, Write};
| ^^^^ ^^^^^
warning: unused imports: `AsRawFd`, `FromRawFd`, `RawFd`
--> nvmed/src/main.rs:11:25
|
11 | use std::os::unix::io::{AsRawFd, FromRawFd, RawFd};
| ^^^^^^^ ^^^^^^^^^ ^^^^^
warning: unused imports: `EVENT_READ`, `Event`, `Packet`, `Result`, `Scheme`
--> nvmed/src/main.rs:12:15
|
12 | use syscall::{EVENT_READ, MAP_WRITE, Event, Packet, Result, Scheme};
| ^^^^^^^^^^ ^^^^^ ^^^^^^ ^^^^^^ ^^^^^^
warning: struct is never constructed: `NvmeCmd`
--> nvmed/src/nvme.rs:4:1
|
4 | pub struct NvmeCmd {
| ^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default
warning: method is never used: `read`
--> nvmed/src/nvme.rs:34:5
|
34 | pub fn read(cid: u16, lba: u64, count: u16, dst: u64) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `write`
--> nvmed/src/nvme.rs:52:5
|
52 | pub fn write(cid: u16, lba: u64, count: u16, src: u64) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: field is never used: `intms`
--> nvmed/src/nvme.rs:78:5
|
78 | intms: Mmio<u32>,
| ^^^^^^^^^^^^^^^^
warning: field is never used: `intmc`
--> nvmed/src/nvme.rs:80:5
|
80 | intmc: Mmio<u32>,
| ^^^^^^^^^^^^^^^^
warning: field is never used: `cc`
--> nvmed/src/nvme.rs:82:5
|
82 | cc: Mmio<u32>,
| ^^^^^^^^^^^^^
warning: field is never used: `csts`
--> nvmed/src/nvme.rs:86:5
|
86 | csts: Mmio<u32>,
| ^^^^^^^^^^^^^^^
warning: field is never used: `nssr`
--> nvmed/src/nvme.rs:88:5
|
88 | nssr: Mmio<u32>,
| ^^^^^^^^^^^^^^^
warning: field is never used: `aqa`
--> nvmed/src/nvme.rs:90:5
|
90 | aqa: Mmio<u32>,
| ^^^^^^^^^^^^^^
warning: field is never used: `asq`
--> nvmed/src/nvme.rs:92:5
|
92 | asq: Mmio<u64>,
| ^^^^^^^^^^^^^^
warning: field is never used: `acq`
--> nvmed/src/nvme.rs:94:5
|
94 | acq: Mmio<u64>,
| ^^^^^^^^^^^^^^
warning: field is never used: `cmbloc`
--> nvmed/src/nvme.rs:96:5
|
96 | cmbloc: Mmio<u32>,
| ^^^^^^^^^^^^^^^^^
warning: field is never used: `cmbsz`
--> nvmed/src/nvme.rs:98:5
|
98 | cmbsz: Mmio<u32>,
| ^^^^^^^^^^^^^^^^
Compiling smallvec v0.6.7
Compiling rand v0.5.5
Compiling lock_api v0.1.5
Compiling crossbeam-epoch v0.6.1
Compiling log v0.3.9
Compiling rustc_version v0.2.3
Compiling tokio-io v0.1.8 (https://gitlab.redox-os.org/redox-os/tokio#1a120870)
Compiling termion v1.5.1
Compiling xhcid v0.1.0 (/home/readlnh/redox/cookbook/recipes/drivers/build/xhcid)
Compiling ihdad v0.1.0 (/home/readlnh/redox/cookbook/recipes/drivers/build/ihdad)
warning: unused import: `syscall::io::Dma`
--> xhcid/src/xhci/command.rs:2:5
|
2 | use syscall::io::Dma;
| ^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default
warning: unused imports: `thread`, `u16`
--> ihdad/src/main.rs:9:23
|
9 | use std::{env, usize, u16, thread};
| ^^^ ^^^^^^
|
= note: #[warn(unused_imports)] on by default
warning: unused import: `RawFd`
--> ihdad/src/main.rs:12:45
|
12 | use std::os::unix::io::{AsRawFd, FromRawFd, RawFd};
| ^^^^^
warning: unused imports: `EVENT_READ`, `Event`
--> ihdad/src/main.rs:13:15
|
13 | use syscall::{EVENT_READ, MAP_WRITE, Event, Packet, Scheme, SchemeMut};
| ^^^^^^^^^^ ^^^^^
warning: unused imports: `fmt`, `mem`, `ptr`
--> ihdad/src/HDA/device.rs:3:11
|
3 | use std::{mem, thread, ptr, fmt};
| ^^^ ^^^ ^^^
warning: unused import: `max`
--> ihdad/src/HDA/device.rs:5:16
|
5 | use std::cmp::{max, min};
| ^^^
warning: unused import: `std::ptr::copy_nonoverlapping`
--> ihdad/src/HDA/device.rs:6:5
|
6 | use std::ptr::copy_nonoverlapping;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `std::sync::Arc`
--> ihdad/src/HDA/device.rs:7:5
|
7 | use std::sync::Arc;
| ^^^^^^^^^^^^^^
warning: unused import: `std::cell::RefCell`
--> ihdad/src/HDA/device.rs:8:5
|
8 | use std::cell::RefCell;
| ^^^^^^^^^^^^^^^^^^
warning: unused import: `std::string::String`
--> ihdad/src/HDA/device.rs:11:5
|
11 | use std::string::String;
| ^^^^^^^^^^^^^^^^^^^
warning: unnecessary parentheses around assigned value
--> ihdad/src/HDA/device.rs:348:17
|
348 | let addr = (addr_field & 0x7FFF);
| ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
|
= note: #[warn(unused_parens)] on by default
warning: unnecessary parentheses around `for` head expression
--> ihdad/src/HDA/device.rs:353:16
|
353 | for i in (list.pop().unwrap().1 .. (addr + 1)) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> ihdad/src/HDA/device.rs:365:17
|
365 | let addr = (addr_field & 0x7F);
| ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around `for` head expression
--> ihdad/src/HDA/device.rs:370:16
|
370 | for i in (list.pop().unwrap().1 .. (addr + 1)) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around `if` condition
--> ihdad/src/HDA/device.rs:422:17
|
422 | } else if (config.is_input()) {
| ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> ihdad/src/HDA/device.rs:811:26
|
811 | if output { payload |= (1 << 15); }
| ^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> ihdad/src/HDA/device.rs:812:26
|
812 | if input { payload |= (1 << 14); }
| ^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> ihdad/src/HDA/device.rs:813:26
|
813 | if left { payload |= (1 << 13); }
| ^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> ihdad/src/HDA/device.rs:814:26
|
814 | if right { payload |= (1 << 12); }
| ^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> ihdad/src/HDA/device.rs:815:26
|
815 | if mute { payload |= (1 << 7); }
| ^^^^^^^^^ help: remove these parentheses
warning: unnecessary parentheses around assigned value
--> ihdad/src/HDA/device.rs:817:14
|
817 | payload |= ((gain as u16) & 0x7F);
| ^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
warning: unused imports: `EACCES`, `EWOULDBLOCK`
--> ihdad/src/HDA/stream.rs:5:29
|
5 | use syscall::error::{Error, EACCES, EWOULDBLOCK, EIO, Result};
| ^^^^^^ ^^^^^^^^^^^
warning: unused import: `syscall::flag::O_NONBLOCK`
--> ihdad/src/HDA/stream.rs:6:5
|
6 | use syscall::flag::O_NONBLOCK;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused imports: `Dma`, `ReadOnly`
--> ihdad/src/HDA/stream.rs:7:19
|
7 | use syscall::io::{Dma, Mmio, Io, ReadOnly};
| ^^^ ^^^^^^^^
warning: unused import: `std::sync::Arc`
--> ihdad/src/HDA/stream.rs:9:5
|
9 | use std::sync::Arc;
| ^^^^^^^^^^^^^^
warning: unused import: `std::cell::RefCell`
--> ihdad/src/HDA/stream.rs:10:5
|
10 | use std::cell::RefCell;
| ^^^^^^^^^^^^^^^^^^
warning: unused import: `max`
--> ihdad/src/HDA/stream.rs:12:16
|
12 | use std::cmp::{max, min};
| ^^^
warning: unused imports: `fmt`, `mem`, `thread`
--> ihdad/src/HDA/stream.rs:14:11
|
14 | use std::{mem, thread, ptr, fmt};
| ^^^ ^^^^^^ ^^^
warning: unnecessary parentheses around assigned value
--> ihdad/src/HDA/stream.rs:180:12
|
180 | ctrl |= (1 << 2);
| ^^^^^^^^ help: remove these parentheses
warning: unused imports: `mem`, `ptr`, `thread`
--> ihdad/src/HDA/common.rs:3:11
|
3 | use std::{mem, thread, ptr, fmt};
| ^^^ ^^^^^^ ^^^
warning: unused imports: `ptr`, `thread`
--> ihdad/src/HDA/node.rs:2:16
|
2 | use std::{mem, thread, ptr, fmt};
| ^^^^^^ ^^^
warning: unused imports: `fmt`, `mem`, `ptr`, `thread`
--> ihdad/src/HDA/cmdbuff.rs:1:11
|
1 | use std::{mem, thread, ptr, fmt};
| ^^^ ^^^^^^ ^^^ ^^^
warning: unused imports: `Dma`, `ReadOnly`
--> ihdad/src/HDA/cmdbuff.rs:2:19
|
2 | use syscall::io::{Dma, Mmio, Io, ReadOnly};
| ^^^ ^^^^^^^^
warning: unused import: `HDA::IntelHDA`
--> ihdad/src/main.rs:24:5
|
24 | use HDA::IntelHDA;
| ^^^^^^^^^^^^^
warning: unreachable expression
--> ihdad/src/main.rs:170:3
|
170 | unsafe { let _ = syscall::physunmap(address); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unreachable_code)] on by default
warning: unused import: `Scheme`
--> ihdad/src/main.rs:13:53
|
13 | use syscall::{EVENT_READ, MAP_WRITE, Event, Packet, Scheme, SchemeMut};
| ^^^^^^
warning: unused import: `syscall::scheme::SchemeMut`
--> ihdad/src/HDA/stream.rs:8:5
|
8 | use syscall::scheme::SchemeMut;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused variable: `device_loop`
--> ihdad/src/main.rs:74:8
|
74 | let device_loop = device.clone();
| ^^^^^^^^^^^ help: consider using `_device_loop` instead
|
= note: #[warn(unused_variables)] on by default
warning: unused variable: `sample_size`
--> ihdad/src/HDA/device.rs:831:7
|
831 | let sample_size:usize = output.sample_size();
| ^^^^^^^^^^^ help: consider using `_sample_size` instead
warning: unused variable: `len`
--> ihdad/src/HDA/device.rs:858:7
|
858 | let len = min(os.block_size(), buf.len());
| ^^^ help: consider using `_len` instead
warning: unused variable: `codec_num`
--> ihdad/src/HDA/device.rs:922:13
|
922 | Ok(codec_num) => {
| ^^^^^^^^^ help: consider using `_codec_num` instead
warning: unused variable: `id`
--> ihdad/src/HDA/device.rs:924:15
|
924 | let id = self.next_id.fetch_add(1, Ordering::SeqCst);
| ^^ help: consider using `_id` instead
warning: unused variable: `path`
--> ihdad/src/HDA/device.rs:978:7
|
978 | let path: Vec<&str>;
| ^^^^ help: consider using `_path` instead
warning: unused variable: `err`
--> ihdad/src/HDA/stream.rs:307:8
|
307 | Err(err) => {
| ^^^ help: consider using `_err` instead
warning: unused variable: `err`
--> ihdad/src/HDA/stream.rs:316:8
|
316 | Err(err) => {
| ^^^ help: consider using `_err` instead
warning: variable `corbsize_bytes` is assigned to, but never used
--> ihdad/src/HDA/cmdbuff.rs:101:11
|
101 | let mut corbsize_bytes: usize = 0;
| ^^^^^^^^^^^^^^
|
= note: consider using `_corbsize_bytes` instead
warning: variable `corbsize` is assigned to, but never used
--> ihdad/src/HDA/cmdbuff.rs:102:11
|
102 | let mut corbsize: u8 = 0;
| ^^^^^^^^
|
= note: consider using `_corbsize` instead
warning: value assigned to `corbsize` is never read
--> ihdad/src/HDA/cmdbuff.rs:105:4
|
105 | corbsize = 2;
| ^^^^^^^^
|
= note: #[warn(unused_assignments)] on by default
warning: value assigned to `corbsize_bytes` is never read
--> ihdad/src/HDA/cmdbuff.rs:106:4
|
106 | corbsize_bytes = 1024;
| ^^^^^^^^^^^^^^
warning: value assigned to `corbsize` is never read
--> ihdad/src/HDA/cmdbuff.rs:110:4
|
110 | corbsize = 1;
| ^^^^^^^^
warning: value assigned to `corbsize_bytes` is never read
--> ihdad/src/HDA/cmdbuff.rs:111:4
|
111 | corbsize_bytes = 64;
| ^^^^^^^^^^^^^^
warning: value assigned to `corbsize` is never read
--> ihdad/src/HDA/cmdbuff.rs:115:4
|
115 | corbsize = 0;
| ^^^^^^^^
warning: value assigned to `corbsize_bytes` is never read
--> ihdad/src/HDA/cmdbuff.rs:116:4
|
116 | corbsize_bytes = 8;
| ^^^^^^^^^^^^^^
warning: variable `rirbsize_bytes` is assigned to, but never used
--> ihdad/src/HDA/cmdbuff.rs:246:11
|
246 | let mut rirbsize_bytes: usize = 0;
| ^^^^^^^^^^^^^^
|
= note: consider using `_rirbsize_bytes` instead
warning: variable `rirbsize` is assigned to, but never used
--> ihdad/src/HDA/cmdbuff.rs:247:11
|
247 | let mut rirbsize: u8 = 0;
| ^^^^^^^^
|
= note: consider using `_rirbsize` instead
warning: value assigned to `rirbsize` is never read
--> ihdad/src/HDA/cmdbuff.rs:250:4
|
250 | rirbsize = 2;
| ^^^^^^^^
warning: value assigned to `rirbsize_bytes` is never read
--> ihdad/src/HDA/cmdbuff.rs:251:4
|
251 | rirbsize_bytes = 2048;
| ^^^^^^^^^^^^^^
warning: value assigned to `rirbsize` is never read
--> ihdad/src/HDA/cmdbuff.rs:255:4
|
255 | rirbsize = 1;
| ^^^^^^^^
warning: value assigned to `rirbsize_bytes` is never read
--> ihdad/src/HDA/cmdbuff.rs:256:4
|
256 | rirbsize_bytes = 128;
| ^^^^^^^^^^^^^^
warning: value assigned to `rirbsize` is never read
--> ihdad/src/HDA/cmdbuff.rs:260:4
|
260 | rirbsize = 0;
| ^^^^^^^^
warning: value assigned to `rirbsize_bytes` is never read
--> ihdad/src/HDA/cmdbuff.rs:261:4
|
261 | rirbsize_bytes = 16;
| ^^^^^^^^^^^^^^
warning: variant is never constructed: `None`
--> xhcid/src/usb/mod.rs:9:5
|
9 | None,
| ^^^^
|
= note: #[warn(dead_code)] on by default
warning: variant is never constructed: `Interface`
--> xhcid/src/usb/mod.rs:13:5
|
13 | Interface,
| ^^^^^^^^^
warning: variant is never constructed: `Endpoint`
--> xhcid/src/usb/mod.rs:14:5
|
14 | Endpoint,
| ^^^^^^^^
warning: variant is never constructed: `DeviceQualifier`
--> xhcid/src/usb/mod.rs:15:5
|
15 | DeviceQualifier,
| ^^^^^^^^^^^^^^^
warning: variant is never constructed: `OtherSpeedConfiguration`
--> xhcid/src/usb/mod.rs:16:5
|
16 | OtherSpeedConfiguration,
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `InterfacePower`
--> xhcid/src/usb/mod.rs:17:5
|
17 | InterfacePower,
| ^^^^^^^^^^^^^^
warning: variant is never constructed: `OnTheGo`
--> xhcid/src/usb/mod.rs:18:5
|
18 | OnTheGo,
| ^^^^^^^
warning: method is never used: `get_status`
--> xhcid/src/usb/setup.rs:14:5
|
14 | pub fn get_status() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `clear_feature`
--> xhcid/src/usb/setup.rs:24:5
|
24 | pub fn clear_feature(feature: u16) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `set_feature`
--> xhcid/src/usb/setup.rs:34:5
|
34 | pub fn set_feature(feature: u16) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `set_address`
--> xhcid/src/usb/setup.rs:44:5
|
44 | pub fn set_address(address: u16) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `set_descriptor`
--> xhcid/src/usb/setup.rs:64:5
|
64 | pub fn set_descriptor(kind: u8, index: u8, language: u16, length: u16) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `get_configuration`
--> xhcid/src/usb/setup.rs:74:5
|
74 | pub fn get_configuration() -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `set_configuration`
--> xhcid/src/usb/setup.rs:84:5
|
84 | pub fn set_configuration(value: u16) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `next_cmd`
--> xhcid/src/xhci/command.rs:39:5
|
39 | pub fn next_cmd(&mut self) -> (&mut Trb, bool) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `read`
--> xhcid/src/xhci/doorbell.rs:7:5
|
7 | pub fn read(&self) -> u32 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `Normal`
--> xhcid/src/xhci/trb.rs:9:5
|
9 | Normal,
| ^^^^^^
warning: variant is never constructed: `Isoch`
--> xhcid/src/xhci/trb.rs:13:5
|
13 | Isoch,
| ^^^^^
warning: variant is never constructed: `EventData`
--> xhcid/src/xhci/trb.rs:15:5
|
15 | EventData,
| ^^^^^^^^^
warning: variant is never constructed: `NoOp`
--> xhcid/src/xhci/trb.rs:16:5
|
16 | NoOp,
| ^^^^
warning: variant is never constructed: `DisableSlot`
--> xhcid/src/xhci/trb.rs:19:5
|
19 | DisableSlot,
| ^^^^^^^^^^^
warning: variant is never constructed: `ConfigureEndpoint`
--> xhcid/src/xhci/trb.rs:21:5
|
21 | ConfigureEndpoint,
| ^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `EvaluateContext`
--> xhcid/src/xhci/trb.rs:22:5
|
22 | EvaluateContext,
| ^^^^^^^^^^^^^^^
warning: variant is never constructed: `ResetEndpoint`
--> xhcid/src/xhci/trb.rs:23:5
|
23 | ResetEndpoint,
| ^^^^^^^^^^^^^
warning: variant is never constructed: `StopEndpoint`
--> xhcid/src/xhci/trb.rs:24:5
|
24 | StopEndpoint,
| ^^^^^^^^^^^^
warning: variant is never constructed: `SetTrDequeuePointer`
--> xhcid/src/xhci/trb.rs:25:5
|
25 | SetTrDequeuePointer,
| ^^^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `ResetDevice`
--> xhcid/src/xhci/trb.rs:26:5
|
26 | ResetDevice,
| ^^^^^^^^^^^
warning: variant is never constructed: `ForceEvent`
--> xhcid/src/xhci/trb.rs:27:5
|
27 | ForceEvent,
| ^^^^^^^^^^
warning: variant is never constructed: `NegotiateBandwidth`
--> xhcid/src/xhci/trb.rs:28:5
|
28 | NegotiateBandwidth,
| ^^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `SetLatencyToleranceValue`
--> xhcid/src/xhci/trb.rs:29:5
|
29 | SetLatencyToleranceValue,
| ^^^^^^^^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `GetPortBandwidth`
--> xhcid/src/xhci/trb.rs:30:5
|
30 | GetPortBandwidth,
| ^^^^^^^^^^^^^^^^
warning: variant is never constructed: `ForceHeader`
--> xhcid/src/xhci/trb.rs:31:5
|
31 | ForceHeader,
| ^^^^^^^^^^^
warning: variant is never constructed: `NoOpCmd`
--> xhcid/src/xhci/trb.rs:32:5
|
32 | NoOpCmd,
| ^^^^^^^
warning: variant is never constructed: `Rsv24`
--> xhcid/src/xhci/trb.rs:34:5
|
34 | Rsv24,
| ^^^^^
warning: variant is never constructed: `Rsv25`
--> xhcid/src/xhci/trb.rs:35:5
|
35 | Rsv25,
| ^^^^^
warning: variant is never constructed: `Rsv26`
--> xhcid/src/xhci/trb.rs:36:5
|
36 | Rsv26,
| ^^^^^
warning: variant is never constructed: `Rsv27`
--> xhcid/src/xhci/trb.rs:37:5
|
37 | Rsv27,
| ^^^^^
warning: variant is never constructed: `Rsv28`
--> xhcid/src/xhci/trb.rs:38:5
|
38 | Rsv28,
| ^^^^^
warning: variant is never constructed: `Rsv29`
--> xhcid/src/xhci/trb.rs:39:5
|
39 | Rsv29,
| ^^^^^
warning: variant is never constructed: `Rsv30`
--> xhcid/src/xhci/trb.rs:40:5
|
40 | Rsv30,
| ^^^^^
warning: variant is never constructed: `Rsv31`
--> xhcid/src/xhci/trb.rs:41:5
|
41 | Rsv31,
| ^^^^^
warning: variant is never constructed: `Transfer`
--> xhcid/src/xhci/trb.rs:43:5
|
43 | Transfer,
| ^^^^^^^^
warning: variant is never constructed: `CommandCompletion`
--> xhcid/src/xhci/trb.rs:44:5
|
44 | CommandCompletion,
| ^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `PortStatusChange`
--> xhcid/src/xhci/trb.rs:45:5
|
45 | PortStatusChange,
| ^^^^^^^^^^^^^^^^
warning: variant is never constructed: `BandwidthRequest`
--> xhcid/src/xhci/trb.rs:46:5
|
46 | BandwidthRequest,
| ^^^^^^^^^^^^^^^^
warning: variant is never constructed: `Doorbell`
--> xhcid/src/xhci/trb.rs:47:5
|
47 | Doorbell,
| ^^^^^^^^
warning: variant is never constructed: `HostController`
--> xhcid/src/xhci/trb.rs:48:5
|
48 | HostController,
| ^^^^^^^^^^^^^^
warning: variant is never constructed: `DeviceNotification`
--> xhcid/src/xhci/trb.rs:49:5
|
49 | DeviceNotification,
| ^^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `MfindexWrap`
--> xhcid/src/xhci/trb.rs:50:5
|
50 | MfindexWrap,
| ^^^^^^^^^^^
warning: enum is never used: `TrbCompletionCode`
--> xhcid/src/xhci/trb.rs:55:1
|
55 | pub enum TrbCompletionCode {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: variant is never constructed: `NoData`
--> xhcid/src/xhci/trb.rs:100:5
|
100 | NoData,
| ^^^^^^
warning: variant is never constructed: `Reserved`
--> xhcid/src/xhci/trb.rs:101:5
|
101 | Reserved,
| ^^^^^^^^
warning: variant is never constructed: `Out`
--> xhcid/src/xhci/trb.rs:102:5
|
102 | Out,
| ^^^
warning: method is never used: `no_op_cmd`
--> xhcid/src/xhci/trb.rs:139:5
|
139 | pub fn no_op_cmd(&mut self, cycle: bool) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: field is never used: `cap`
--> xhcid/src/xhci/mod.rs:108:5
|
108 | cap: &'static mut CapabilityRegs,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: variable does not need to be mutable
--> ihdad/src/HDA/device.rs:477:9
|
477 | let mut res = self.find_path_to_dac(widget.connections[0]);
| ----^^^
| |
| help: remove this `mut`
|
= note: #[warn(unused_mut)] on by default
warning: variable does not need to be mutable
--> ihdad/src/HDA/device.rs:826:7
|
826 | let mut output = self.get_output_stream_descriptor(index as usize).unwrap();
| ----^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> ihdad/src/HDA/device.rs:827:7
|
827 | let mut os = self.output_streams.get_mut(index as usize).unwrap();
| ----^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> ihdad/src/HDA/cmdbuff.rs:194:7
|
194 | let mut write_pos: usize = ( (self.regs.corbwp.read() as usize & 0xFF) + 1) % self.corb_count;
| ----^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> ihdad/src/HDA/cmdbuff.rs:301:7
|
301 | let mut read_pos: u16 = (self.rirb_rp + 1) % self.rirb_count as u16;
| ----^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> ihdad/src/HDA/cmdbuff.rs:303:7
|
303 | let mut res: u64;
| ----^^^
| |
| help: remove this `mut`
warning: unnecessary `unsafe` block
--> ihdad/src/main.rs:80:16
|
80 | let _irq = unsafe { device_irq.borrow_mut().irq()};
| ^^^^^^ unnecessary `unsafe` block
|
= note: #[warn(unused_unsafe)] on by default
warning: unnecessary `unsafe` block
--> ihdad/src/HDA/device.rs:180:24
|
180 | let buff_desc_phys = unsafe {
| ^^^^^^ unnecessary `unsafe` block
warning: unnecessary `unsafe` block
--> ihdad/src/HDA/device.rs:186:24
|
186 | let buff_desc_virt = unsafe {
| ^^^^^^ unnecessary `unsafe` block
warning: unnecessary `unsafe` block
--> ihdad/src/HDA/device.rs:198:26
|
198 | let cmd_buff_address = unsafe {
| ^^^^^^ unnecessary `unsafe` block
warning: unnecessary `unsafe` block
--> ihdad/src/HDA/device.rs:204:23
|
204 | let cmd_buff_virt = unsafe { syscall::physmap(cmd_buff_address, 0x1000, MAP_WRITE).expect("ihdad: failed to map address for CORB/RIRB buff") };
| ^^^^^^ unnecessary `unsafe` block
warning: unnecessary `unsafe` block
--> ihdad/src/HDA/stream.rs:219:3
|
219 | unsafe {
| ^^^^^^ unnecessary `unsafe` block
warning: module `HDA` should have a snake case name such as `hda`
--> ihdad/src/main.rs:22:1
|
22 | pub mod HDA;
| ^^^^^^^^^^^^
|
= note: #[warn(non_snake_case)] on by default
warning: unused `std::result::Result` that must be used
--> ihdad/src/HDA/stream.rs:318:6
|
318 | syscall::physfree(phys, block_length * block_count);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_must_use)] on by default
= note: this `Result` may be an `Err` variant, which should be handled
warning: unused `std::result::Result` that must be used
--> ihdad/src/HDA/stream.rs:384:4
|
384 | syscall::physunmap(self.addr);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
warning: unused `std::result::Result` that must be used
--> ihdad/src/HDA/stream.rs:385:4
|
385 | syscall::physfree(self.phys, self.block_len * self.block_cnt);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
Compiling ransid v0.4.7
Compiling vboxd v0.1.0 (/home/readlnh/redox/cookbook/recipes/drivers/build/vboxd)
warning: method is never used: `read`
--> vboxd/src/bga.rs:21:5
|
21 | fn read(&mut self, index: u16) -> u16 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default
warning: method is never used: `width`
--> vboxd/src/bga.rs:31:5
|
31 | pub fn width(&mut self) -> u16 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: method is never used: `height`
--> vboxd/src/bga.rs:35:5
|
35 | pub fn height(&mut self) -> u16 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: field is never used: `size`
--> vboxd/src/main.rs:29:5
|
29 | size: Mmio<u32>,
| ^^^^^^^^^^^^^^^
warning: field is never used: `version`
--> vboxd/src/main.rs:30:5
|
30 | version: Mmio<u32>,
| ^^^^^^^^^^^^^^^^^^
warning: field is never used: `result`
--> vboxd/src/main.rs:45:5
|
45 | result: Mmio<u32>,
| ^^^^^^^^^^^^^^^^^
warning: field is never used: `features`
--> vboxd/src/main.rs:54:5
|
54 | features: Mmio<u32>,
| ^^^^^^^^^^^^^^^^^^^
warning: field is never used: `x`
--> vboxd/src/main.rs:78:5
|
78 | x: Mmio<u32>,
| ^^^^^^^^^^^^
warning: field is never used: `y`
--> vboxd/src/main.rs:79:5
|
79 | y: Mmio<u32>,
| ^^^^^^^^^^^^
warning: field is never used: `events`
--> vboxd/src/main.rs:100:5
|
100 | events: Mmio<u32>,
| ^^^^^^^^^^^^^^^^^
warning: field is never used: `bpp`
--> vboxd/src/main.rs:143:5
|
143 | bpp: Mmio<u32>,
| ^^^^^^^^^^^^^^
warning: field is never used: `eventack`
--> vboxd/src/main.rs:144:5
|
144 | eventack: Mmio<u32>,
| ^^^^^^^^^^^^^^^^^^^
Compiling ps2d v0.1.0 (/home/readlnh/redox/cookbook/recipes/drivers/build/ps2d)
Compiling bgad v0.1.0 (/home/readlnh/redox/cookbook/recipes/drivers/build/bgad)
Compiling tokio-current-thread v0.1.1 (https://gitlab.redox-os.org/redox-os/tokio#1a120870)
Compiling tokio-timer v0.2.6 (https://gitlab.redox-os.org/redox-os/tokio#1a120870)
Compiling net2 v0.2.33
Compiling num_cpus v1.8.0
Compiling time v0.1.40
Compiling mime v0.2.6
Compiling crossbeam-deque v0.6.2
Compiling tokio-codec v0.1.0 (https://gitlab.redox-os.org/redox-os/tokio#1a120870)
Compiling parking_lot_core v0.3.1
Compiling quote v0.6.10
Compiling vesad v0.1.0 (/home/readlnh/redox/cookbook/recipes/drivers/build/vesad)
Compiling idna v0.1.5
Compiling mio v0.6.15 (https://gitlab.redox-os.org/redox-os/mio#8a4c08fa)
Compiling tokio-threadpool v0.1.6 (https://gitlab.redox-os.org/redox-os/tokio#1a120870)
Compiling ntpclient v0.0.1 (https://github.com/willem66745/ntpclient-rust#7e3bdf60)
Compiling pbr v1.0.1 (https://github.com/a8m/pb#b9792c9f)
Compiling syn v0.15.22
Compiling toml v0.4.9
Compiling sct v0.4.0
Compiling webpki v0.18.1
Compiling tokio-fs v0.1.3 (https://gitlab.redox-os.org/redox-os/tokio#1a120870)
Compiling webpki-roots v0.15.0
Compiling rustls v0.13.1
Compiling url v1.7.2
Compiling serde_derive v1.0.80
Compiling parking_lot v0.6.4
Compiling tokio-reactor v0.1.4 (https://gitlab.redox-os.org/redox-os/tokio#1a120870)
Compiling hyper v0.10.15
Compiling tokio-udp v0.1.2 (https://gitlab.redox-os.org/redox-os/tokio#1a120870)
Compiling tokio-tcp v0.1.1 (https://gitlab.redox-os.org/redox-os/tokio#1a120870)
Compiling hyper-rustls v0.6.2
Compiling pcid v0.1.0 (/home/readlnh/redox/cookbook/recipes/drivers/build/pcid)
warning: method is never used: `interrupt_line`
--> pcid/src/pci/header.rs:261:5
|
261 | pub fn interrupt_line(&self) -> u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default
warning: the feature `iterator_step_by` has been stable since 1.28.0 and no longer requires an attribute to enable
--> pcid/src/main.rs:2:12
|
2 | #![feature(iterator_step_by)]
| ^^^^^^^^^^^^^^^^
|
= note: #[warn(stable_features)] on by default
Compiling tokio v0.1.8 (https://gitlab.redox-os.org/redox-os/tokio#1a120870)
Compiling netutils v0.1.0 (https://gitlab.redox-os.org/redox-os/netutils.git#91dd30c5)
Compiling e1000d v0.1.0 (/home/readlnh/redox/cookbook/recipes/drivers/build/e1000d)
Compiling rtl8168d v0.1.0 (/home/readlnh/redox/cookbook/recipes/drivers/build/rtl8168d)
Compiling alxd v0.1.0 (/home/readlnh/redox/cookbook/recipes/drivers/build/alxd)
warning: unused macro definition
--> alxd/src/device/mod.rs:1726:9
|
1726 | / macro_rules! goto_out {
1727 | | () => {{
1728 | | self.free_all_ring_resources();
1729 | | self.disable_advanced_intr();
1730 | | return err;
1731 | | }}
1732 | | }
| |_________^
|
= note: #[warn(unused_macros)] on by default
warning: unreachable expression
--> e1000d/src/main.rs:136:9
|
136 | unsafe { let _ = syscall::physunmap(address); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unreachable_code)] on by default
warning: unreachable expression
--> rtl8168d/src/main.rs:138:9
|
138 | unsafe { let _ = syscall::physunmap(address); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unreachable_code)] on by default
warning: variable does not need to be mutable
--> e1000d/src/device.rs:193:21
|
193 | let mut data = unsafe { slice::from_raw_parts_mut(self.transmit_buffer[old_tail as usize].as_ptr() as *mut u8, td.length as usize) };
| ----^^^^
| |
| help: remove this `mut`
|
= note: #[warn(unused_mut)] on by default
warning: #[derive] can't be used on a #[repr(packed)] struct that does not derive Copy (error E0133)
--> e1000d/src/device.rs:58:10
|
58 | #[derive(Debug)]
| ^^^^^
|
= note: #[warn(safe_packed_borrows)] on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
warning: #[derive] can't be used on a #[repr(packed)] struct that does not derive Copy (error E0133)
--> e1000d/src/device.rs:81:10
|
81 | #[derive(Debug)]
| ^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
warning: constant item is never used: `IMS_TXDW`
--> e1000d/src/device.rs:29:1
|
29 | const IMS_TXDW: u32 = 1;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(dead_code)] on by default
warning: constant item is never used: `IMS_TXQE`
--> e1000d/src/device.rs:30:1
|
30 | const IMS_TXQE: u32 = 1 << 1;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant item is never used: `IMS_LSC`
--> e1000d/src/device.rs:31:1
|
31 | const IMS_LSC: u32 = 1 << 2;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant item is never used: `RCTL_MPE`
--> e1000d/src/device.rs:40:1
|
40 | const RCTL_MPE: u32 = 1 << 4;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant item is never used: `RD_EOP`
--> e1000d/src/device.rs:69:1
|
69 | const RD_EOP: u8 = 1 << 1;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: constant item is never used: `TD_DD`
--> e1000d/src/device.rs:95:1
|
95 | const TD_DD: u8 = 1;
| ^^^^^^^^^^^^^^^^^^^^
warning: unreachable expression
--> alxd/src/main.rs:144:9
|
144 | unsafe { let _ = syscall::physunmap(address); }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unreachable_code)] on by default
warning: value assigned to `val` is never read
--> alxd/src/device/mod.rs:669:6
|
669 | val = self.read(WOL0);
| ^^^
|
= note: #[warn(unused_assignments)] on by default
warning: value assigned to `err` is never read
--> alxd/src/device/mod.rs:1127:6
|
1127 | err = self.read_phy_reg(MII_BMSR, &mut bmsr);
| ^^^
warning: value assigned to `val` is never read
--> alxd/src/device/mod.rs:1282:6
|
1282 | val = self.read(DMA);
| ^^^
warning: unused variable: `err`
--> alxd/src/device/mod.rs:1724:17
|
1724 | let mut err: usize = 0;
| ^^^ help: consider using `_err` instead
|
= note: #[warn(unused_variables)] on by default
warning: unused variable: `buf`
--> alxd/src/device/mod.rs:1808:35
|
1808 | fn read(&mut self, id: usize, buf: &mut [u8]) -> Result<usize> {
| ^^^ help: consider using `_buf` instead
warning: unused variable: `buf`
--> alxd/src/device/mod.rs:1845:37
|
1845 | fn write(&mut self, _id: usize, buf: &[u8]) -> Result<usize> {
| ^^^ help: consider using `_buf` instead
warning: variable does not need to be mutable
--> alxd/src/device/mod.rs:1724:13
|
1724 | let mut err: usize = 0;
| ----^^^
| |
| help: remove this `mut`
|
= note: #[warn(unused_mut)] on by default
error: linking with `x86_64-unknown-redox-gcc` failed: exit code: 1
|
= note: "x86_64-unknown-redox-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/readlnh/redox/cookbook/xargo/lib/rustlib/x86_64-unknown-redox/lib" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.0.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.1.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.10.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.11.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.12.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.13.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.14.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.15.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.2.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.3.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.4.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.5.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.6.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.7.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.8.rcgu.o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.pcid.m0qaj2vw-cgu.9.rcgu.o" "-o" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/pcid-00faecc368fdc4ee.22ha2kh3m2wi1swf.rcgu.o" "-Wl,--gc-sections" "-no-pie" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps" "-L" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/release/deps" "-L" "/home/readlnh/redox/cookbook/xargo/lib/rustlib/x86_64-unknown-redox/lib" "-Wl,-Bstatic" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/libtoml-96dd36b7f2c0fd38.rlib" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/libserde-1ce3ebbab02dccbf.rlib" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/libsyscall-041ac90121bb8668.rlib" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/libbyteorder-5d5c0ec73ecb91ad.rlib" "/home/readlnh/redox/cookbook/recipes/drivers/build/target/x86_64-unknown-redox/release/deps/libbitflags-cb6f58707facf34d.rlib" "/home/readlnh/redox/cookbook/xargo/lib/rustlib/x86_64-unknown-redox/lib/libstd.rlib" "/home/readlnh/redox/cookbook/xargo/lib/rustlib/x86_64-unknown-redox/lib/libpanic_unwind-0c60d858c7040fc5.rlib" "/home/readlnh/redox/cookbook/xargo/lib/rustlib/x86_64-unknown-redox/lib/libunwind-771b037e18b677f6.rlib" "/home/readlnh/redox/cookbook/xargo/lib/rustlib/x86_64-unknown-redox/lib/liballoc_system-31c8591d951a2f5f.rlib" "/home/readlnh/redox/cookbook/xargo/lib/rustlib/x86_64-unknown-redox/lib/liblibc-1d621a7745a2c281.rlib" "/home/readlnh/redox/cookbook/xargo/lib/rustlib/x86_64-unknown-redox/lib/liballoc-5855608c79c0de36.rlib" "/home/readlnh/redox/cookbook/xargo/lib/rustlib/x86_64-unknown-redox/lib/libcore-3da94599d6bd7e30.rlib" "/home/readlnh/redox/cookbook/xargo/lib/rustlib/x86_64-unknown-redox/lib/libcompiler_builtins-e03c3f437bdb6cce.rlib" "-Wl,-Bdynamic" "-lgcc" "-lc" "-lm"
= note: /home/readlnh/redox/cookbook/xargo/lib/rustlib/x86_64-unknown-redox/lib/libstd.rlib(std.std.7l0gpiwj-cgu.3.rcgu.o): In function `std::sys::redox::os::env':
std.7l0gpiwj-cgu.3:(.text._ZN3std3sys5redox2os3env17hb689700863c98b8dE+0x5fc): undefined reference to `__errno_location'
/home/readlnh/redox/cookbook/xargo/lib/rustlib/x86_64-unknown-redox/lib/libstd.rlib(std.std.7l0gpiwj-cgu.3.rcgu.o): In function `std::sys::redox::os::setenv':
std.7l0gpiwj-cgu.3:(.text._ZN3std3sys5redox2os6setenv17hf02ea6fea6a910f0E+0x1b5): undefined reference to `setenv'
std.7l0gpiwj-cgu.3:(.text._ZN3std3sys5redox2os6setenv17hf02ea6fea6a910f0E+0x1d9): undefined reference to `__errno_location'
/home/readlnh/redox/cookbook/xargo/lib/rustlib/x86_64-unknown-redox/lib/libstd.rlib(std.std.7l0gpiwj-cgu.3.rcgu.o): In function `std::sys::redox::os::unsetenv':
std.7l0gpiwj-cgu.3:(.text._ZN3std3sys5redox2os8unsetenv17h4bcc925ceb2ff35bE+0xd3): undefined reference to `unsetenv'
std.7l0gpiwj-cgu.3:(.text._ZN3std3sys5redox2os8unsetenv17h4bcc925ceb2ff35bE+0xf7): undefined reference to `__errno_location'
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: Could not compile `pcid`.
warning: build failed, waiting for other jobs to finish...
error: build failed
./repo.sh failed.make: *** [mk/initfs.mk:5:build/initfs.tag] 错误 1