Package Details: v8-r 12.6.214-1

Git Clone URL: https://aur.archlinux.org/v8-r.git (read-only, click to copy)
Package Base: v8-r
Description: Google's open source JavaScript and WebAssembly engine
Upstream URL: https://v8.dev
Keywords: d8 javascript v8
Licenses: BSD
Conflicts: v8, v8-3.14, v8-6.7-static, v8-static-gyp, v8-static-gyp-5.4, v8.3.14-bin
Provides: v8
Submitter: JanMarvin
Maintainer: JanMarvin
Last Packager: JanMarvin
Votes: 8
Popularity: 0.000015
First Submitted: 2019-09-22 11:01 (UTC)
Last Updated: 2024-05-10 08:20 (UTC)

Pinned Comments

JanMarvin commented on 2019-09-22 11:16 (UTC) (edited on 2021-09-24 14:34 (UTC) by JanMarvin)

This package is required for the R-package V8 (https://github.com/jeroen/V8). It is frequently updated, though unless it is broken, users must not build all updates. Since V8 contains a large codebase and compilation takes a while, I recommend to build it in a directory and not with an AUR-helper.

[Edit:] For binary builds please see: https://garbuszus.de/archpkgs

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

JanMarvin commented on 2022-07-08 16:37 (UTC)

Hi @gnaggnoyil, had a quick look. The android package is a binary package that expects to live in /opt and is simply linked to /usr/bin. Imho that's incorrect, but you should be able to fix this. Either by keeping it in /opt or linking it to /usr/local/lib. If instead the question was if I do something to fix this for you, the answer is no.

gnaggnoyil commented on 2022-07-08 15:59 (UTC) (edited on 2022-07-08 17:23 (UTC) by gnaggnoyil)

This package has conflicting file usr/bin/d8 with the aur/android-sdk-build-tools package. Is there anyway to resolve this file conflict error?

JanMarvin commented on 2021-09-24 14:45 (UTC)

My repo for binary builds has moved to my server (github was no longer a feasible host, since the builds were increasing a lot lately).

chendaniely commented on 2021-01-11 15:03 (UTC) (edited on 2021-01-11 15:09 (UTC) by chendaniely)

@JanMarvin: You're right it's something to do with the system + mirrorlist. Didn't realize that could be the problem because I was running things with the -Syyuu flags. Shows I'm on ICU67 (instead of 68) and there really is something wonky going on with the (Manjaro) mirrors since I can't seem to even find + install "reflector" (edit: manjaro mirrorlist != arch mirrorlist).

I'm going to point this at a Manjaro problem for now and just plan to reinstall my system in plain arch (serves me right for being lazy and using a GUI installer).

JanMarvin commented on 2021-01-10 21:17 (UTC)

Well you should update icu prior to the v8-R update. It works for me and builds in the Arch docker on github, so I'd say it's definitely a problem on your end. Outdated pacman mirror and/or outdated system? Either way, you're of course free to use the static build as mentioned a few comments earlier.

chendaniely commented on 2021-01-10 20:29 (UTC) (edited on 2021-01-10 20:31 (UTC) by chendaniely)

Anyone else having issues updating this package? I'm getting a static assertion failed: v8 is required to build with ICU 68 and up error, but it's weird because I'm doing an update not a fresh install...

I just ended up removing v8-r (sudo pacman -Rnsc v8-r) and installing it using the "Linux: Static libv8" instructions (https://github.com/jeroen/V8).

snippit:

../src/objects/intl-objects.cc:52:28: error: static assertion failed: v8 is required to build with ICU 68 and up
   52 |     V8_MINIMUM_ICU_VERSION <= U_ICU_VERSION_MAJOR_NUM,
[1144/2058] CXX obj/v8_base_without_compiler/js-display-names.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error making: v8-r

full output:

 df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             7.8G     0  7.8G   0% /dev
run             7.8G  1.7M  7.8G   1% /run
/dev/sda2       441G  303G  116G  73% /
tmpfs           7.8G   20M  7.8G   1% /dev/shm
tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup
tmpfs           7.8G   62M  7.8G   1% /tmp
/dev/sda1       300M  284K  300M   1% /boot/efi
tmpfs           1.6G  104K  1.6G   1% /run/user/1000


$ yay -Syu
[sudo] password for dchen: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Searching databases for updates...
:: Searching AUR for updates...
 -> visual-studio-code-insiders-bin: local (1608555268-1) is newer than AUR (1608270140-1)
 -> Missing AUR Packages:  js60  mhwd-nvidia-340xx  xorg-fonts-alias
 -> Orphaned AUR Packages:  libdbusmenu-qt4  qjson
 -> Flagged Out Of Date AUR Packages:  visual-studio-code-insiders-bin
:: 1 Packages to upgrade.
1  aur/v8-r  8.8.294-1 -> 8.9.222-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
==> 
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  v8-r-8.9.222-1

  1 v8-r                                     (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: Downloaded PKGBUILD (1/1): v8-r
  1 v8-r                                     (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: v8-r
==> Making package: v8-r 8.9.222-1 (Sun 10 Jan 2021 12:51:05 PM EST)
==> Retrieving sources...
  -> Updating depot_tools git repo...
Fetching origin
remote: Counting objects: 3340, done
remote: Finding sources: 100% (544/544)
remote: Total 544 (delta 120), reused 531 (delta 120)
Receiving objects: 100% (544/544), 764.34 KiB | 7.80 MiB/s, done.
Resolving deltas: 100% (120/120), completed with 25 local objects.
From https://chromium.googlesource.com/chromium/tools/depot_tools
 * [new ref]             refs/changes/00/2616900/1    -> refs/changes/00/2616900/1

# REMOVED STUFF HERE
   67e12286d..c1aa4ecfc  master                       -> master
  -> Found v8.pc
  -> Found v8_libbase.pc
  -> Found v8_libplatform.pc
  -> Found d8
  -> Found nodiscard.patch
==> Validating source files with sha256sums...
    depot_tools ... Skipped
    v8.pc ... Passed
    v8_libbase.pc ... Passed
    v8_libplatform.pc ... Passed
    d8 ... Passed
    nodiscard.patch ... Passed
==> Making package: v8-r 8.9.222-1 (Sun 10 Jan 2021 12:51:09 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating depot_tools git repo...
Fetching origin
  -> Found v8.pc
  -> Found v8_libbase.pc
  -> Found v8_libplatform.pc
  -> Found d8
  -> Found nodiscard.patch
==> Validating source files with sha256sums...
    depot_tools ... Skipped
    v8.pc ... Passed
    v8_libbase.pc ... Passed
    v8_libplatform.pc ... Passed
    d8 ... Passed
    nodiscard.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of depot_tools git repo...
Cloning into 'depot_tools'...
done.
==> Starting prepare()...
  -> Fetching V8 code
Running: gclient root
WARNING: Your metrics.cfg file was invalid or nonexistent. A new one will be created.
Running: gclient config --spec 'solutions = [
  {
    "name": "v8",
    "url": "https://chromium.googlesource.com/v8/v8.git",
    "deps_file": "DEPS",
    "managed": False,
    "custom_deps": {},
  },
]
'
Running: gclient sync --with_branch_heads

________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/v8/v8.git /home/dchen/.cache/yay/v8-r/src/_gclient_v8_hxsllf76' in '/home/dchen/.cache/yay/v8-r/src'
Cloning into '/home/dchen/.cache/yay/v8-r/src/_gclient_v8_hxsllf76'...
remote: Counting objects: 7660, done
remote: Total 810131 (delta 655506), reused 810131 (delta 655506)
Receiving objects: 100% (810131/810131), 773.56 MiB | 9.18 MiB/s, done.
Resolving deltas: 100% (655506/655506), done.

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

[0:03:30] Still working on:
[0:03:30]   v8
1>Syncing projects:   0% ( 0/ 2) 
[0:03:39] Still working on:
[0:03:39]   v8
Syncing projects: 100% (28/28), done.                                                
Running hooks:  19% ( 5/26) clang_format_linux
________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s buildtools/linux64/clang-format.sha1' in '/home/dchen/.cache/yay/v8-r/src/v8'
0> Downloading buildtools/linux64/clang-format@1baf0089e895c989a311b6a38ed94d0e8be4c0a7...
Downloading 1 files took 6.442052 second(s)
Running hooks:  30% ( 8/26) wasm_spec_tests   
________ running 'download_from_google_storage --no_resume --no_auth -u --bucket v8-wasm-spec-tests -s test/wasm-spec-tests/tests.tar.gz.sha1' in '/home/dchen/.cache/yay/v8-r/src/v8'
0> Downloading test/wasm-spec-tests/tests.tar.gz@38edac624024750d4d35619df1bbdc7902f9cb7c...
0> Extracting 471 entries from test/wasm-spec-tests/tests.tar.gz to test/wasm-spec-tests/tests
Downloading 1 files took 5.856630 second(s)
Running hooks:  34% ( 9/26) wasm_js        
________ running 'download_from_google_storage --no_resume --no_auth -u --bucket v8-wasm-spec-tests -s test/wasm-js/tests.tar.gz.sha1' in '/home/dchen/.cache/yay/v8-r/src/v8'
0> Downloading test/wasm-js/tests.tar.gz@31c11a41026c56be3c6d6470755d476840ce0132...
0> Extracting 142 entries from test/wasm-js/tests.tar.gz to test/wasm-js/tests
Downloading 1 files took 5.419328 second(s)
Running hooks:  46% (12/26) sysroot_x86  
________ running 'vpython build/linux/sysroot_scripts/install-sysroot.py --arch=x86' in '/home/dchen/.cache/yay/v8-r/src/v8'
Installing Debian sid i386 root image: /home/dchen/.cache/yay/v8-r/src/v8/build/linux/debian_sid_i386-sysroot
Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/5a09b89bfdd9ff4c6b49f5f418124c325259c854/debian_sid_i386_sysroot.tar.xz
Hook 'vpython build/linux/sysroot_scripts/install-sysroot.py --arch=x86' took 13.36 secs
Running hooks:  50% (13/26) sysroot_x64
________ running 'vpython build/linux/sysroot_scripts/install-sysroot.py --arch=x64' in '/home/dchen/.cache/yay/v8-r/src/v8'
Installing Debian sid amd64 root image: /home/dchen/.cache/yay/v8-r/src/v8/build/linux/debian_sid_amd64-sysroot
Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/22f2db7711f7426a364617bb6d78686cce09a8f9/debian_sid_amd64_sysroot.tar.xz
Hook 'vpython build/linux/sysroot_scripts/install-sysroot.py --arch=x64' took 16.41 secs
Running hooks:  69% (18/26) clang               
________ running 'vpython tools/clang/scripts/update.py' in '/home/dchen/.cache/yay/v8-r/src/v8'
Downloading https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64/clang-llvmorg-12-init-15676-g5c951623-1.tgz .......... Done.
Hook 'vpython tools/clang/scripts/update.py' took 10.03 secs
Running hooks: 100% (26/26), done.                        
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
  -> Reset repository
HEAD is now at e070505f5c Update V8 DEPS.
  -> Syncing, this can take a while...
Syncing projects: 100% (28/28), done.                                                
Running hooks: 100% (26/26), done.                        
Syncing projects: 100% (28/28), done.                                                
Running hooks: 100% (26/26), done.                        
  -> Using system libraries for ICU
  -> disable nodiscard with gcc
  -> Running GN...
Done. Made 164 targets from 90 files in 181ms
  -> Adding icu missing folders
==> Sources are ready.
==> Making package: v8-r 8.9.222-1 (Sun 10 Jan 2021 12:59:13 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
  -> Building, this will take a while...
ninja: Entering directory `x86.release'
[1139/2058] CXX obj/v8_base_without_compiler/intl-objects.o
FAILED: obj/v8_base_without_compiler/intl-objects.o 
g++ -MMD -MF obj/v8_base_without_compiler/intl-objects.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DCOMPONENT_BUILD -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_GDB_JIT_INTERFACE -DENABLE_MINOR_MC -DV8_INTL_SUPPORT -DENABLE_HANDLE_ZAPPING -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ATOMIC_MARKING_STATE -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_SNAPSHOT_COMPRESSION -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_NO_ARGUMENTS_ADAPTOR -DCPPGC_CAGED_HEAP -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DDISABLE_UNTRUSTED_CODE_MITIGATIONS -DBUILDING_V8_SHARED -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_NO_ARGUMENTS_ADAPTOR -DCPPGC_CAGED_HEAP -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DU_IMPORT=U_EXPORT -DUSING_V8_BASE_SHARED -DUSING_V8_PLATFORM_SHARED -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_NO_ARGUMENTS_ADAPTOR -DCPPGC_CAGED_HEAP -I.. -Igen -I.. -I../include -Igen -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../include -I../include -I../third_party/zlib -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -m64 -march=x86-64 -msse3 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wno-strict-overflow -Wno-return-type -Wno-int-in-bool-context -O3 -fno-ident -fdata-sections -ffunction-sections -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../src/objects/intl-objects.cc -o obj/v8_base_without_compiler/intl-objects.o
../src/objects/intl-objects.cc:52:28: error: static assertion failed: v8 is required to build with ICU 68 and up
   52 |     V8_MINIMUM_ICU_VERSION <= U_ICU_VERSION_MAJOR_NUM,
[1144/2058] CXX obj/v8_base_without_compiler/js-display-names.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error making: v8-r

izahn commented on 2020-12-31 13:15 (UTC)

Wow, somehow I missed https://github.com/JanMarvin/archpkgs. Thank you @JanMarvin, this is a great service to the community of Arch Linux useRs

JanMarvin commented on 2020-12-31 12:02 (UTC)

@izahn: That is correct. Recently, the V8 R-package added a new way to get a static V8 build. However - while I was involved creating the initial static V8 build that led to the option you just mentioned - this download is intended for x64 Linux distributions that do not provide a working V8 package (iirc at that time: openSUSE). Arch users, on the other hand, are fortunate to have a working and updated PKGBUILD as well as an option to obtain binaries (for those that do not want to build V8 once a week). Finally, I am investing a good portion of my time working with upstream to keep the R-package usable with latest V8. Ultimately, it is a decision left up to the user.

izahn commented on 2020-12-31 00:42 (UTC)

The V8 R package now offers the ability to install binary and no longer requires a system library. You just need to set an environment variable DOWNLOAD_STATIC_LIBV8=1 as documented https://github.com/jeroen/V8

JanMarvin commented on 2020-11-06 18:37 (UTC)

If you're interested in binary builds, but do not want to use my arch mirror at github, there are now binary builds at github built using .github/actions and docker.