Package Details: v8-3.14 3.14.5-6

Git Clone URL: https://aur.archlinux.org/v8-3.14.git (read-only, click to copy)
Package Base: v8-3.14
Description: A fast and modern javascript engine (old 3.14 version required R package V8)
Upstream URL: http://code.google.com/p/v8
Licenses: BSD
Conflicts: v8
Provides: v8
Submitter: kageurufu
Maintainer: hpmachining
Last Packager: hpmachining
Votes: 7
Popularity: 0.083145
First Submitted: 2015-02-13 01:28
Last Updated: 2020-05-21 23:02

Latest Comments

1 2 Next › Last »

hpmachining commented on 2020-05-21 23:11

@artemklevtsov I added a CXXFLAG to build with gcc 10. Should work now.

artemklevtsov commented on 2020-05-21 03:32

Build fails with the following error:

  g++ '-DENABLE_DEBUGGER_SUPPORT' '-DENABLE_EXTRA_CHECKS' '-DV8_TARGET_ARCH_X64' '-DBUILDING_V8_SHARED' '-DV8_SHARED' -I../src  -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pthread -fno-rtti -fno-exceptions -pedantic -ansi -fvisibility=hidden -fPIC -fdata-sections -ffunction-sections -O3  -MMD -MF /home/unikum/.cache/yay/v8-3.14/src/v8-3.14.5/out/x64.release/.deps//home/unikum/.cache/yay/v8-3.14/src/v8-3.14.5/out/x64.release/obj.target/v8_base/src/factory.o.d.raw -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fno-delete-null-pointer-checks -std=c++98 -Wno-class-memaccess -Wno-cast-function-type -Wno-error=stringop-truncation -Wno-error=array-bounds -c -o /home/unikum/.cache/yay/v8-3.14/src/v8-3.14.5/out/x64.release/obj.target/v8_base/src/factory.o ../src/factory.cc
In file included from ../src/objects.h:37,
                 from ../src/elements.h:32,
                 from ../src/objects-inl.h:38,
                 from ../src/v8.h:60,
                 from ../src/debug-agent.cc:29:
In static member function 'static unsigned int unibrow::Utf8::Encode(char*, unibrow::uchar, int)',
    inlined from 'static bool v8::internal::DebuggerAgentUtil::SendMessage(const v8::internal::Socket*, v8::internal::Vector<short unsigned int>)' at ../src/debug-agent.cc:401:30:
../src/unicode-inl.h:104:12: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
  104 |     str[0] = 0xF0 | (c >> 18);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~
../src/debug-agent.cc: In static member function 'static bool v8::internal::DebuggerAgentUtil::SendMessage(const v8::internal::Socket*, v8::internal::Vector<short unsigned int>)':
../src/debug-agent.cc:373:8: note: at offset -3 to object 'buffer' with size 80 declared here
  373 |   char buffer[kBufferSize];  // Sending buffer both for header and body.
      |        ^~~~~~
In file included from ../src/objects.h:37,
                 from ../src/elements.h:32,
                 from ../src/objects-inl.h:38,
                 from ../src/v8.h:60,
                 from ../src/debug-agent.cc:29:
In static member function 'static unsigned int unibrow::Utf8::Encode(char*, unibrow::uchar, int)',
    inlined from 'static bool v8::internal::DebuggerAgentUtil::SendMessage(const v8::internal::Socket*, v8::internal::Vector<short unsigned int>)' at ../src/debug-agent.cc:401:30:
../src/unicode-inl.h:105:12: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
  105 |     str[1] = 0x80 | ((c >> 12) & kMask);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/debug-agent.cc: In static member function 'static bool v8::internal::DebuggerAgentUtil::SendMessage(const v8::internal::Socket*, v8::internal::Vector<short unsigned int>)':
../src/debug-agent.cc:373:8: note: at offset -2 to object 'buffer' with size 80 declared here
  373 |   char buffer[kBufferSize];  // Sending buffer both for header and body.
      |        ^~~~~~
In file included from ../src/objects.h:37,
                 from ../src/elements.h:32,
                 from ../src/objects-inl.h:38,
                 from ../src/v8.h:60,
                 from ../src/debug-agent.cc:29:
In static member function 'static unsigned int unibrow::Utf8::Encode(char*, unibrow::uchar, int)',
    inlined from 'static bool v8::internal::DebuggerAgentUtil::SendMessage(const v8::internal::Socket*, v8::internal::Vector<short unsigned int>)' at ../src/debug-agent.cc:401:30:
../src/unicode-inl.h:106:12: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
  106 |     str[2] = 0x80 | ((c >> 6) & kMask);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/debug-agent.cc: In static member function 'static bool v8::internal::DebuggerAgentUtil::SendMessage(const v8::internal::Socket*, v8::internal::Vector<short unsigned int>)':
../src/debug-agent.cc:373:8: note: at offset -1 to object 'buffer' with size 80 declared here
  373 |   char buffer[kBufferSize];  // Sending buffer both for header and body.
      |        ^~~~~~
cc1plus: all warnings being treated as errors
make[1]: *** [tools/gyp/v8_base.target.x64.mk:226: /home/unikum/.cache/yay/v8-3.14/src/v8-3.14.5/out/x64.release/obj.target/v8_base/src/debug-agent.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/unikum/.cache/yay/v8-3.14/src/v8-3.14.5/out'
make: *** [Makefile:179: x64.release] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
checking dependencies...

pat-s commented on 2018-05-29 09:03

@znemb Thanks for the info. I updated the package using the fix by @sjewo (thanks!). It should build successfully again.

sjewo commented on 2018-05-29 08:21

GCC 8 introduced some new error checks.

Alter line 72 in PKGBUILD to

export CXXFLAGS="${CXXFLAGS} -fno-delete-null-pointer-checks -std=c++98 -Wno-class-memaccess -Wno-cast-function-type"

to disable them.

znmeb commented on 2018-05-28 22:40

This does not build, and the R "V8" package does not work with the v8-3.14-bin package at the moment. I'm looking for a workaround.

../src/frames.h:70:41: error: ‘void memset(void, int, size_t)’ clearing an object of non-trivial type ‘struct v8::internal::InnerPointerToCodeCache::InnerPointerToCodeCacheEntry’; use assignment or value-initialization instead [-Werror=class-memaccess] memset(&cache_[0], 0, sizeof(cache_)); ^ ../src/frames.h:56:10: note: ‘struct v8::internal::InnerPointerToCodeCache::InnerPointerToCodeCacheEntry’ declared here struct InnerPointerToCodeCacheEntry { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/macro-assembler.h:49, from ../src/deoptimizer.h:34, from ../src/accessors.cc:32: ../src/assembler.h: In static member function ‘static void v8::internal::ExternalReference::set_redirector(v8::internal::Isolate, void ()(void, v8::internal::ExternalReference::Type))’: ../src/assembler.h:704:73: error: cast between incompatible function types from ‘void ()(void, v8::internal::ExternalReference::Type)’ to ‘void ()()’ [-Werror=cast-function-type] reinterpret_cast<externalreferenceredirectorpointer*>(redirector)); ^ ../src/assembler.h: In static member function ‘static void</externalreferenceredirectorpointer*> v8::internal::ExternalReference::Redirect(v8::internal::Isolate, void, v8::internal::ExternalReference::Type)’: ../src/assembler.h:716:53: error: cast between incompatible function types from ‘void ()()’ to ‘void ()(void, v8::internal::ExternalReference::Type)’ [-Werror=cast-function-type] isolate->external_reference_redirector()); ^ ../src/assembler.h: In static member function ‘static void v8::internal::ExternalReference::Redirect(v8::internal::Isolate, v8::internal::Address, v8::internal::ExternalReference::Type)’: ../src/assembler.h:727:53: error: cast between incompatible function types from ‘void ()()’ to ‘void ()(void, v8::internal::ExternalReference::Type)’ [-Werror=cast-function-type] isolate->external_reference_redirector()); ^ cc1plus: all warnings being treated as errors make[1]: [tools/gyp/v8_base.target.x64.mk:226: /d/TMPDIR/yaourt-tmp-znmeb/aur-v8-3.14/src/v8-3.14.5/out/x64.release/obj.target/v8_base/src/accessors.o] Error 1 make[1]: Leaving directory '/d/TMPDIR/yaourt-tmp-znmeb/aur-v8-3.14/src/v8-3.14.5/out' make: [Makefile:179: x64.release] Error 2 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Makepkg was unable to build v8-3.14. ==> Restart building v8-3.14 ? [y/N] ==> --------------------------------

kageurufu commented on 2017-02-07 18:18

Sorry to say I'm disowning this package, I don't have time to get this building again.

I did, however, package v8-3.14-bin from ubuntu, and have uploaded that to the AUR now at https://aur.archlinux.org/packages/v8-3.14-bin

sjewo commented on 2017-02-06 06:39

The gcc 6 patch doesn't fix all segfaults. Compiling with gcc-49 works for me.

sjewo commented on 2017-01-20 18:03

I altered the PKGBUILD to include the gcc 6 patch (I also changed the source and added a dependecy to gyp-git).

You'll find the code here:
https://github.com/jeroenooms/V8/issues/32#issuecomment-274110406

JanMarvin commented on 2017-01-20 15:50

To run d8 and I assume v8 the following patch is required to be able to use this with gcc 6: https://bugzilla.redhat.com/attachment.cgi?id=1164037

I applied the patch and many more (http://pkgs.fedoraproject.org/cgit/rpms/v8-314.git/tree/) and can provide an updated PKGBUILD, but I do not know anything about v8 nor do I use this package so dunno :)

nacnudus commented on 2016-06-21 17:04

I am unable to build this package since the gyp repository has moved from svn to GitHub.

==> Starting build()...
svn checkout --force http://gyp.googlecode.com/svn/trunk build/gyp \
--revision 1501
svn: E170013: Unable to connect to a repository at URL 'http://gyp.googlecode.com/svn/trunk'
svn: E160013: '/svn/trunk' path not found
make: *** [Makefile:289: dependencies] Error 1
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build v8-3.14.
==> Restart building v8-3.14 ? [y/N]