ion-shell fails to compile on docker
Created by: Olivered
docker run --cap-add MKNOD --cap-add SYS_ADMIN --device /dev/fuse -e LOCAL_USER_ID="$(id -u)" -v "$(pwd):/src" --rm redox make all
Starting with UID : 502
CARGO_HOME is /cargo
RUSTUP_HOME is /rustup
fusermount -u build/filesystem/ || true
fusermount: entry for /src/build/filesystem not found in /etc/mtab
rm -rf build/filesystem.bin build/filesystem.bin.partial build/filesystem/
dd if=/dev/zero of=build/filesystem.bin.partial bs=1048576 count=512
512+0 records in
512+0 records out
536870912 bytes (537 MB, 512 MiB) copied, 3.7667 s, 143 MB/s
cargo run --manifest-path redoxfs/Cargo.toml --quiet --release --bin redoxfs-mkfs build/filesystem.bin.partial
redoxfs-mkfs: created filesystem on build/filesystem.bin.partial, size 512 MB
mkdir -p build/filesystem/
cargo build --manifest-path redoxfs/Cargo.toml --quiet --release --bin redoxfs
cargo run --manifest-path redoxfs/Cargo.toml --quiet --release --bin redoxfs -- build/filesystem.bin.partial build/filesystem/
redoxfs: opened filesystem build/filesystem.bin.partial
sleep 2
pgrep redoxfs
48
cp build/kernel build/filesystem/kernel
cargo run --manifest-path installer/Cargo.toml -- --cookbook=cookbook filesystem.toml
Updating git repository `https://github.com/redox-os/userutils.git`
Updating git repository `https://github.com/redox-os/pkgutils.git`
Updating git repository `https://github.com/libOctavo/octavo.git`
Updating git repository `https://github.com/ids1024/pb`
Updating git repository `https://github.com/redox-os/tar-rs`
Downloading liner v0.1.5
Downloading termion v1.4.0
Downloading serde_derive v0.8.23
Downloading argon2rs v0.2.5
Downloading unicode-width v0.1.4
Downloading scoped_threadpool v0.1.7
Downloading blake2-rfc v0.2.17
Downloading constant_time_eq v0.1.2
Downloading serde v1.0.9
Downloading hyper v0.10.12
Downloading version-compare v0.0.4
Downloading libflate v0.1.9
Downloading clap v2.25.0
Downloading serde_derive v1.0.9
Downloading hyper-rustls v0.6.1
Downloading toml v0.4.2
Downloading winapi v0.2.8
Downloading kernel32-sys v0.2.2
Downloading winapi-build v0.1.1
Downloading language-tags v0.2.2
Downloading mime v0.2.6
Downloading typeable v0.1.2
Downloading unicase v1.4.2
Downloading traitobject v0.1.0
Downloading num_cpus v1.6.2
Downloading httparse v1.2.3
Downloading url v1.5.1
Downloading base64 v0.5.2
Downloading version_check v0.1.2
Downloading idna v0.1.2
Downloading matches v0.1.6
Downloading percent-encoding v1.0.0
Downloading unicode-normalization v0.1.5
Downloading unicode-bidi v0.3.3
Downloading byteorder v1.0.0
Downloading vec_map v0.8.0
Downloading unicode-segmentation v1.1.0
Downloading textwrap v0.6.0
Downloading bitflags v0.9.1
Downloading term_size v0.3.0
Downloading generic-array v0.2.1
Downloading static-buffer v0.2.0
Downloading typenum v1.9.0
Downloading byteorder v0.5.3
Downloading serde_derive_internals v0.15.1
Downloading syn v0.11.11
Downloading quote v0.3.15
Downloading synom v0.11.3
Downloading unicode-xid v0.0.4
Downloading rustls v0.9.0
Downloading webpki-roots v0.11.0
Downloading base64 v0.6.0
Downloading untrusted v0.5.0
Downloading ring v0.11.0
Downloading webpki v0.14.0
Downloading safemem v0.2.0
Downloading rayon v0.7.1
Downloading rayon-core v1.2.1
Downloading coco v0.1.1
Downloading futures v0.1.14
Downloading lazy_static v0.2.8
Downloading scopeguard v0.3.2
Downloading either v1.1.0
Downloading serde_codegen v0.8.23
Downloading serde_codegen_internals v0.11.3
Downloading syn v0.10.8
Downloading xattr v0.1.11
Finished dev [unoptimized + debuginfo] target(s) in 0.11 secs
Running `installer/target/debug/redox_installer --cookbook=cookbook filesystem.toml`
Install Config {
general: GeneralConfig {
prompt: false,
sysroot: Some(
"build/filesystem"
)
},
packages: {
"contain": PackageConfig {
version: None,
git: None,
path: None
},
"coreutils": PackageConfig {
version: None,
git: None,
path: None
},
"extrautils": PackageConfig {
version: None,
git: None,
path: None
},
"installer": PackageConfig {
version: None,
git: None,
path: None
},
"ion": PackageConfig {
version: None,
git: None,
path: None
},
"netstack": PackageConfig {
version: None,
git: None,
path: None
},
"netutils": PackageConfig {
version: None,
git: None,
path: None
},
"orbdata": PackageConfig {
version: None,
git: None,
path: None
},
"orbital": PackageConfig {
version: None,
git: None,
path: None
},
"orbterm": PackageConfig {
version: None,
git: None,
path: None
},
"orbutils": PackageConfig {
version: None,
git: None,
path: None
},
"pkgutils": PackageConfig {
version: None,
git: None,
path: None
},
"ptyd": PackageConfig {
version: None,
git: None,
path: None
},
"randd": PackageConfig {
version: None,
git: None,
path: None
},
"redoxfs": PackageConfig {
version: None,
git: None,
path: None
},
"smith": PackageConfig {
version: None,
git: None,
path: None
},
"userutils": PackageConfig {
version: None,
git: None,
path: None
}
},
files: [
FileConfig {
path: "/etc/init.d/00_base",
data: "randd\nptyd\n"
},
FileConfig {
path: "/etc/init.d/10_net",
data: "ethernetd\nipd\nicmpd\ntcpd\nudpd\ndhcpd -b\n"
},
FileConfig {
path: "/etc/init.d/20_orbital",
data: "orbital display:3/activate /ui/bin/orblogin /ui/bin/launcher\n"
},
FileConfig {
path: "/etc/init.d/30_console",
data: "getty display:2\ngetty debug: -J\n"
},
FileConfig {
path: "/etc/net/dns",
data: "208.67.222.222"
},
FileConfig {
path: "/etc/net/ip",
data: "10.0.2.15"
},
FileConfig {
path: "/etc/net/ip_router",
data: "10.0.2.2"
},
FileConfig {
path: "/etc/net/ip_subnet",
data: "255.255.255.0"
},
FileConfig {
path: "/etc/net/mac",
data: "54-52-00-ab-cd-ef"
},
FileConfig {
path: "/etc/pkg.d/50_redox",
data: "https://static.redox-os.org/pkg"
},
FileConfig {
path: "/etc/group",
data: "sudo;1;user"
},
FileConfig {
path: "/etc/hostname",
data: "redox"
},
FileConfig {
path: "/etc/issue",
data: "########## Redox OS ##########\n# Login with the following: #\n# `user` #\n# `root`:`password` #\n##############################\n\n"
},
FileConfig {
path: "/etc/motd",
data: "Welcome to Redox OS!\n\n"
},
FileConfig {
path: "/home/user/.ionrc",
data: ""
},
FileConfig {
path: "/root/.ionrc",
data: ""
}
],
users: {
"root": UserConfig {
password: Some(
"$argon2i$m=4096,t=10,p=1$Tnc4UVV0N00$ML9LIOujd3nmAfkAwEcSTMPqakWUF0OUiLWrIy0nGLk"
),
uid: Some(
0
),
gid: Some(
0
),
name: Some(
"root"
),
home: Some(
"/root"
),
shell: None
},
"user": UserConfig {
password: Some(
""
),
uid: None,
gid: None,
name: None,
home: None,
shell: None
}
}
}
Create directory /src/build/filesystem/
repo - contain up to date
repo - coreutils up to date
repo - extrautils up to date
repo - installer up to date
repo - building ion
cook - ion update
Updating registry `https://github.com/rust-lang/crates.io-index`
cook - ion build
Downloading liner v0.3.1
Downloading glob v0.2.11
Downloading smallvec v0.4.1
Downloading unicode-segmentation v1.2.0
Downloading fnv v1.0.5
Downloading permutate v0.3.2
Downloading smallstring v0.1.2
Downloading smallvec v0.3.3
Downloading ansi_term v0.9.0
Downloading peg v0.5.4
Compiling ion-shell v1.0.3 (file:///src/cookbook/recipes/ion/build)
error[E0433]: failed to resolve. Use of undeclared type or module `signal`
--> src/builtins/job_control.rs:30:29
|
30 | let _ = signal::kill(job.pid as pid_t, Some(Signal::SIGTSTP));
| ^^^^^^^^^^^^ Use of undeclared type or module `signal`
error[E0412]: cannot find type `pid_t` in this scope
--> src/builtins/job_control.rs:30:53
|
30 | let _ = signal::kill(job.pid as pid_t, Some(Signal::SIGTSTP));
| ^^^^^ not found in this scope
error[E0433]: failed to resolve. Use of undeclared type or module `Signal`
--> src/builtins/job_control.rs:30:65
|
30 | let _ = signal::kill(job.pid as pid_t, Some(Signal::SIGTSTP));
| ^^^^^^^^^^^^^^^ Use of undeclared type or module `Signal`
error[E0433]: failed to resolve. Use of undeclared type or module `signal`
--> src/builtins/job_control.rs:38:29
|
38 | let _ = signal::kill(job.pid as pid_t, Some(Signal::SIGINT));
| ^^^^^^^^^^^^ Use of undeclared type or module `signal`
error[E0412]: cannot find type `pid_t` in this scope
--> src/builtins/job_control.rs:38:53
|
38 | let _ = signal::kill(job.pid as pid_t, Some(Signal::SIGINT));
| ^^^^^ not found in this scope
error[E0433]: failed to resolve. Use of undeclared type or module `Signal`
--> src/builtins/job_control.rs:38:65
|
38 | let _ = signal::kill(job.pid as pid_t, Some(Signal::SIGINT));
| ^^^^^^^^^^^^^^ Use of undeclared type or module `Signal`
error: aborting due to previous error(s)
error: Could not compile `ion-shell`.
To learn more, run the command again with --verbose.
./repo.sh failed.make: *** [build/filesystem.bin] Error 1
mk/filesystem.mk:2: recipe for target 'build/filesystem.bin' failed