-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Like described under 'Installation' but for macos:
curl -s -o ./.rust/rustup-init.tmp -- https://static.rust-lang.org/rustup/dist/x86_64-apple-darwin/rustup-init
With this resulting toolchain
which cargo
/Users/ben/builds/vonuvoli-scheme/vonuvoli-scheme/.rust/rustup/toolchains/nightly-x86_64-apple-darwin/bin/cargo
But it doesn't build
[I] ben@moonraker ~/b/v/vonuvoli-scheme (development)> cargo build
Compiling vonuvoli-scheme v0.0.7 (/Users/ben/builds/vonuvoli-scheme/vonuvoli-scheme)
error[E0425]: cannot find value `RUSAGE_THREAD` in crate `ext::libc`
--> sources/runtime.rs:425:39
|
425 | if ext::libc::getrusage (ext::libc::RUSAGE_THREAD, &mut resources) == 0 {
| ^^^^^^^^^^^^^ help: a constant with a similar name exists: `SIGEV_THREAD`
|
::: /Users/ben/builds/vonuvoli-scheme/vonuvoli-scheme/.rust/cargo/registry/src/github.lovev.site-1ecc6299db9ec823/libc-0.2.139/src/unix/bsd/apple/mod.rs:4356:1
|
4356 | pub const SIGEV_THREAD: ::c_int = 3;
| ------------------------------- similarly named constant `SIGEV_THREAD` defined here
error[E0308]: mismatched types
--> sources/builtins_filesystem.rs:1354:32
|
1354 | let kind = metadata.mode () & ext::libc::S_IFMT;
| ^^^^^^^^^^^^^^^^^ expected `u32`, found `u16`
error[E0277]: no implementation for `u32 & u16`
--> sources/builtins_filesystem.rs:1354:30
|
1354 | let kind = metadata.mode () & ext::libc::S_IFMT;
| ^ no implementation for `u32 & u16`
|
= help: the trait `BitAnd<u16>` is not implemented for `u32`
= help: the following other types implement trait `BitAnd<Rhs>`:
<&'a u32 as BitAnd<u32>>
<&u32 as BitAnd<&u32>>
<u32 as BitAnd<&u32>>
<u32 as BitAnd>
Some errors have detailed explanations: E0277, E0308, E0425.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `vonuvoli-scheme` due to 3 previous errors
Metadata
Metadata
Assignees
Labels
No labels