Package Details: v8 7.2.502.25-1

Git Clone URL: https://aur.archlinux.org/v8.git (read-only)
Package Base: v8
Description: Fast and modern Javascript engine used in Google Chrome.
Upstream URL: https://v8.dev
Keywords: dev engine javascript
Licenses: BSD
Conflicts: v8-3.14, v8-3.15, v8-3.20, v8-static-gyp, v8-static-gyp-5.4
Submitter: anatolik
Maintainer: marcs
Last Packager: marcs
Votes: 14
Popularity: 1.864801
First Submitted: 2015-07-01 16:14
Last Updated: 2019-02-06 14:42

Pinned Comments

marcs commented on 2017-06-21 11:19

Some notes:
* Prefer yaourt instead of pacaur (pacaur works now, but it hides lots of feedback to the user).
* gclient has to download the whole V8 repo, it takes some time to complete (depending on your internet connection).
* This package requires around 3/4 gigs of space so be sure to have a large enough /tmp partition if you use yaourt, also be aware that pacaur will save this package in ~/.cache/pacaur/v8, so be sure to have a /home partition with enough space.
* The build and testing process takes some time, I recommend to use at least a 4 cores with 8 threads cpu, better an 8 cores 16 threads cpu.
* If you have at least 32GB of RAM you can use a ram partition to speed up the build process (yaourt uses /tmp by default).

Build status:
* Working with gcc7.

Latest Comments

1 2 3 4 5 6 ... Next › Last »

marcs commented on 2019-03-25 15:53

@znmeb you can limit the number of threads from your makepkg.conf file.

For the rest of the building errors you can change the version using one listen on the V8 branches from:

https://chromium.googlesource.com/v8/v8.git/+log/branch-heads/7.4

just change the pkgver variable and you are good to go.

This package is not suited for community IMO, the PKGBUILD is heavily documented to let it know the user that this package needs some configuration (sometimes), the default parameters is what i generally use and it should generally works.

I'm gonna update the PKGBUILD with the missing deps, thanks everyone.

jathroppaPH commented on 2019-03-25 07:58

I am installing this package but it cannot complete the installation.

In file included from ../../src/inspector/v8-inspector-impl.cc:41:
../../src/inspector/v8-debugger-agent-impl.h:124:44: internal compiler error: Segmentation fault
   bool enabled() const { return m_enabled; }
                                            ^
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
[230/1604] CXX obj/src/inspector/inspector/v8-profiler-agent-impl.o
[231/1604] CXX obj/src/inspector/inspector/v8-inspector-session-impl.o
[232/1604] CXX obj/src/inspector/inspector/value-mirror.o
[233/1604] CXX obj/src/inspector/inspector/v8-runtime-agent-impl.o
[234/1604] ACTION //:run_torque(//build/toolchain/linux:x64)
[235/1604] CXX obj/third_party/googletest/gtest/gtest-matchers.o
[236/1604] CXX obj/third_party/googletest/gtest/gtest-printers.o
[237/1604] CXX obj/third_party/googletest/gtest/gtest.o
[238/1604] SOLINK ./libv8_libplatform.so
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...

I used the PKGBUILD from here: https://gist.github.com/JanMarvin/61ee142b21c394f5c67a55df4f960adc

This is the full installation report in my system: https://gist.github.com/jethroppaPH/6a40453cc262d32e99bdb3437accbefb

JanMarvin commented on 2019-03-15 14:39

@zbraniecki you need to install the icudtl.dat file. Can be done adding this line to the PKGBUILD:

install -Dm755 $OUTFLD/icudtl.dat ${pkgdir}/usr/lib/v8/icudtl.dat

zbraniecki commented on 2019-03-11 05:15

I tried to call new Intl.PluralRules(); and it crashed with:

d8
V8 version 7.2.502.25
d8> new Intl.PluralRules


#
# Fatal error in , line 0
# Failed to create ICU PluralRules, are ICU data files missing?
#
#
#
#FailureMessage Object: 0x7ffeb91884f0
==== C stack trace ===============================

    /usr/lib/libv8_libbase.so(v8::base::debug::StackTrace::StackTrace()+0x16) [0x7f66d516c046]
    /usr/lib/libv8_libplatform.so(+0x8fab) [0x7f66d5142fab]
    /usr/lib/libv8_libbase.so(V8_Fatal(char const*, int, char const*, ...)+0x170) [0x7f66d5163430]
    /usr/lib/libv8.so(+0x6984ee) [0x7f66d580e4ee]
    /usr/lib/libv8.so(+0x23aea2) [0x7f66d53b0ea2]
    /usr/lib/libv8.so(+0x249eb8) [0x7f66d53bfeb8]
    /usr/lib/libv8.so(+0xa5916b) [0x7f66d5bcf16b]
