Skip to content

Instantly share code, notes, and snippets.

@raw-bin
Created December 7, 2017 20:19
Show Gist options
  • Save raw-bin/7f831ca58bbc571fc87d59138127d799 to your computer and use it in GitHub Desktop.
Save raw-bin/7f831ca58bbc571fc87d59138127d799 to your computer and use it in GitHub Desktop.
Failure with HEAD @ afff2c38480c4c3a1681f283fe882392f76a690a and rustc set to latest nightly (rustup show output below)
[robin@neuron src]$ rustup show
Default host: x86_64-unknown-linux-gnu
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (default)
nightly-2017-11-20-x86_64-unknown-linux-gnu
nightly-2017-11-27-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu
active toolchain
----------------
nightly-x86_64-unknown-linux-gnu (directory override for '/home/robin/work/repos/redox/src')
rustc 1.24.0-nightly (cfba0d446 2017-12-05
[robin@neuron src]$ make all
cd kernel && xargo clean
rm -rf build/initfs
mkdir -p build/initfs
cargo run --manifest-path installer/Cargo.toml -- --cookbook=cookbook -c initfs.toml build/initfs/
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
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
}
],
users: {}
} to build/initfs/
Create directory build/initfs/
repo - building drivers
cook - drivers build
Compiling pcid v0.1.0 (file:///home/robin/work/repos/redox/src/cookbook/recipes/drivers/build/pcid)
error: borrow of packed field requires unsafe function or block (error E0133)
--> pcid/src/main.rs:46:29
|
46 | header.vendor_id, header.device_id,
| ^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> pcid/src/main.rs:1:9
|
1 | #![deny(warnings)]
| ^^^^^^^^
= note: #[deny(safe_packed_borrows)] implied by #[deny(warnings)]
= 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>
error: borrow of packed field requires unsafe function or block (error E0133)
--> pcid/src/main.rs:46:47
|
46 | header.vendor_id, header.device_id,
| ^^^^^^^^^^^^^^^^
|
= 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>
error: borrow of packed field requires unsafe function or block (error E0133)
--> pcid/src/main.rs:81:33
|
81 | for i in 0..header.bars.len() {
| ^^^^^^^^^^^
|
= 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>
error: borrow of packed field requires unsafe function or block (error E0133)
--> pcid/src/main.rs:127:60
|
127 | match PciBar::from(header.bars[i]) {
| ^^^^^^^^^^^
|
= 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>
error: borrow of packed field requires unsafe function or block (error E0133)
--> pcid/src/main.rs:145:71
|
145 | "$VENID" => format!("{:>04X}",header.vendor_id),
| ^^^^^^^^^^^^^^^^
|
= 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>
error: borrow of packed field requires unsafe function or block (error E0133)
--> pcid/src/main.rs:146:71
|
146 | "$DEVID" => format!("{:>04X}",header.device_id),
| ^^^^^^^^^^^^^^^^
|
= 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>
error: #[derive] can't be used on a non-Copy #[repr(packed)] struct (error E0133)
--> pcid/src/pci/header.rs:4:10
|
4 | #[derive(Debug, Default)]
| ^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will[robin@neuron src]$ make all
cd kernel && xargo clean
rm -rf build/initfs
mkdir -p build/initfs
cargo run --manifest-path installer/Cargo.toml -- --cookbook=cookbook -c initfs.toml build/initfs/
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
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
}
],
users: {}
} to build/initfs/
Create directory build/initfs/
repo - building drivers
cook - drivers build
Compiling pcid v0.1.0 (file:///home/robin/work/repos/redox/src/cookbook/recipes/drivers/build/pcid)
error: borrow of packed field requires unsafe function or block (error E0133)
--> pcid/src/main.rs:46:29
|
46 | header.vendor_id, header.device_id,
| ^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> pcid/src/main.rs:1:9
|
1 | #![deny(warnings)]
| ^^^^^^^^
= note: #[deny(safe_packed_borrows)] implied by #[deny(warnings)]
= 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>
error: borrow of packed field requires unsafe function or block (error E0133)
--> pcid/src/main.rs:46:47
|
46 | header.vendor_id, header.device_id,
| ^^^^^^^^^^^^^^^^
|
= 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>
error: borrow of packed field requires unsafe function or block (error E0133)
--> pcid/src/main.rs:81:33
|
81 | for i in 0..header.bars.len() {
| ^^^^^^^^^^^
|
= 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>
error: borrow of packed field requires unsafe function or block (error E0133)
--> pcid/src/main.rs:127:60
|
127 | match PciBar::from(header.bars[i]) {
| ^^^^^^^^^^^
|
= 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>
error: borrow of packed field requires unsafe function or block (error E0133)
--> pcid/src/main.rs:145:71
|
145 | "$VENID" => format!("{:>04X}",header.vendor_id),
| ^^^^^^^^^^^^^^^^
|
= 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>
error: borrow of packed field requires unsafe function or block (error E0133)
--> pcid/src/main.rs:146:71
|
146 | "$DEVID" => format!("{:>04X}",header.device_id),
| ^^^^^^^^^^^^^^^^
|
= 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>
error: #[derive] can't be used on a non-Copy #[repr(packed)] struct (error E0133)
--> pcid/src/pci/header.rs:4:10
|
4 | #[derive(Debug, 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>
error: aborting due to 7 previous errors
error: Could not compile `pcid`.
To learn more, run the command again with --verbose.
./repo.sh failed.make: *** [mk/initfs.mk:5: build/initfs.tag] Error 1
become a hard error in a future release!
= note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
error: aborting due to 7 previous errors
error: Could not compile `pcid`.
To learn more, run the command again with --verbose.
./repo.sh failed.make: *** [mk/initfs.mk:5: build/initfs.tag] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment