Cannot Install on OSX
Miserlou opened this issue · 2 comments
Miserlou commented
This is with rustup to the nightlies:
Fresh libc v0.2.19
Fresh odds v0.2.25
Fresh gcc v0.3.41
Fresh itoa v0.1.1
Fresh permutate v0.2.0
Fresh smallvec v0.3.1
Fresh num_cpus v1.2.1
Fresh time v0.1.36
Fresh wait-timeout v0.1.3
Fresh nodrop v0.1.8
Fresh arrayvec v0.3.20
Fresh sys-info v0.4.1
Compiling parallel v0.10.4 (file:///Users/rjones/Sources/parallel)
Running `rustc src/main.rs --crate-name parallel --crate-type bin -g -C metadata=f391bbe94dd644fb --out-dir /Users/rjones/Sources/parallel/target/debug --emit=dep-info,link -L dependency=/Users/rjones/Sources/parallel/target/debug/deps --extern wait_timeout=/Users/rjones/Sources/parallel/target/debug/deps/libwait_timeout-9b7fc49455ddb026.rlib --extern smallvec=/Users/rjones/Sources/parallel/target/debug/deps/libsmallvec-7e2f316ec392a6d4.rlib --extern itoa=/Users/rjones/Sources/parallel/target/debug/deps/libitoa-58ab3e11c7b36cd3.rlib --extern permutate=/Users/rjones/Sources/parallel/target/debug/deps/libpermutate-3f2228c4f25d0e98.rlib --extern time=/Users/rjones/Sources/parallel/target/debug/deps/libtime-bcc5484ee52ec8cd.rlib --extern arrayvec=/Users/rjones/Sources/parallel/target/debug/deps/libarrayvec-caf4a6c5f0300bbd.rlib --extern sys_info=/Users/rjones/Sources/parallel/target/debug/deps/libsys_info-21f1d2bc2fd2d7d0.rlib --extern num_cpus=/Users/rjones/Sources/parallel/target/debug/deps/libnum_cpus-86764cdeac0ab7b8.rlib -L native=/Users/rjones/Sources/parallel/target/debug/build/sys-info-b457c890656629ac/out`
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `file`
--> src/execute/receive.rs:48:65
|
48 | if let Ok(file) = File::open(&$stdout_path) { break file }
| ^^^^
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `file`
--> src/execute/receive.rs:53:65
|
53 | if let Ok(file) = File::open(&$stderr_path) { break file }
| ^^^^
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `file`
--> src/execute/receive.rs:48:65
|
48 | if let Ok(file) = File::open(&$stdout_path) { break file }
| ^^^^
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `file`
--> src/execute/receive.rs:53:65
|
53 | if let Ok(file) = File::open(&$stderr_path) { break file }
| ^^^^
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `file`
--> src/execute/receive.rs:48:65
|
48 | if let Ok(file) = File::open(&$stdout_path) { break file }
| ^^^^
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `file`
--> src/execute/receive.rs:53:65
|
53 | if let Ok(file) = File::open(&$stderr_path) { break file }
| ^^^^
error: aborting due to 6 previous errors
error: Could not compile `parallel`.
Caused by:
process didn't exit successfully: `rustc src/main.rs --crate-name parallel --crate-type bin -g -C metadata=f391bbe94dd644fb --out-dir /Users/rjones/Sources/parallel/target/debug --emit=dep-info,link -L dependency=/Users/rjones/Sources/parallel/target/debug/deps --extern wait_timeout=/Users/rjones/Sources/parallel/target/debug/deps/libwait_timeout-9b7fc49455ddb026.rlib --extern smallvec=/Users/rjones/Sources/parallel/target/debug/deps/libsmallvec-7e2f316ec392a6d4.rlib --extern itoa=/Users/rjones/Sources/parallel/target/debug/deps/libitoa-58ab3e11c7b36cd3.rlib --extern permutate=/Users/rjones/Sources/parallel/target/debug/deps/libpermutate-3f2228c4f25d0e98.rlib --extern time=/Users/rjones/Sources/parallel/target/debug/deps/libtime-bcc5484ee52ec8cd.rlib --extern arrayvec=/Users/rjones/Sources/parallel/target/debug/deps/libarrayvec-caf4a6c5f0300bbd.rlib --extern sys_info=/Users/rjones/Sources/parallel/target/debug/deps/libsys_info-21f1d2bc2fd2d7d0.rlib --extern num_cpus=/Users/rjones/Sources/parallel/target/debug/deps/libnum_cpus-86764cdeac0ab7b8.rlib -L native=/Users/rjones/Sources/parallel/target/debug/build/sys-info-b457c890656629ac/out` (exit code: 101)
I get the same error compiling local source and from cargo install parallel
.
mmstick commented
You need to use the nightly compiler. I'm using the loop_break_value
and alloc_system
features that are only allowed on nightly builds.
mmstick commented
Closing due to inactivity