Received signal 4 ILL_ILLOPN 7f66d515c5ff
[1]    20807 illegal hardware instruction (core dumped)  d8

I do have libicu installed. Is there a way to link it?

znmeb commented on 2019-03-07 08:45

I'm testing it now - is there any way to limit the number of cores it uses? I have eight cores and it fired off 11 jobs and pushed my workstation so hard it shut down on a thermal overload!

Better yet - get enough votes to move the package into "community"


It's crashing in the tests:


Actual call chain length: 8
setAsyncCallStackDepth(maxDepth): 0
reported: 0
Command: /home/znmeb/Projects/v8/src/v8/out.gn/Release/inspector-test /home/znmeb/Projects/v8/src/v8/test/inspector/protocol-test.js /home/znmeb/Projects/v8/src/v8/test/inspector/debugger/set-async-call-stack-depth.js --random-seed=1823301583 --nohard-abort
exit code: -11
--- CRASHED ---
>>> Too many failures, exiting...
=== inspector/debugger/set-blackbox-patterns ===                          
Tests blackboxing by patterns
Pattern parser error: Uncaught SyntaxError: Invalid regular expression: /(foo([)/: Unterminated character class
Paused in
(...):1
Paused in
(...):1
Paused in
qwe:3
baz:3
(...):1
Paused in
bar:3
foo:3
qwe:3
baz:3
(...):1
Paused in
qwe:4
baz:3
(...):1
Paused in
qwe:4
baz:3
(...):1
Paused in
(...):1
Command: /home/znmeb/Projects/v8/src/v8/out.gn/Release/inspector-test /home/znmeb/Projects/v8/src/v8/test/inspector/protocol-test.js /home/znmeb/Projects/v8/src/v8/test/inspector/debugger/set-blackbox-patterns.js --random-seed=1823301583 --nohard-abort
exit code: -11
--- CRASHED ---
[04:05|%  67|+ 10255|- 100]: Done                                    
>>> 10355 tests ran
==> ERROR: A failure occurred in check().
    Aborting...

I can run it again and post a full logfile if that's necessary.

JanMarvin commented on 2019-03-04 21:01

Thank you for your confirmation @ramesesjd. My PKGBUILD disables the use of this libc++ (using use_custom_libcxx=false). I experimented with patchelf to fix the build, but in the end, why bother with a lib that is not required. Later I found that two of these flags (buildtools and libcxx) are used for the Arch chromium build as well, so maybe they could be adapted for the AUR v8 package as well? Not sure about the external_startup_data flag, the glib one is most likely not required.

ramesesjd commented on 2019-03-02 05:28

JanMarvin, thank you for the PKGBUILD. It works for me on Arch: V8 installs just fine and I can install geojsonio in R without complaints about libc++.so being too short.

JanMarvin commented on 2019-03-01 20:36

The following PKGBUILD should work for R-Users. Builds with linux_use_bundled_binutils=false, v8_use_external_startup_data=false, use_glib=false, use_custom_libcxx=false. Not sure about the glib-flag, but building takes ages and I'll figure this out with the next release of v8.

https://gist.github.com/JanMarvin/61ee142b21c394f5c67a55df4f960adc

ramesesjd commented on 2019-02-28 15:13

I too can confirm the same issue that Melierax is having. I am on Arch, fully updated. I've tried using the PKGBUILD povided by a user on from the rstats geojsonio discussion page: https://github.com/ropensci/geojsonio/issues/143#issuecomment-462378725

geojsonio is an R package for which I need to install the V8 R package, which needs v8 installed on the system.

Even using the above PKGBUIL I get the same error: libc++.so: file too short. The R V8 developer believes it is a bug in arch v8 library: https://github.com/jeroen/V8/issues/52

jolars commented on 2019-02-28 11:45

I can confirm the libc++ file issue that Melierax is having. I am on Antergos.