emk / duktape-rs

Rust wrapper for Duktape, a lightweight, embedded JavaScript interpreter.
35 stars 7 forks source link

Unable to compile on Mac OS X #4

Closed lexfrl closed 4 years ago

lexfrl commented 8 years ago
rustc -V
rustc 1.11.0-nightly (5c2a5d449 2016-06-11)

cargo -V
cargo 0.12.0-nightly (ffa147d 2016-06-10)
➜  duktape-rs git:(master) cargo build               
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading abort_on_panic v1.0.0
 Downloading log v0.3.6
 Downloading rustc-serialize v0.3.19
 Downloading cesu8 v1.1.0
 Downloading gcc v0.3.28
   Compiling gcc v0.3.28
   Compiling cesu8 v1.1.0
   Compiling rustc-serialize v0.3.19
   Compiling abort_on_panic v1.0.0
   Compiling log v0.3.6
   Compiling duktape_sys v0.0.2 (file:///Users/fro/ethereum/duktape-rs/duktape_sys)
duktape_sys/build.rs:8:15: 8:21 error: unresolved import `std::os::getenv`. There is no `getenv` in `std::os` [E0432]
duktape_sys/build.rs:8 use std::os::{getenv, setenv};
                                     ^~~~~~
duktape_sys/build.rs:8:15: 8:21 help: run `rustc --explain E0432` to see a detailed explanation
duktape_sys/build.rs:8:23: 8:29 error: unresolved import `std::os::setenv`. There is no `setenv` in `std::os` [E0432]
duktape_sys/build.rs:8 use std::os::{getenv, setenv};
                                             ^~~~~~
duktape_sys/build.rs:8:23: 8:29 help: run `rustc --explain E0432` to see a detailed explanation
duktape_sys/build.rs:18:35: 18:44 error: failed to resolve. Use of undeclared type or module `Path` [E0433]
duktape_sys/build.rs:18         include_directories: vec!(Path::new("duktape/src")),
                                                          ^~~~~~~~~
duktape_sys/build.rs:18:30: 18:60 note: in this expansion of vec! (defined in <std macros>)
duktape_sys/build.rs:18:35: 18:44 help: run `rustc --explain E0433` to see a detailed explanation
duktape_sys/build.rs:17:5: 20:49 error: this function takes 2 parameters but 3 parameters were supplied [E0061]
duktape_sys/build.rs:17     gcc::compile_library("libduktape.a", &gcc::Config {
                            ^
duktape_sys/build.rs:17:5: 20:49 help: run `rustc --explain E0061` to see a detailed explanation
duktape_sys/build.rs:19:12: 19:28 error: the trait bound `gcc::Config: std::default::Default` is not satisfied [E0277]
duktape_sys/build.rs:19         .. Default::default()
                                   ^~~~~~~~~~~~~~~~
duktape_sys/build.rs:19:12: 19:28 help: run `rustc --explain E0277` to see a detailed explanation
duktape_sys/build.rs:19:12: 19:28 note: required by `std::default::Default::default`
error: aborting due to 2 previous errors
Build failed, waiting for other jobs to finish...
error: Could not compile `duktape_sys`.
emk commented 8 years ago

Just a heads up: I'm transferring this crate to a new owner, as discussed in https://github.com/emk/duktape-rs/issues/3. None of my Rust projects use this any more. :-/