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

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

FrederickZh commented on 2022-08-30 15:38 (UTC)

@teddy_coder You need https://chromium.googlesource.com/v8/v8/+/035c305ce7761f51328b45f1bd83e26aef267c9d

@mayweed @gnaggnoyil You need https://chromium.googlesource.com/v8/v8/+/7c90567a34c01fdddce465e57a8040ef35d6f5bd

Apply these patches after gclient sync -D -r "$pkgver".

(Is there an easy way to download a patch directly from chromium.googlesource.com?)

I also had to downgrade Python to 3.9 as from collections import Mapping no longer works in Python 3.10, though this is possibly because I was building the older v8.5.210.20.

gnaggnoyil commented on 2022-07-08 13:26 (UTC)

I'm having the same issue @mayweed encountered. Was using yay.

mayweed commented on 2022-06-24 09:15 (UTC) (edited on 2022-06-24 09:17 (UTC) by mayweed)

Hello I’m just trying to build v8 via this package, here is the error i got :

../../src/base/platform/platform-posix.cc:790:59: error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'long' [-Werror,-Wsign-compare] if (stack_size_ > 0 && static_cast<size_t>(stack_size_) < PTHREAD_STACK_MIN) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ ../../src/base/platform/platform-posix.cc:791:19: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32] stack_size_ = PTHREAD_STACK_MIN; ~ ^~~~~~~~~~~~~~~~~ /usr/include/bits/pthread_stack_min-dynamic.h:26:30: note: expanded from macro 'PTHREAD_STACK_MIN'

define PTHREAD_STACK_MIN __sysconf (__SC_THREAD_STACK_MIN_VALUE)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2 errors generated. [6/963] CXX obj/v8_libsampler/sampler.o ninja: build stopped: subcommand failed. ==> ERROR: A failure occurred in build(). Aborting...

Any ideas? Thx

teddy_coder commented on 2021-06-08 08:24 (UTC) (edited on 2021-06-08 08:35 (UTC) by teddy_coder)

I got the same problem as bashee_wang in previous comment. I solved it by chown for directory /opt/depot_tools/. But then I got an error while compiling:

[666/1044] CXX obj/v8_base_without_compiler/js-list-format.o
FAILED: obj/v8_base_without_compiler/js-list-format.o 
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/v8_base_without_compiler/js-list-format.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_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-12-init-5035-gd0abc757-3\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DENABLE_DISASSEMBLER -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_GDB_JIT_INTERFACE -DENABLE_MINOR_MC -DOBJECT_PRINT -DVERIFY_HEAP -DV8_TRACE_MAPS -DV8_ENABLE_ALLOCATION_TIMEOUT -DV8_ENABLE_FORCE_SLOW_PATH -DV8_ENABLE_DOUBLE_CONST_STORE_CHECK -DV8_INTL_SUPPORT -DENABLE_HANDLE_ZAPPING -DV8_SNAPSHOT_NATIVE_CODE_COUNTERS -DV8_CONCURRENT_MARKING -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_CHECK_MICROTASKS_SCOPES_CONSISTENCY -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_SNAPSHOT_COMPRESSION -DV8_ENABLE_CHECKS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DDEBUG -DDISABLE_UNTRUSTED_CODE_MITIGATIONS -DV8_ENABLE_CHECKS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -DCPPGC_CAGED_HEAP -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DU_IMPORT=U_EXPORT -DV8_ENABLE_CHECKS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -I../.. -Igen -I../.. -I../../include -Igen -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../include -I../../third_party/zlib -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -mllvm -enable-dse-memoryssa=false -m64 -march=x86-64 -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -Wall -Werror -Wextra -Wimplicit-fallthrough -Wunreachable-code -Wthread-safety -Wextra-semi -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-psabi -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Wno-non-c-typedef-for-linkage -Wmax-tokens -fno-omit-frame-pointer -g2 -Xclang -debug-info-kind=constructor -gsplit-dwarf -ggnu-pubnames -ftrivial-auto-var-init=pattern -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wmissing-field-initializers -Wunreachable-code -Wshorten-64-to-32 -O3 -fno-ident -fdata-sections -ffunction-sections -fvisibility=default -Wexit-time-destructors -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c++14 -fno-trigraphs -Wno-trigraphs -fno-exceptions -fno-rtti -c ../../src/objects/js-list-format.cc -o obj/v8_base_without_compiler/js-list-format.o
../../src/objects/js-list-format.cc:145:55: error: 'createInstance' is a private member of 'icu_69::ListFormatter'
  icu::ListFormatter* formatter = icu::ListFormatter::createInstance(
                                  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/unicode/listformatter.h:267:27: note: declared private here
    static ListFormatter* createInstance(const Locale& locale, const char* style, UErrorCode& errorCode);
                          ^
1 error generated.
[675/1044] CXX obj/v8_base_without_compiler/elements.o
ninja: build stopped: subcommand failed.
==> ERROR: Произошел сбой в build().
    Прерывание...

bashee_wang commented on 2021-04-19 03:55 (UTC)

Get below error msg, please help: :: (1/1) Parsing SRCINFO: v8 ==> Making package: v8 8.7.220.25-1 (Mon 19 Apr 2021 11:50:19 AM CST) ==> Retrieving sources... -> Found v8.pc -> Found d8 ==> Validating source files with sha512sums... v8.pc ... Passed d8 ... Passed ==> Making package: v8 8.7.220.25-1 (Mon 19 Apr 2021 11:50:21 AM CST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found v8.pc -> Found d8 ==> Validating source files with sha512sums... v8.pc ... Passed d8 ... Passed ==> Removing existing $srcdir/ directory... ==> Extracting sources... ==> Starting prepare()... mktemp: failed to create file via template ‘/opt/depot_tools/.cipd_client.XXXXXXX’: Permission denied curl: (23) Failure writing output to destination /opt/depot_tools/bootstrap_python3: line 37: bootstrap-3.8.0.chromium.8_bin/python3/bin/python3: No such file or directory cat: /opt/depot_tools/python3_bin_reldir.txt: No such file or directory /opt/depot_tools/vpython3: line 52: /opt/depot_tools/.cipd_bin/vpython3: No such file or directory ==> ERROR: A failure occurred in prepare(). Aborting... error making: v8

sarpik commented on 2020-11-20 12:28 (UTC) (edited on 2020-11-20 12:28 (UTC) by sarpik)

The --mflags "--nocheck" did not work and the check() step failed because of some tests.

To fix it, edit the PKGBUILD and replace the contents of check() { ... } with just check() { echo "hi" } (if using yay, pass in --editmenu and select to edit the PKGBUILD once asked)

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

marcs commented on 2020-10-24 10:24 (UTC)

I had some weird building problems with the last few versions that didn't allowed me to update this package. I tried some tests on a standalone environment but I couldn't fix them. Since someone filed for an ownership claim and got approved by AUR I will stop supporting the package and let someone else try. Good luck and have fun.

marcs commented on 2020-07-25 15:42 (UTC)

Some notes: * Latest version is based on the version on branch-heads from the V8 repositories, I stick to stable, but sometimes I could use beta but I never use dev (check this: https://omahaproxy.appspot.com/). * This is a "generic" configuration, v8 is highly configurable, if you need v8 for some specific integration please check the Google documentation. * Prefer yay/aurman instead of yaourt/pacaur. * 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 aurman/yay/pacaur will save this package in ~/.cache/(aurman|yay|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).