[v8-users] Tips for SIMD optimization of code

2019-09-25 Thread Piyush Katariya
How aggressively V8 optimizes the JS code to translate into SIMD 
instructions (AVX, SSE, MMX etc) under the hood?

I am not interested in SIMD.js project. I am interested in the code 
patterns which V8 JIT see as legit for data parallelization using SIMD 
depending upon host CPU architecture.

Any detailed guide or blog will be helpful for me.


Thanks

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/2eeedc4e-af40-4911-9cdd-ef909705a897%40googlegroups.com.


Re: [v8-users] V8 build failing

2019-09-25 Thread Manikandan Kaliyaperumal
Hello,

Thanks for thorwing some light on this. So, we decided to move to the 
version you recommended, 7.7. But, it still fails with some "no rule" 
error. I just updated the VERSION=7.7 and ran it as is. Do i need to make 
any adjustments in the build.v8.sh or elsewhere? Please let me know.



[0:03:08] Still working on:
[0:03:08]   v8

Running: gclient root
Running: gclient config --spec 'solutions = [
  {
"url": "https://chromium.googlesource.com/v8/v8.git;,
"managed": False,
"name": "v8",
"deps_file": "DEPS",
"custom_deps": {},
  },
]
'
Running: gclient sync --nohooks --with_branch_heads
Running: git submodule foreach 'git config -f $toplevel/.git/config 
submodule.$name.ignore all'
Running: git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*'
Running: git config diff.ignoreSubmodules all
 [91m+ pushd v8
 [0m/go/v8.tmp/v8 /go/v8.tmp /go /go/src/github.com/Runscope/script-processor

 [91m+ git checkout branch-heads/7.7
 [0m [91mPrevious HEAD position was 1a92c98... PPC/s390: [ptr-compr] Switch to 
31 bit Smis on 64-bit architectures
 [0m [91mHEAD is now at 027689d... Version 7.7.299.11
 [0m [91m+ gclient sync

 [0m running 'vpython 
v8/third_party/depot_tools/update_depot_tools_toggle.py --disable' in 
'/go/v8.tmp'

Hook 'vpython v8/third_party/depot_tools/update_depot_tools_toggle.py 
--disable' took 13.08 secs

 running 'vpython v8/build/landmines.py --landmine-scripts 
v8/tools/get_landmines.py' in '/go/v8.tmp'

 running 'download_from_google_storage --no_resume --platform=linux* 
--no_auth --bucket chromium-clang-format -s 
v8/buildtools/linux64/clang-format.sha1' in '/go/v8.tmp'
0> Downloading v8/buildtools/linux64/clang-format...
Downloading 1 files took 23.798234 second(s)
Hook 'download_from_google_storage --no_resume '--platform=linux*' --no_auth 
--bucket chromium-clang-format -s v8/buildtools/linux64/clang-format.sha1' took 
23.87 secs

 running 'download_from_google_storage --no_resume --no_auth -u 
--bucket v8-wasm-spec-tests -s v8/test/wasm-spec-tests/tests.tar.gz.sha1' in 
'/go/v8.tmp'
0> Downloading v8/test/wasm-spec-tests/tests.tar.gz...
0> Extracting 224 entries from v8/test/wasm-spec-tests/tests.tar.gz to 
v8/test/wasm-spec-tests/tests
Downloading 1 files took 6.936039 second(s)

 running 'vpython v8/build/linux/sysroot_scripts/install-sysroot.py 
--arch=x86' in '/go/v8.tmp'
Installing Debian sid i386 root image: 
/go/v8.tmp/v8/build/linux/debian_sid_i386-sysroot
Downloading 
https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/9e6279438ece6fb42b5333ca90d5e9d0c188a403/debian_sid_i386_sysroot.tar.xz
Hook 'vpython v8/build/linux/sysroot_scripts/install-sysroot.py --arch=x86' 
took 11.58 secs

 running 'vpython v8/build/linux/sysroot_scripts/install-sysroot.py 
--arch=x64' in '/go/v8.tmp'
Installing Debian sid amd64 root image: 
/go/v8.tmp/v8/build/linux/debian_sid_amd64-sysroot
Downloading 
https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/e7c53f04bd88d29d075bfd1f62b073aeb69cbe09/debian_sid_amd64_sysroot.tar.xz

 running 'vpython v8/third_party/binutils/download.py' in '/go/v8.tmp'

0> Downloading /go/v8.tmp/v8/third_party/binutils/Linux_x64/binutils.tar.bz2...
Downloading 1 files took 6.474529 second(s)
Downloading /go/v8.tmp/v8/third_party/binutils/Linux_x64/binutils.tar.bz2
Extracting /go/v8.tmp/v8/third_party/binutils/Linux_x64/binutils.tar.bz2

 running 'vpython v8/tools/clang/scripts/update.py' in '/go/v8.tmp'
Downloading 
https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64/clang-365097-f7e52fbd-6.tgz
 .. Done.
 running 'vpython v8/build/util/lastchange.py -o 
v8/build/util/LASTCHANGE' in '/go/v8.tmp'
 [91m+ popd
 [0m/go/v8.tmp /go /go/src/github.com/Runscope/script-processor
 [91m+ popd
 [0m/go /go/src/github.com/Runscope/script-processor
 [91m+ mv /go/v8.tmp/v8 /go/v8-7.7
 [0m [91m+ V8_TMP_finish
+ rm -rf /go/v8.tmp
 [0m/go/v8-7.7 /go /go/src/github.com/Runscope/script-processor
/go/v8-7.7/build /go/v8-7.7 /go /go/src/github.com/Runscope/script-processor
/go/v8-7.7/build
 [91m+ pushd /go/v8-7.7
+ pushd build

 [91m+ git clone https://chromium.googlesource.com/external/gyp
 [0mCloning into 'gyp'...

 [91m+ popd
 [0m [91m+ cp /go/src/github.com/Runscope/script-processor/v8.h 
/go/v8-7.7/include/v8.h
 [0m/go/v8-7.7 /go /go/src/github.com/Runscope/script-processor
 [91m+ CXXFLAGS=-Wno-unused-function
+ make i18nsupport=off native
 [0m [91mmake: *** No rule to make target `native'.  Stop.
 [0m [91m+ V8_TMP_finish
+ rm -rf /go/v8.tmp

 [0mThe command '/bin/sh -c /tmp/build.v8.sh' returned a non-zero code: 2
Build step 'Execute shell' marked build as failure

Archiving artifacts

Finished: FAILURE


Thanks,
Mani

On Wednesday, September 25, 2019 at 2:58:03 AM UTC-7, Jakob Kummerow wrote:
>
> Ah. These errors make sense, *.googlecode.com doesn't exist any more. 
> You'll have to figure out where to get those 

[v8-users] Replacing constructor function

2019-09-25 Thread Darin Dimitrov
I am embedding V8 and I have the following javascript:

var TSObject = (function (_super) {
__extends(TSObject, _super);
function TSObject() {
return _super !== null && _super.apply(this, arguments) || this;
}
return TSObject;
}(String));

As an embedder, I have registered the custom "__extends" function on the 
global object and my C++ callback is successfully invoked. 

My purpose is to be able to intercept the instantiation of such objects:

var obj = new TSObject();

and to alter the type of js objects returned from the TSObject constructor 
(ideally by invoking some user provided C++ callback). Can such a hook be 
achieved from inside the "__extends" callback?

The closest I could get is provide custom constructors for the base class 
but when the "_super.apply(this, arguments)" call is made, I am losing the 
information about TSObject and I only have access to the base class.

Is there some way that I could walk the call frames and replace this 
constructor or reach the TSObject function so that I have information about 
this type? 

I can get the current callstack by using "v8::StackTrace::CurrentStackTrace" 
but this only gives me the function name as Local and I cannot 
reach the actual Local from this frame.

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/959f2a23-5dd1-49fa-81c8-62b0b483ea4d%40googlegroups.com.


Re: [v8-users] NewDefaultPlatform() unresolved external symbol

2019-09-25 Thread Joe Smack
I followed the instructions. I've tried several different setups and it 
just seems to me that V8's debug setup is screwed up. (Release build is 
fine.)

On Monday, September 23, 2019 at 1:41:12 AM UTC-7, Jakob Kummerow wrote:
>
> Does it help if you follow the instructions ? 
> Specifically the part where it suggests to build v8_monolith and then link 
> against exactly that one library.
>
> Does #pragma comment(lib, "v8_libplatform.dll.lib") mean that you're 
> actually linking against v8_libplatform?
>
>
> On Sun, Sep 22, 2019 at 2:33 PM Joe Smack  > wrote:
>
>> Can anyone please help me resolve this? I can't get rid of this error :\
>>
>>
>> I'm using version 7.7.299.11 of v8 and latest version of msvc.
>>
>> args.gn file
>> is_component_build = false
>> is_debug = false
>> symbol_level = 1
>> target_cpu = "x64"
>> use_goma = false
>>
>>
>> My code:
>> #include 
>> #include 
>> #include 
>> #include 
>>
>> #include 
>> #include 
>>
>> #pragma comment(lib, "v8.dll.lib")
>> #pragma comment(lib, "v8_libbase.dll.lib")
>> #pragma comment(lib, "v8_libplatform.dll.lib")
>> #pragma comment(lib, "icui18n.dll.lib")
>> #pragma comment(lib, "icuuc.dll.lib")
>> #pragma comment(lib, "wee8.lib")
>>
>>
>> int main()
>> {
>> if (v8::V8::InitializeICUDefaultLocation("v8 hello world.exe", 
>> "icudtl.dat") == false)
>> return 0;
>>
>> v8::V8::InitializeExternalStartupData("natives_blob.bin", 
>> "snapshot_blob.bin");
>>
>>
>> std::unique_ptr platform = 
>> v8::platform::NewDefaultPlatform();
>>
>> return 0;
>> }
>>
>> My error:
>> Severity Code Description Project File Line Suppression State
>> Error LNK2019 unresolved external symbol "class std::unique_ptr> v8::Platform,struct std::default_delete > 
>> __cdecl v8::platform::NewDefaultPlatform(int,enum 
>> v8::platform::IdleTaskSupport,enum 
>> v8::platform::InProcessStackDumping,class 
>> std::unique_ptr> std::default_delete >)" 
>>
>> (?NewDefaultPlatform@platform@v8@@YA?AV?$unique_ptr@VPlatform@v8@@U?$default_delete@VPlatform@v8@@@std@@@std@@HW4IdleTaskSupport@12@W4InProcessStackDumping@12@V?
>> $unique_ptr@VTracingController@v8@@U?$default_delete@VTracingController@v8@@@std@@@4@@Z)
>>  
>> referenced in function main v8 test app 
>> C:\Users\Documents\Visual Studio 2019\projects\v8 test app\v8 test app\v8 
>> test app.obj 1 
>>
>> -- 
>>
>

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/36252d92-bdaa-4742-bc71-07de0ede30ec%40googlegroups.com.


Re: [v8-users] V8 build failing

2019-09-25 Thread Jakob Kummerow
Ah. These errors make sense, *.googlecode.com doesn't exist any more.
You'll have to figure out where to get those dependencies (at the
right versions!) nowadays. After putting them all in the right places, run
"gclient runhooks" instead of "gclient sync" (which usually implies the
former).

If all the archeology ends up taking too much time, your alternative is to
update to a non-ancient version of V8, where everything works out of the
box.


On Wed, Sep 25, 2019 at 11:50 AM Mani  wrote:

> Hello,
>
> Thanks for the reply and suggestions.
>
> Per your suggestion, picked branch-heads/3.28 and reordered "gclient
> sync", both gives the below error. It says SVN/trunk not available. Am i
> doing something wrong? Please let me know.
>
> # VERSION=3.28.71
> VERSION=3.28
> pushd v8
> git checkout branch-heads/$VERSION
> #git pull origin $VERSION
> #gclient sync
> #git checkout $VERSION
> gclient sync
> popd
>
>
> Running: gclient sync --nohooks --with_branch_heads
> Running: git submodule foreach 'git config -f $toplevel/.git/config 
> submodule.$name.ignore all'
> Running: git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*'
> Running: git config diff.ignoreSubmodules all
>  [91m+ pushd v8
>  [0m/go/v8.tmp/v8 /go/v8.tmp /go /go/src/github.com/Runscope/script-processor
>  [91m+ git checkout branch-heads/3.28
>  [0m [91mPrevious HEAD position was 0f15403... [cleanup] Move string 
> functions out of CSA
>  [0m [91mHEAD is now at 4dbc223... Version 3.28.71.19 (merged r23127)
>  [0m [91m+ gclient sync
>  [0m2>WARNING: subprocess '"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 failed; will retry 
> after a short nap...
> 5>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" 
> "--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...
> 2>WARNING: subprocess '"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 failed; will retry 
> after a short nap...
> 5>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" 
> "--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...
> 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...
> 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...
> 2>WARNING: subprocess '"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 failed; will retry 
> after a short nap...
> 5>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" 
> "--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...
> 2>WARNING: subprocess '"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 failed; will retry 
> after a short nap...
> 5>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "clone" 
> "--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; 
> 

Re: [v8-users] V8 build failing

2019-09-25 Thread Mani
Hello,

Thanks for the reply and suggestions.

Per your suggestion, picked branch-heads/3.28 and reordered "gclient sync",
both gives the below error. It says SVN/trunk not available. Am i doing
something wrong? Please let me know.

# VERSION=3.28.71
VERSION=3.28
pushd v8
git checkout branch-heads/$VERSION
#git pull origin $VERSION
#gclient sync
#git checkout $VERSION
gclient sync
popd


Running: gclient sync --nohooks --with_branch_heads
Running: git submodule foreach 'git config -f $toplevel/.git/config
submodule.$name.ignore all'
Running: git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*'
Running: git config diff.ignoreSubmodules all
 [91m+ pushd v8
 [0m/go/v8.tmp/v8 /go/v8.tmp /go /go/src/github.com/Runscope/script-processor
 [91m+ git checkout branch-heads/3.28
 [0m [91mPrevious HEAD position was 0f15403... [cleanup] Move string
functions out of CSA
 [0m [91mHEAD is now at 4dbc223... Version 3.28.71.19 (merged r23127)
 [0m [91m+ gclient sync
 [0m2>WARNING: subprocess '"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 failed; will
retry after a short nap...
5>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g"
"clone" "--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...
2>WARNING: subprocess '"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 failed; will
retry after a short nap...
5>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g"
"clone" "--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...
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...
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...
2>WARNING: subprocess '"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 failed; will
retry after a short nap...
5>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g"
"clone" "--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...
2>WARNING: subprocess '"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 failed; will
retry after a short nap...
5>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g"
"clone" "--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]
 

Re: [v8-users] V8 build failing

2019-09-25 Thread Jakob Kummerow
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 (=important) fixes on top of the 3.28.71 base
version. Even better, update to something more recent. branch-heads/7.7
would be a good candidate right now.

One thing I noticed in your build script is that you should run "gclient
sync" *after* "git checkout $VERSION". Fixing that might just be enough to
solve this issue.

I don't remember how we got dependencies back in those days. I think we ran
"make dependencies", or maybe that was in even earlier years. I'm pretty
sure we didn't manually clone gyp.

/go/v8-3.28.71/out/native/obj.target/gtest/testing/gtest/src/gtest-death-test.o:
> No such file or directory

That's your clue for where to dig deeper.

we are not much familiar with the C++ GN way of code building

3.28 is so old, it doesn't use GN.


On Wed, Sep 25, 2019 at 10:13 AM Manikandan Kaliyaperumal <
rkman...@gmail.com> wrote:

> Hello,
>
> I have been struggling with this V8 build fail for a day or two now and
> any help on this would be much appreciated.
>
> We use V8 version in our project.for a script process engine. It suddenly
> stopped working and build fails.
>
>   CXX(target) 
> /go/v8-3.28.71/out/native/obj.target/v8_snapshot/gen/experimental-libraries.o
>   CXX(target) /go/v8-3.28.71/out/native/obj.target/v8_snapshot/geni/snapshot.o
>   CXX(target) 
> /go/v8-3.28.71/out/native/obj.target/v8_snapshot/src/snapshot-common.o
>   AR(target) /go/v8-3.28.71/out/native/obj.target/tools/gyp/libv8_snapshot.a
>   TOUCH /go/v8-3.28.71/out/native/obj.target/tools/gyp/v8.stamp
>   CXX(target) /go/v8-3.28.71/out/native/obj.target/shell/samples/shell.o
>   LINK(target) /go/v8-3.28.71/out/native/shell
>   CXX(target) /go/v8-3.28.71/out/native/obj.target/process/samples/process.o
>   LINK(target) /go/v8-3.28.71/out/native/process
>   CXX(target) 
> /go/v8-3.28.71/out/native/obj.target/lineprocessor/samples/lineprocessor.o
>   LINK(target) /go/v8-3.28.71/out/native/lineprocessor
>   ACTION src_d8_gyp_d8_js2c_target_d8_js2c 
> /go/v8-3.28.71/out/native/obj/gen/d8-js.cc
>   TOUCH /go/v8-3.28.71/out/native/obj.target/src/d8_js2c.stamp
>   CXX(target) /go/v8-3.28.71/out/native/obj.target/d8/src/d8.o
>   CXX(target) /go/v8-3.28.71/out/native/obj.target/d8/src/d8-posix.o
>   CXX(target) /go/v8-3.28.71/out/native/obj.target/d8/src/d8-debug.o
>   CXX(target) /go/v8-3.28.71/out/native/obj.target/d8/gen/d8-js.o
>   LINK(target) /go/v8-3.28.71/out/native/d8
>   TOUCH /go/v8-3.28.71/out/native/obj.target/testing/gtest_prod.stamp
>   AR(target) /go/v8-3.28.71/out/native/obj.target/testing/libgtest.a
>  [91mar: 
> /go/v8-3.28.71/out/native/obj.target/gtest/testing/gtest/src/gtest-death-test.o:
>  No such file or directory
>  [0m [91mmake[1]: *** 
> [/go/v8-3.28.71/out/native/obj.target/testing/libgtest.a] Error 1
>  [0mmake[1]: Leaving directory `/go/v8-3.28.71/out'
>  [91mmake: *** [native] Error 2
>  [0m [91m+ V8_TMP_finish
>  [0m [91m+ rm -rf /go/v8.tmp
>  [0mThe command '/bin/sh -c /tmp/build.v8.sh' returned a non-zero code: 2
> Build step 'Execute shell' marked build as failure
> Archiving artifacts
> Finished: FAILURE
>
>
> Herewith, i am sharing my build.v8.sh and Docker file for your reference and 
> any pointers on this would be helpful as we are not much familiar with the 
> C++ GN way of code building here.
>
>
> Thanks,
>
> Mani
>
> --
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/v8-users/045faaa3-f1e5-482d-9a58-aa3656e11a7b%40googlegroups.com
> 
> .
>

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/CAKSzg3RSojZNrBFHP3reSkx0mFrROqmoP3pgUHwkccEw7Pv61g%40mail.gmail.com.


[v8-users] V8 build failing

2019-09-25 Thread Manikandan Kaliyaperumal
Hello,

I have been struggling with this V8 build fail for a day or two now and any 
help on this would be much appreciated.

We use V8 version in our project.for a script process engine. It suddenly 
stopped working and build fails.

  CXX(target) 
/go/v8-3.28.71/out/native/obj.target/v8_snapshot/gen/experimental-libraries.o
  CXX(target) /go/v8-3.28.71/out/native/obj.target/v8_snapshot/geni/snapshot.o
  CXX(target) 
/go/v8-3.28.71/out/native/obj.target/v8_snapshot/src/snapshot-common.o
  AR(target) /go/v8-3.28.71/out/native/obj.target/tools/gyp/libv8_snapshot.a
  TOUCH /go/v8-3.28.71/out/native/obj.target/tools/gyp/v8.stamp
  CXX(target) /go/v8-3.28.71/out/native/obj.target/shell/samples/shell.o
  LINK(target) /go/v8-3.28.71/out/native/shell
  CXX(target) /go/v8-3.28.71/out/native/obj.target/process/samples/process.o
  LINK(target) /go/v8-3.28.71/out/native/process
  CXX(target) 
/go/v8-3.28.71/out/native/obj.target/lineprocessor/samples/lineprocessor.o
  LINK(target) /go/v8-3.28.71/out/native/lineprocessor
  ACTION src_d8_gyp_d8_js2c_target_d8_js2c 
/go/v8-3.28.71/out/native/obj/gen/d8-js.cc
  TOUCH /go/v8-3.28.71/out/native/obj.target/src/d8_js2c.stamp
  CXX(target) /go/v8-3.28.71/out/native/obj.target/d8/src/d8.o
  CXX(target) /go/v8-3.28.71/out/native/obj.target/d8/src/d8-posix.o
  CXX(target) /go/v8-3.28.71/out/native/obj.target/d8/src/d8-debug.o
  CXX(target) /go/v8-3.28.71/out/native/obj.target/d8/gen/d8-js.o
  LINK(target) /go/v8-3.28.71/out/native/d8
  TOUCH /go/v8-3.28.71/out/native/obj.target/testing/gtest_prod.stamp
  AR(target) /go/v8-3.28.71/out/native/obj.target/testing/libgtest.a
 [91mar: 
/go/v8-3.28.71/out/native/obj.target/gtest/testing/gtest/src/gtest-death-test.o:
 No such file or directory
 [0m [91mmake[1]: *** [/go/v8-3.28.71/out/native/obj.target/testing/libgtest.a] 
Error 1
 [0mmake[1]: Leaving directory `/go/v8-3.28.71/out'
 [91mmake: *** [native] Error 2
 [0m [91m+ V8_TMP_finish
 [0m [91m+ rm -rf /go/v8.tmp
 [0mThe command '/bin/sh -c /tmp/build.v8.sh' returned a non-zero code: 2
Build step 'Execute shell' marked build as failure
Archiving artifacts
Finished: FAILURE


Herewith, i am sharing my build.v8.sh and Docker file for your reference and 
any pointers on this would be helpful as we are not much familiar with the C++ 
GN way of code building here.


Thanks,

Mani

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/045faaa3-f1e5-482d-9a58-aa3656e11a7b%40googlegroups.com.


Dockerfile
Description: Binary data
#!/usr/bin/env bash

set -e -x -o pipefail

v8_pc=src/github.com/Runscope/script-processor/script-processor/v8/v8.pc

if [ -z "$WORKSPACE" ]
then
WORKSPACE=$RUNSCOPE_HOME
v8_pc=$RUNSCOPE_HOME/go/$v8_pc
else
v8_pc=$WORKSPACE/$v8_pc
fi

if [ -n "$_SCRIPT_PROCESSOR_V8_PC" ]
then
  v8_pc=$_SCRIPT_PROCESSOR_V8_PC
fi

if [ -z "$WORKSPACE" ]
then
cat <<_END_
*** $0: Aborting v8 build: neither \$WORKSPACE nor \$RUNSCOPE_HOME are set!
_END_
exit 1
fi

VERSION=3.31.1
VERSION=3.28.71

BASE=$WORKSPACE/v8
BASE_VERSION=$BASE-$VERSION

CXXFLAGS="-Wno-unused-function"

if  go env | grep 'GOHOSTOS="darwin"'; then
	pushd /usr/local/lib
	if [ ! -e libgcc_s.10.5.dylib ]
	then
		sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.5.dylib
	fi
	popd
fi

# We check if we're on El Capitan here (10.11) to see if we need to pass
# an extra flag to clang (via CXXFLAGS) because clang on El Capitan is more
# strict than previous versions
if command -v sw_vers
then
productVersion=$(sw_vers -productVersion)
if [[ $productVersion = 10.11.* ]]
then
CXXFLAGS="-Wno-inconsistent-missing-override -Wno-undefined-var-template"
fi
fi

if command -v sw_vers
then
productVersion=$(sw_vers -productVersion)
if [[ $productVersion = 10.12.* ]]
then
CXXFLAGS="-Wno-inconsistent-missing-override -Wno-undefined-var-template"
fi
fi

if command -v sw_vers
then
productVersion=$(sw_vers -productVersion)
if [[ $productVersion = 10.13.* ]]
then
CXXFLAGS="-Wno-inconsistent-missing-override -Wno-undefined-var-template"
fi
fi

if [ ! -d $BASE_VERSION ]
then
pushd $WORKSPACE

V8_TMP=$WORKSPACE/v8.tmp

if [ -e $V8_TMP ]
then
echo "*** $V8_TMP already exists; is another process already building v8? Aborting!"
exit 1
fi

mkdir -p $V8_TMP

function V8_TMP_finish {
rm -rf $V8_TMP
}
trap V8_TMP_finish EXIT

if [ ! -d depot_tools ]
then
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
fi
export PATH=$WORKSPACE/depot_tools:$PATH