We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I appreciate that this was likely to fail, but thought I'd report findings for reference.
$ gn gen out.gn/pdsdev --args='is_debug=false target_cpu="x64" v8_target_cpu="x64" v8_use_snapshot=false' $ ninja -C out.gn/pdsdev $ export V8_SOURCE=/Users/pwrdwnsys/tmp_stuff/v8 $ export V8_LIBS=/Users/pwrdwnsys/tmp_stuff/v8/out.gn/pdsdev/obj
The V8 build completes and tests run successfully. I then try running the v8-rs hello-world example using rustc 1.22.0-nightly (6c476ce46 2017-09-25):
rustc 1.22.0-nightly (6c476ce46 2017-09-25)
Compiling serde v0.9.15 Compiling pkg-config v0.3.9 Compiling void v1.0.2 Compiling strsim v0.6.0 Compiling log v0.3.8 Compiling regex-syntax v0.4.1 Compiling dtoa v0.4.2 Compiling unicode-width v0.1.4 Compiling utf8-ranges v1.0.0 Compiling glob v0.2.11 Compiling cfg-if v0.1.2 Compiling rustc-demangle v0.1.5 Compiling num-traits v0.1.40 Compiling bitflags v0.9.1 Compiling bitflags v0.7.0 Compiling unicode-xid v0.0.4 Compiling siphasher v0.2.2 Compiling ansi_term v0.9.0 Compiling rustc-serialize v0.3.24 Compiling itoa v0.3.4 Compiling gcc v0.3.54 Compiling libc v0.2.31 Compiling vec_map v0.8.0 Compiling lazy_static v0.2.8 Compiling term v0.4.6 Compiling unreachable v1.0.0 Compiling phf_shared v0.7.21 Compiling clang-sys v0.14.1 Compiling thread_local v0.3.4 Compiling atty v0.2.2 Compiling backtrace v0.3.3 Compiling memchr v1.0.1 Compiling rand v0.3.16 Compiling term_size v0.3.0 Compiling num_cpus v1.6.2 Compiling phf v0.7.21 Compiling aho-corasick v0.6.3 Compiling nom v3.2.0 Compiling error-chain v0.9.0 Compiling textwrap v0.8.0 Compiling regex v0.2.2 Compiling clap v2.26.2 Compiling phf_generator v0.7.21 Compiling phf_codegen v0.7.21 Compiling target_build_utils v0.3.1 Compiling syntex_pos v0.54.0 Compiling cexpr v0.2.2 Compiling syntex_errors v0.54.0 Compiling serde_json v0.9.10 Compiling syntex_syntax v0.54.0 Compiling env_logger v0.4.3 Compiling libloading v0.3.4 Compiling clang v0.15.0 Compiling v8-api v0.7.3 (file:///Users/pwrdwnsys/tmp_stuff/v8-rs/v8-api) Compiling aster v0.38.0 Compiling quasi v0.29.0 Compiling syntex v0.54.0 Compiling quasi_codegen v0.29.0 Compiling bindgen v0.22.1 Compiling v8-sys v0.14.7 (file:///Users/pwrdwnsys/tmp_stuff/v8-rs/v8-sys) warning: use of deprecated item: gcc::Config has been renamed to gcc::Build --> v8-sys/build.rs:205:22 | 205 | let mut config = gcc::Config::new(); | ^^^^^^^^^^^^^^^^ | = note: #[warn(deprecated)] on by default warning: unused extern crate --> v8-sys/build.rs:3:1 | 3 | extern crate clang; | ^^^^^^^^^^^^^^^^^^^ | = note: #[warn(unused_extern_crates)] on by default error: failed to run custom build command for `v8-sys v0.14.7 (file:///Users/pwrdwnsys/tmp_stuff/v8-rs/v8-sys)` process didn't exit successfully: `/Users/pwrdwnsys/tmp_stuff/v8-rs/target/debug/build/v8-sys-dba2bb6c12b6e54a/build-script-build` (exit code: 101) --- stdout cargo:rerun-if-changed=src/v8-trampoline.h cargo:rerun-if-changed=src/v8-glue.h cargo:rerun-if-changed=src/v8-glue.cc -I"/Users/pwrdwnsys/tmp_stuff/v8/include" -I"/usr/local/include" -I"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/include" -I"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include" -I"/usr/include" -I"/System/Library/Frameworks" -I"/Library/Frameworks" V8_LIBS="/Users/pwrdwnsys/tmp_stuff/v8/out.gn/pdsdev/obj" cargo:rustc-link-search=native=/Users/pwrdwnsys/tmp_stuff/v8/out.gn/pdsdev TARGET = Some("x86_64-apple-darwin") OPT_LEVEL = Some("0") TARGET = Some("x86_64-apple-darwin") HOST = Some("x86_64-apple-darwin") TARGET = Some("x86_64-apple-darwin") TARGET = Some("x86_64-apple-darwin") HOST = Some("x86_64-apple-darwin") CXX_x86_64-apple-darwin = None CXX_x86_64_apple_darwin = None HOST_CXX = None CXX = None HOST = Some("x86_64-apple-darwin") TARGET = Some("x86_64-apple-darwin") HOST = Some("x86_64-apple-darwin") CXXFLAGS_x86_64-apple-darwin = None CXXFLAGS_x86_64_apple_darwin = None HOST_CXXFLAGS = None CXXFLAGS = None DEBUG = Some("true") running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "/Users/pwrdwnsys/tmp_stuff/v8/include" "-I" "src" "-I" "/Users/pwrdwnsys/tmp_stuff/v8-rs/target/debug/build/v8-sys-612cdfcace439d82/out" "-std=c++11" "-Wall" "-Wall" "-Wextra" "-o" "/Users/pwrdwnsys/tmp_stuff/v8-rs/target/debug/build/v8-sys-612cdfcace439d82/out/src/v8-glue.o" "-c" "src/v8-glue.cc" cargo:warning=In file included from src/v8-glue.cc:1: cargo:warning=In file included from src/v8-glue.h:3: cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:647:54: warning: unused parameter 'source' [-Wunused-parameter] cargo:warning= V8_INLINE static void Copy(const Persistent<S, M>& source, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:648:53: warning: unused parameter 'dest' [-Wunused-parameter] cargo:warning= NonCopyablePersistent* dest) { cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:667:54: warning: unused parameter 'source' [-Wunused-parameter] cargo:warning= static V8_INLINE void Copy(const Persistent<S, M>& source, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:668:50: warning: unused parameter 'dest' [-Wunused-parameter] cargo:warning= CopyablePersistent* dest) { cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:6065:16: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning= Isolate* isolate, Local<String> name) { cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:6065:39: warning: unused parameter 'name' [-Wunused-parameter] cargo:warning= Isolate* isolate, Local<String> name) { cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:6689:50: warning: unused parameter 'string' [-Wunused-parameter] cargo:warning= virtual void VisitExternalString(Local<String> string) {} cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:6699:57: warning: unused parameter 'value' [-Wunused-parameter] cargo:warning= virtual void VisitPersistentHandle(Persistent<Value>* value, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:6700:47: warning: unused parameter 'class_id' [-Wunused-parameter] cargo:warning= uint16_t class_id) {} cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:9103:55: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning= V8_INLINE static void CheckInitialized(v8::Isolate* isolate) { cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:9242:35: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=Local<T> Eternal<T>::Get(Isolate* isolate) const { cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:9530:29: warning: unused parameter 'whatever' [-Wunused-parameter] cargo:warning=void ReturnValue<T>::Set(S* whatever) { cargo:warning= ^ cargo:warning=In file included from src/v8-glue.cc:1: cargo:warning=In file included from src/v8-glue.h:4: cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:71:62: warning: unused parameter 'name' [-Wunused-parameter] cargo:warning= virtual const uint8_t* GetCategoryGroupEnabled(const char* name) { cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:85:12: warning: unused parameter 'phase' [-Wunused-parameter] cargo:warning= char phase, const uint8_t* category_enabled_flag, const char* name, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:85:34: warning: unused parameter 'category_enabled_flag' [-Wunused-parameter] cargo:warning= char phase, const uint8_t* category_enabled_flag, const char* name, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:85:69: warning: unused parameter 'name' [-Wunused-parameter] cargo:warning= char phase, const uint8_t* category_enabled_flag, const char* name, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:86:19: warning: unused parameter 'scope' [-Wunused-parameter] cargo:warning= const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:86:35: warning: unused parameter 'id' [-Wunused-parameter] cargo:warning= const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:86:48: warning: unused parameter 'bind_id' [-Wunused-parameter] cargo:warning= const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:86:65: warning: unused parameter 'num_args' [-Wunused-parameter] cargo:warning= const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:87:20: warning: unused parameter 'arg_names' [-Wunused-parameter] cargo:warning= const char** arg_names, const uint8_t* arg_types, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:87:46: warning: unused parameter 'arg_types' [-Wunused-parameter] cargo:warning= const char** arg_names, const uint8_t* arg_types, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:88:23: warning: unused parameter 'arg_values' [-Wunused-parameter] cargo:warning= const uint64_t* arg_values, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:89:50: warning: unused parameter 'arg_convertables' [-Wunused-parameter] cargo:warning= std::unique_ptr<ConvertableToTraceFormat>* arg_convertables, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:90:20: warning: unused parameter 'flags' [-Wunused-parameter] cargo:warning= unsigned int flags) { cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:98:56: warning: unused parameter 'category_enabled_flag' [-Wunused-parameter] cargo:warning= virtual void UpdateTraceEventDuration(const uint8_t* category_enabled_flag, cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:99:53: warning: unused parameter 'name' [-Wunused-parameter] cargo:warning= const char* name, uint64_t handle) {} cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:99:68: warning: unused parameter 'handle' [-Wunused-parameter] cargo:warning= const char* name, uint64_t handle) {} cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:187:52: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning= virtual void CallIdleOnForegroundThread(Isolate* isolate, IdleTask* task) { cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:187:71: warning: unused parameter 'task' [-Wunused-parameter] cargo:warning= virtual void CallIdleOnForegroundThread(Isolate* isolate, IdleTask* task) { cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:194:42: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning= virtual bool IdleTasksEnabled(Isolate* isolate) { cargo:warning= ^ cargo:warning=In file included from src/v8-glue.cc:1: cargo:warning=src/v8-glue.h:163:9: warning: 'V8_INTRINSICS_LIST' macro redefined [-Wmacro-redefined] cargo:warning=#define V8_INTRINSICS_LIST(F) F(ArrayProto_values, array_values_iterator) cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:5038:9: note: previous definition is here cargo:warning=#define V8_INTRINSICS_LIST(F) \ cargo:warning= ^ cargo:warning=In file included from src/v8-glue.cc:1: cargo:warning=In file included from src/v8-glue.h:362: cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8-rs/target/debug/build/v8-sys-612cdfcace439d82/out/v8-glue-generated.h:733:49: error: unknown type name 'DcheckErrorCallback'; did you mean 'v8::DcheckErrorCallback'? cargo:warning=void v8_V8_SetDcheckErrorHandler(RustContext c, DcheckErrorCallback that); cargo:warning= ^~~~~~~~~~~~~~~~~~~ cargo:warning= v8::DcheckErrorCallback cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:6198:16: note: 'v8::DcheckErrorCallback' declared here cargo:warning=typedef void (*DcheckErrorCallback)(const char* file, int line, cargo:warning= ^ cargo:warning=src/v8-glue.cc:43:1: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=UNWRAP_MAYBE_PRIM(bool, bool, MaybeBool) cargo:warning=^ cargo:warning=src/v8-glue.cc:31:22: note: expanded from macro 'UNWRAP_MAYBE_PRIM' cargo:warning= v8::Isolate *isolate, \ cargo:warning= ^ cargo:warning=src/v8-glue.cc:44:1: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=UNWRAP_MAYBE_PRIM(int, int, MaybeInt) cargo:warning=^ cargo:warning=src/v8-glue.cc:31:22: note: expanded from macro 'UNWRAP_MAYBE_PRIM' cargo:warning= v8::Isolate *isolate, \ cargo:warning= ^ cargo:warning=src/v8-glue.cc:45:1: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=UNWRAP_MAYBE_PRIM(unsigned int, uint, MaybeUInt) cargo:warning=^ cargo:warning=src/v8-glue.cc:31:22: note: expanded from macro 'UNWRAP_MAYBE_PRIM' cargo:warning= v8::Isolate *isolate, \ cargo:warning= ^ cargo:warning=src/v8-glue.cc:46:1: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=UNWRAP_MAYBE_PRIM(long, long, MaybeLong) cargo:warning=^ cargo:warning=src/v8-glue.cc:31:22: note: expanded from macro 'UNWRAP_MAYBE_PRIM' cargo:warning= v8::Isolate *isolate, \ cargo:warning= ^ cargo:warning=src/v8-glue.cc:47:1: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=UNWRAP_MAYBE_PRIM(unsigned long, ulong, MaybeULong) cargo:warning=^ cargo:warning=src/v8-glue.cc:31:22: note: expanded from macro 'UNWRAP_MAYBE_PRIM' cargo:warning= v8::Isolate *isolate, \ cargo:warning= ^ cargo:warning=src/v8-glue.cc:48:1: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=UNWRAP_MAYBE_PRIM(uint32_t, u32, MaybeU32) cargo:warning=^ cargo:warning=src/v8-glue.cc:31:22: note: expanded from macro 'UNWRAP_MAYBE_PRIM' cargo:warning= v8::Isolate *isolate, \ cargo:warning= ^ cargo:warning=src/v8-glue.cc:49:1: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=UNWRAP_MAYBE_PRIM(int32_t, i32, MaybeI32) cargo:warning=^ cargo:warning=src/v8-glue.cc:31:22: note: expanded from macro 'UNWRAP_MAYBE_PRIM' cargo:warning= v8::Isolate *isolate, \ cargo:warning= ^ cargo:warning=src/v8-glue.cc:50:1: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=UNWRAP_MAYBE_PRIM(uint64_t, u64, MaybeU64) cargo:warning=^ cargo:warning=src/v8-glue.cc:31:22: note: expanded from macro 'UNWRAP_MAYBE_PRIM' cargo:warning= v8::Isolate *isolate, \ cargo:warning= ^ cargo:warning=src/v8-glue.cc:51:1: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=UNWRAP_MAYBE_PRIM(int64_t, i64, MaybeI64) cargo:warning=^ cargo:warning=src/v8-glue.cc:31:22: note: expanded from macro 'UNWRAP_MAYBE_PRIM' cargo:warning= v8::Isolate *isolate, \ cargo:warning= ^ cargo:warning=src/v8-glue.cc:52:1: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=UNWRAP_MAYBE_PRIM(double, f64, MaybeF64) cargo:warning=^ cargo:warning=src/v8-glue.cc:31:22: note: expanded from macro 'UNWRAP_MAYBE_PRIM' cargo:warning= v8::Isolate *isolate, \ cargo:warning= ^ cargo:warning=src/v8-glue.cc:55:18: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning= v8::Isolate *isolate, cargo:warning= ^ cargo:warning=src/v8-glue.cc:81:18: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning= v8::Isolate *isolate, cargo:warning= ^ cargo:warning=src/v8-glue.cc:92:44: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=template<typename A> A unwrap(v8::Isolate *isolate, A &&value) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:106:37: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=v8::AccessControl wrap(v8::Isolate *isolate, AccessControl value) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:124:38: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=v8::PropertyFilter wrap(v8::Isolate *isolate, PropertyFilter value) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:150:41: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=v8::KeyCollectionMode wrap(v8::Isolate *isolate, KeyCollectionMode value) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:160:35: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=v8::IndexFilter wrap(v8::Isolate *isolate, IndexFilter value) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:170:38: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=v8::IntegrityLevel wrap(v8::Isolate *isolate, IntegrityLevel value) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:180:41: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=v8::PropertyAttribute wrap(v8::Isolate *isolate, PropertyAttribute value) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:202:44: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=v8::PropertyHandlerFlags wrap(v8::Isolate *isolate, PropertyHandlerFlags value) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:220:43: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=v8::ConstructorBehavior wrap(v8::Isolate *isolate, ConstructorBehavior value) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:230:42: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=v8::PromiseRejectEvent wrap(v8::Isolate *isolate, PromiseRejectEvent value) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:240:33: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=v8::Intrinsic wrap(v8::Isolate *isolate, Intrinsic value) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:249:47: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=v8::ArrayBufferCreationMode wrap(v8::Isolate *isolate, ArrayBufferCreationMode value) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:667:42: warning: unused parameter 'isolate' [-Wunused-parameter] cargo:warning=template<typename A> A wrap(v8::Isolate *isolate, A value) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:757:16: error: allocating an object of abstract class type 'GluePlatform' cargo:warning= return new GluePlatform(platform_functions); cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:212:18: note: unimplemented pure virtual method 'CurrentClockTimeMillis' in 'GluePlatform' cargo:warning= virtual double CurrentClockTimeMillis() = 0; cargo:warning= ^ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8-platform.h:225:30: note: unimplemented pure virtual method 'GetTracingController' in 'GluePlatform' cargo:warning= virtual TracingController* GetTracingController() = 0; cargo:warning= ^ cargo:warning=In file included from src/v8-glue.cc:847: cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8-rs/target/debug/build/v8-sys-612cdfcace439d82/out/v8-glue-generated.cc:2166:92: error: cannot initialize a parameter of type 'AccessorNameGetterCallback' (aka 'void (*)(Local<v8::Name>, const PropertyCallbackInfo<v8::Value> &)') with an lvalue of type 'void (*)(v8::Persistent<v8::Name, v8::NonCopyablePersistentTraits<v8::Name> > *, PropertyCallbackInfo *)': type mismatch at 1st parameter ('Local<v8::Name>' vs 'v8::Persistent<v8::Name, v8::NonCopyablePersistentTraits<v8::Name> > *') cargo:warning= auto result = self->Get(c.isolate)->SetNativeDataProperty(context_wrapped, name_wrapped, getter_wrapped, setter_wrapped, data_wrapped, attributes_wrapped); cargo:warning= ^~~~~~~~~~~~~~ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:3261:34: note: passing argument to parameter 'getter' here cargo:warning= AccessorNameGetterCallback getter, cargo:warning= ^ cargo:warning=In file included from src/v8-glue.cc:847: cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8-rs/target/debug/build/v8-sys-612cdfcace439d82/out/v8-glue-generated.cc:4492:40: error: cannot initialize a parameter of type 'FunctionCallback' (aka 'void (*)(const FunctionCallbackInfo<v8::Value> &)') with an lvalue of type 'void (*)(FunctionCallbackInfo *)': type mismatch at 1st parameter ('const FunctionCallbackInfo<v8::Value> &' vs 'FunctionCallbackInfo *') cargo:warning= self->Get(c.isolate)->SetCallHandler(callback_wrapped, data_wrapped); cargo:warning= ^~~~~~~~~~~~~~~~ cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:5572:40: note: passing argument to parameter 'callback' here cargo:warning= void SetCallHandler(FunctionCallback callback, cargo:warning= ^ cargo:warning=In file included from src/v8-glue.cc:847: cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8-rs/target/debug/build/v8-sys-612cdfcace439d82/out/v8-glue-generated.cc:5452:49: error: unknown type name 'DcheckErrorCallback'; did you mean 'v8::DcheckErrorCallback'? cargo:warning=void v8_V8_SetDcheckErrorHandler(RustContext c, DcheckErrorCallback that) { cargo:warning= ^~~~~~~~~~~~~~~~~~~ cargo:warning= v8::DcheckErrorCallback cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:6198:16: note: 'v8::DcheckErrorCallback' declared here cargo:warning=typedef void (*DcheckErrorCallback)(const char* file, int line, cargo:warning= ^ cargo:warning=In file included from src/v8-glue.cc:847: cargo:warning=/Users/pwrdwnsys/tmp_stuff/v8-rs/target/debug/build/v8-sys-612cdfcace439d82/out/v8-glue-generated.cc:5782:10: error: cannot initialize return object of type 'uint8_t *' (aka 'unsigned char *') with an lvalue of type 'const unsigned char *' cargo:warning= return unwrap(c.isolate, result); cargo:warning= ^~~~~~~~~~~~~~~~~~~~~~~~~ cargo:warning=src/v8-glue.cc:941:16: warning: unused parameter 'resource_is_embedder_debug_script' [-Wunused-parameter] cargo:warning= BooleanRef resource_is_embedder_debug_script, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1127:17: warning: unused parameter 'self' [-Wunused-parameter] cargo:warning= TemplateRef self, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1128:15: warning: unused parameter 'name' [-Wunused-parameter] cargo:warning= StringRef name, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1129:28: warning: unused parameter 'getter' [-Wunused-parameter] cargo:warning= AccessorGetterCallback getter, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1130:28: warning: unused parameter 'setter' [-Wunused-parameter] cargo:warning= AccessorSetterCallback setter, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1131:14: warning: unused parameter 'data' [-Wunused-parameter] cargo:warning= ValueRef data, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1132:23: warning: unused parameter 'attribute' [-Wunused-parameter] cargo:warning= PropertyAttribute attribute, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1133:26: warning: unused parameter 'signature' [-Wunused-parameter] cargo:warning= AccessorSignatureRef signature, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1134:19: warning: unused parameter 'settings' [-Wunused-parameter] cargo:warning= AccessControl settings) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:1176:23: warning: unused parameter 'self' [-Wunused-parameter] cargo:warning= ObjectTemplateRef self, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1177:15: warning: unused parameter 'name' [-Wunused-parameter] cargo:warning= StringRef name, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1178:28: warning: unused parameter 'getter' [-Wunused-parameter] cargo:warning= AccessorGetterCallback getter, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1179:28: warning: unused parameter 'setter' [-Wunused-parameter] cargo:warning= AccessorSetterCallback setter, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1180:14: warning: unused parameter 'data' [-Wunused-parameter] cargo:warning= ValueRef data, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1181:19: warning: unused parameter 'settings' [-Wunused-parameter] cargo:warning= AccessControl settings, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1182:23: warning: unused parameter 'attribute' [-Wunused-parameter] cargo:warning= PropertyAttribute attribute, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1183:26: warning: unused parameter 'signature' [-Wunused-parameter] cargo:warning= AccessorSignatureRef signature) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:1193:23: warning: unused parameter 'self' [-Wunused-parameter] cargo:warning= ObjectTemplateRef self, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1194:15: warning: unused parameter 'name' [-Wunused-parameter] cargo:warning= StringRef name, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1195:32: warning: unused parameter 'getter' [-Wunused-parameter] cargo:warning= AccessorNameGetterCallback getter, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1196:32: warning: unused parameter 'setter' [-Wunused-parameter] cargo:warning= AccessorNameSetterCallback setter, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1197:14: warning: unused parameter 'data' [-Wunused-parameter] cargo:warning= ValueRef data, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1198:19: warning: unused parameter 'settings' [-Wunused-parameter] cargo:warning= AccessControl settings, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1199:23: warning: unused parameter 'attribute' [-Wunused-parameter] cargo:warning= PropertyAttribute attribute, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1200:26: warning: unused parameter 'signature' [-Wunused-parameter] cargo:warning= AccessorSignatureRef signature) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:1210:23: warning: unused parameter 'self' [-Wunused-parameter] cargo:warning= ObjectTemplateRef self, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1211:22: warning: unused parameter 'callback' [-Wunused-parameter] cargo:warning= FunctionCallback callback, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1212:14: warning: unused parameter 'data' [-Wunused-parameter] cargo:warning= ValueRef data) { cargo:warning= ^ cargo:warning=src/v8-glue.cc:1222:23: warning: unused parameter 'self' [-Wunused-parameter] cargo:warning= ObjectTemplateRef self, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1223:25: warning: unused parameter 'callback' [-Wunused-parameter] cargo:warning= AccessCheckCallback callback, cargo:warning= ^ cargo:warning=src/v8-glue.cc:1224:14: warning: unused parameter 'data' [-Wunused-parameter] cargo:warning= ValueRef data) { cargo:warning= ^ cargo:warning=88 warnings and 6 errors generated. exit code: 1 --- stderr /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4166:26: error: no member named 'unique_ptr' in namespace 'std' /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4166:37: error: expected expression /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4166:53: error: expected member name or ';' after declaration specifiers /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4181:28: error: no member named 'unique_ptr' in namespace 'std' /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4181:39: error: expected expression /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4181:55: error: expected member name or ';' after declaration specifiers /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4183:25: error: unknown type name 'OwnedBuffer' /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4183:45: error: unknown type name 'OwnedBuffer' /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4186:5: error: unknown type name 'OwnedBuffer' /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4187:5: error: unknown type name 'OwnedBuffer' /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4205:3: error: unknown type name 'SerializedModule' /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4226:34: error: no type named 'OwnedBuffer' in 'v8::WasmCompiledModule::TransferrableModule' /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4184:30: error: no member named 'move' in namespace 'std' /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4184:59: error: no member named 'move' in namespace 'std' /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4248:26: error: no member named 'unique_ptr' in namespace 'std' /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4248:37: error: expected expression /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4248:53: error: expected member name or ';' after declaration specifiers /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4270:15: error: use of undeclared identifier 'Buffer' /Users/pwrdwnsys/tmp_stuff/v8/include/v8.h:4272:8: error: no type named 'shared_ptr' in namespace 'std' fatal error: too many errors emitted, stopping now [-ferror-limit=] thread 'main' panicked at ' Internal error occurred: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-I" "/Users/pwrdwnsys/tmp_stuff/v8/include" "-I" "src" "-I" "/Users/pwrdwnsys/tmp_stuff/v8-rs/target/debug/build/v8-sys-612cdfcace439d82/out" "-std=c++11" "-Wall" "-Wall" "-Wextra" "-o" "/Users/pwrdwnsys/tmp_stuff/v8-rs/target/debug/build/v8-sys-612cdfcace439d82/out/src/v8-glue.o" "-c" "src/v8-glue.cc" with args "c++" did not execute successfully (status code exit code: 1). ', /Users/pwrdwnsys/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.54/src/lib.rs:1670:4 stack backtrace: 0: std::sys::imp::backtrace::tracing::imp::unwind_backtrace at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49 1: std::sys_common::backtrace::_print at src/libstd/sys_common/backtrace.rs:71 2: std::panicking::default_hook::{{closure}} at src/libstd/sys_common/backtrace.rs:60 at src/libstd/panicking.rs:381 3: std::panicking::default_hook at src/libstd/panicking.rs:397 4: std::panicking::begin_panic at src/libstd/panicking.rs:577 5: std::panicking::begin_panic at src/libstd/panicking.rs:538 6: std::panicking::try::do_call at src/libstd/panicking.rs:522 7: gcc::fail at /Users/pwrdwnsys/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.54/src/lib.rs:1670 8: gcc::Build::try_compile::{{closure}} at /Users/pwrdwnsys/.cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.54/src/lib.rs:783 9: build_script_build::build_glue at v8-sys/build.rs:232 10: build_script_build::main at v8-sys/build.rs:51 11: panic_unwind::dwarf::eh::read_encoded_pointer at src/libpanic_unwind/lib.rs:99 12: <std::rand::reader::ReaderRng<R> as rand::Rng>::fill_bytes at src/libstd/panicking.rs:459 at src/libstd/panic.rs:361 at src/libstd/rt.rs:59 13: <v8_api::Type as build_script_build::DisplayAsC>::fmt
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I appreciate that this was likely to fail, but thought I'd report findings for reference.
The V8 build completes and tests run successfully. I then try running the v8-rs hello-world example using
rustc 1.22.0-nightly (6c476ce46 2017-09-25)
:The text was updated successfully, but these errors were encountered: