Re: [v8-users] V8 build failing
quot; "--no-checkout" "--progress" "http://googletest.googlecode.com/svn/trunk; "/go/v8.tmp/v8/testing/_gclient_gtest_eu1TiD"' in /go/v8.tmp failed; will retry after a short nap... 4>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" "--no-checkout" "--progress" "http://googlemock.googlecode.com/svn/trunk; "/go/v8.tmp/v8/testing/_gclient_gmock_s71sNl"' in /go/v8.tmp failed; will retry after a short nap... 6>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "--prune"' in /go/v8.tmp/v8/third_party/icu failed; will retry after a short nap... [91m v8/build/gyp (ERROR) [0:00:00] Started. [0:00:00] running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress http://gyp.googlecode.com/svn/trunk /go/v8.tmp/v8/build/_gclient_gyp_EePdtR' in '/go/v8.tmp' [0:00:00] Cloning into '/go/v8.tmp/v8/build/_gclient_gyp_EePdtR'... [0:00:00] fatal: repository 'http://gyp.googlecode.com/svn/trunk/' not found [0:00:00] running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress http://gyp.googlecode.com/svn/trunk /go/v8.tmp/v8/build/_gclient_gyp_EePdtR' in '/go/v8.tmp' attempt 2 / 4 [0:00:00] Cloning into '/go/v8.tmp/v8/build/_gclient_gyp_EePdtR'... [0:00:00] fatal: repository 'http://gyp.googlecode.com/svn/trunk/' not found [0:00:01] running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress http://gyp.googlecode.com/svn/trunk /go/v8.tmp/v8/build/_gclient_gyp_EePdtR' in '/go/v8.tmp' attempt 3 / 4 [0:00:01] Cloning into '/go/v8.tmp/v8/build/_gclient_gyp_EePdtR'... [0:00:01] fatal: repository 'http://gyp.googlecode.com/svn/trunk/' not found [0:00:03] running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress http://gyp.googlecode.com/svn/trunk /go/v8.tmp/v8/build/_gclient_gyp_EePdtR' in '/go/v8.tmp' attempt 4 / 4 [0:00:03] Cloning into '/go/v8.tmp/v8/build/_gclient_gyp_EePdtR'... [0:00:03] fatal: repository 'http://gyp.googlecode.com/svn/trunk/' not found Traceback (most recent call last): File "/go/depot_tools/gclient_scm.py", line 1045, in _Clone print_stdout=print_stdout, filter_fn=filter_fn) File "/go/depot_tools/gclient_scm.py", line 1369, in _Run gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs) File "/go/depot_tools/gclient_utils.py", line 620, in CheckCallAndFilter rv, args, kwargs.get('cwd', None), None, None) CalledProcessError: Command 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress http://gyp.googlecode.com/svn/trunk /go/v8.tmp/v8/build/_gclient_gyp_EePdtR' returned non-zero exit status 128 in /go/v8.tmp Traceback (most recent call last): File "/go/depot_tools/metrics.py", line 267, in print_notice_and_exit [0m [91myield File "/go/depot_tools/gclient.py", line 3152, in sys.exit(main(sys.argv[1:])) File "/go/depot_tools/gclient.py", line 3138, in main return dispatcher.execute(OptionParser(), argv) File "/go/depot_tools/subcommand.py", line 252, in execute [0m [91mreturn command(parser, args[1:]) File "/go/depot_tools/gclient.py", line 2695, in CMDsync ret = client.RunOnDeps('update', args) File "/go/depot_tools/gclient.py", line 1733, in RunOnDeps patch_refs=patch_refs, target_branches=target_branches) File "/go/depot_tools/gclient_utils.py", line 911, in flush reraise(e[0], e[1], e[2]) File "/go/depot_tools/gclient_utils.py", line 988, in run self.item.run(*self.args, **self.kwargs) File "/go/depot_tools/gclient.py", line 910, in run file_list) File "/go/depot_tools/gclient_scm.py", line 132, in RunCommand return getattr(self, command)(options, args, file_list) File "/go/depot_tools/gclient_scm.py", line 547, in update self._Clone(revision, url, options) File "/go/depot_tools/gclient_scm.py", line 1053, in _Clone if os.listdir(tmp_dir): OSError: [Errno 2] No such file or directory: '/go/v8.tmp/v8/build/_gclient_gyp_EePdtR' [0m [91m+ V8_TMP_finish + rm -rf /go/v8.tmp [0mThe command '/bin/sh -c /tmp/build.v8.sh' returned a non-zero code: 1 Build step 'Execute shell' marked build as failure Archiving artifacts Finished: FAILURE Thanks, Mani On Wed, Sep 25, 2019 at 1:55 AM Jakob Kummerow wrote: > First off, version 3.28.71 is *very outdated*. It hasn't been touched in > five years. If it suddenly stopped working for you, then that's certainly > not due to a change in V8. > > Also, 3.28.71 is not a good version to pick. If you must use a > five-year-old version, then you should at least pick branch-heads/3.28, > which has 19 backmerged (=i
[v8-users] Crash cause?
Hi, I am fairly new to V8 and I am trying to build an application with V8. It results in a crash and I am not sure about the cause of it. ScavengePointer seems to look like Garbage Collection issue but I am not sure if that's the real cause. Can someone please help me out? Thanks in advance! -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[v8-users] How do I load a .js file into my v8 C++ program?
I find that the given example program compiles and executes a simple Javascript program supplied as a string. However, I want to compile a .js file with multiple functions. How can I do this? -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [v8-users] Partially executing a Javascript file in v8 c++ program
This gave me a good head start. However, my program crashes at function->Call statement. Can you please tell me what values function_value, function_name and function are supposed to take.I have also populated argv with random values since I am not using them in my function. If that could also be a reason for the crash, please let me know. This is my JS code : Local source = *String::NewFromUtf8(isolate, "'function test_function() {var match = 0; return match+10;}'",* * NewStringType::kNormal).ToLocalChecked();* *Thanks,* *Kavin* On Friday, August 4, 2017 at 3:29:23 PM UTC-7, Jeremy Bettis wrote: > > What I do to call a function is to use > > v8::Local function_value; > context->Global()->Get(context, function_name).ToLocal(_value); > v8::Local function = > v8::Local::Cast(function_value); > const int argc = arguments.size(); > std::vector<v8::Local> argv(argc); > // populate the argv somehow > function->Call(context, context->Global(), argc, argv.data()); > > On Fri, Aug 4, 2017 at 4:17 PM, Kavin Mani <kavin...@gmail.com > > wrote: > >> Hi, >> >> I am new to V8 engine and starting to experiment things. I am wondering >> if it is possible to execute different functions from a Javascript file at >> different times. >> >> Consider the following scenario: >> >> I have a Javascript file with a global variable *foo *and two functions >> *func1() *and *func2().* Something like this: >> >> *Test.js:* >> >> var foo = 0; >> >> function func1() { >> foo = 100; >> } >> >> function func2() { >> return foo + 10; >> } >> >> In my *cpp* file, I want to first execute *func1() *from Test.js*, *print >> some random statements (need not be related to using *foo*) and then >> call *func2()*. Finally, I want to print the value of *foo *in my C++ >> program. Here is what I want to do - >> >> *Test.cpp* >> >> Print some statements... >> >> Call func1() >> >> Print some more statements... >> >> Call func2() >> >> Print the value of foo >> >> >> Almost all of the examples that I could find takes the Javascript program >> as a string and executes it completely. However, I want to execute them in >> parts at different times. Can someone please help me to find a way to do >> this? >> >> Thanks, >> Kavin >> >> -- >> -- >> v8-users mailing list >> v8-u...@googlegroups.com >> http://groups.google.com/group/v8-users >> --- >> You received this message because you are subscribed to the Google Groups >> "v8-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to v8-users+u...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Jeremy Bettis | Staff Software Engineer | jbe...@google.com > | 303-257-2486 > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[v8-users] Partially executing a Javascript file in v8 c++ program
Hi, I am new to V8 engine and starting to experiment things. I am wondering if it is possible to execute different functions from a Javascript file at different times. Consider the following scenario: I have a Javascript file with a global variable *foo *and two functions *func1() *and *func2().* Something like this: *Test.js:* var foo = 0; function func1() { foo = 100; } function func2() { return foo + 10; } In my *cpp* file, I want to first execute *func1() *from Test.js*, *print some random statements (need not be related to using *foo*) and then call *func2()*. Finally, I want to print the value of *foo *in my C++ program. Here is what I want to do - *Test.cpp* Print some statements... Call func1() Print some more statements... Call func2() Print the value of foo Almost all of the examples that I could find takes the Javascript program as a string and executes it completely. However, I want to execute them in parts at different times. Can someone please help me to find a way to do this? Thanks, Kavin -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.