Package Details: v8 8.7.220.25-1

Git Clone URL: https://aur.archlinux.org/v8.git (read-only, click to copy)
Package Base: v8
Description: Google's open source JavaScript engine
Upstream URL: https://v8.dev/
Keywords: compiler interpreter javascript javascript-engine virtual-machine
Licenses: BSD
Conflicts: v8-3.14, v8-3.14-bin, v8-6.7-static, v8-6.8, v8-r, v8-static-gyp, v8-static-gyp-5.4
Submitter: anatolik
Maintainer: None
Last Packager: relrel
Votes: 15
Popularity: 0.000000
First Submitted: 2015-07-01 16:14 (UTC)
Last Updated: 2020-11-26 11:22 (UTC)

Dependencies (4)

Required by (1)

Sources (2)

Pinned Comments

relrel commented on 2020-10-30 11:56 (UTC) (edited on 2021-02-01 20:07 (UTC) by relrel)

Recommendations
  1. Before installing this package, install depot-tools-git and follow its instructions.

  2. To speed-up compilation, build on tmpfs and disable tests:

BUILDDIR=/tmp/makepkg makepkg --nocheck

Or using yay:

BUILDDIR=/tmp/makepkg yay -S --mflags --nocheck v8

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 .. 10 Next › Last »

znmeb commented on 2019-03-07 08:45 (UTC) (edited on 2019-03-07 18:34 (UTC) by znmeb)

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 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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

Melierax commented on 2019-02-12 11:06 (UTC)

Hi,

I am trying to install V8 rstats package on a machine running Manjaro Linux. All is updated. I get the following error message (either installing from CRAN or github): /lib/libc++.so: file too short. I have tried to re-install libc++, then compiled it from source but it doesn't solve the issue. The dev thinks it is a bug in the V8 library.

Any idea ?

Thanks

znmeb commented on 2019-02-05 18:53 (UTC)

Build is failing:

==> Sources are ready.
==> Making package: v8 7.1.302.29-1 (Tue 05 Feb 2019 10:50:40 AM PST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
  -> Adding icu missing folders
  -> Building, this will take a while...
ninja: Entering directory `out.gn/Release'
[1/1666] ACTION //:js2c(//build/toolchain/linux:x64)
FAILED: gen/libraries.cc gen/libraries.bin
python ../../tools/js2c.py gen/libraries.cc CORE ../../src/js/macros.py ../../src/messages.h ../../src/js/prologue.js ../../src/js/array.js ../../src/js/typedarray.js ../../src/js/intl.js --startup_blob gen/libraries.bin
Traceback (most recent call last):
  File "../../tools/js2c.py", line 592, in <module>
    main()
  File "../../tools/js2c.py", line 588, in main
    options.js)
  File "../../tools/js2c.py", line 546, in JS2C
    prepared_sources = PrepareSources(sources, native_type, emit_js)
  File "../../tools/js2c.py", line 395, in PrepareSources
    assert len(macro_files) in [0, 1]
TypeError: object of type 'filter' has no len()
[2/1666] ACTION //:js2c_experimental_extras(//build/toolchain/linux:x64)
FAILED: gen/experimental-extras-libraries.cc gen/libraries_experimental_extras.bin
python ../../tools/js2c.py gen/experimental-extras-libraries.cc EXPERIMENTAL_EXTRAS ../../test/cctest/test-experimental-extra.js --startup_blob gen/libraries_experimental_extras.bin
Traceback (most recent call last):
  File "../../tools/js2c.py", line 592, in <module>
    main()
  File "../../tools/js2c.py", line 588, in main
    options.js)
  File "../../tools/js2c.py", line 546, in JS2C
    prepared_sources = PrepareSources(sources, native_type, emit_js)
  File "../../tools/js2c.py", line 395, in PrepareSources
    assert len(macro_files) in [0, 1]
TypeError: object of type 'filter' has no len()
[3/1666] ACTION //:d8_js2c(//build/toolchain/linux:x64)
FAILED: gen/d8-js.cc
python ../../tools/js2c.py gen/d8-js.cc D8 ../../src/d8.js ../../src/js/macros.py
Traceback (most recent call last):
  File "../../tools/js2c.py", line 592, in <module>
    main()
  File "../../tools/js2c.py", line 588, in main
    options.js)
  File "../../tools/js2c.py", line 546, in JS2C
    prepared_sources = PrepareSources(sources, native_type, emit_js)
  File "../../tools/js2c.py", line 395, in PrepareSources
    assert len(macro_files) in [0, 1]
TypeError: object of type 'filter' has no len()
[4/1666] ACTION //:js2c_extras(//build/toolchain/linux:x64)
FAILED: gen/extras-libraries.cc gen/libraries_extras.bin
python ../../tools/js2c.py gen/extras-libraries.cc EXTRAS ../../test/cctest/test-extra.js --startup_blob gen/libraries_extras.bin
Traceback (most recent call last):
  File "../../tools/js2c.py", line 592, in <module>
    main()
  File "../../tools/js2c.py", line 588, in main
    options.js)
  File "../../tools/js2c.py", line 546, in JS2C
    prepared_sources = PrepareSources(sources, native_type, emit_js)
  File "../../tools/js2c.py", line 395, in PrepareSources
    assert len(macro_files) in [0, 1]
TypeError: object of type 'filter' has no len()
[10/1666] CXX obj/buildtools/third_party/libc++/libc++/locale.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
Error making: v8

Tazmain commented on 2018-10-04 13:54 (UTC)

Build fails for me, {standard input}:226988: Error: unknown .loc sub-directive view' {standard input}:226988: Error: junk at end of line, first unrecognized character is-' {standard input}:226990: Error: unknown .loc sub-directive view' {standard input}:226990: Error: unknown pseudo-op:.lvu50714' ninja: build stopped: subcommand failed. ==> ERROR: A failure occurred in build(). Aborting...

dflemstr commented on 2018-09-17 14:29 (UTC)

@marcs did you have time to have a look at this? I haven't seen the new patches being applied yet.