lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
php -v
PHP 8.1.20 (cli) (built: Jun 8 2023 15:26:07) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.20, Copyright (c) Zend Technologies
with Zend OPcache v8.1.20, Copyright (c), by Zend Technologies
Directions followed are
https://github.com/phpv8/v8js/blob/php8/README.Linux.md
used tools/dev/v8gen.py -vv x64.release -- is_component_build=true use_custom_libcxx=false v8_enable_pointer_compression=false
for generating v8
./configure --with-v8js=/opt/v8 LDFLAGS="-lstdc++"
used to configure v8js before make
When make is called I get the following error
/tmp/v8js/v8js_v8.cc:64:46: error: no matching function for call to ‘v8::V8::InitializeExternalStartupData(const char [29], const char [30])’ 64 | v8::V8::InitializeExternalStartupData( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 65 | PHP_V8_NATIVES_BLOB_PATH, | ~~~~~~~~~~~~~~~~~~~~~~~~~ 66 | PHP_V8_SNAPSHOT_BLOB_PATH | ~~~~~~~~~~~~~~~~~~~~~~~~~ 67 | ); | ~ In file included from /opt/v8/include/v8.h:34, from /tmp/v8js/php_v8js_macros.h:59, from /tmp/v8js/v8js_v8.cc:19: /opt/v8/include/v8-initialization.h:170:15: note: candidate: ‘static void v8::V8::InitializeExternalStartupData(const char*)’
Any help would be great
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
php -v
PHP 8.1.20 (cli) (built: Jun 8 2023 15:26:07) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.20, Copyright (c) Zend Technologies
with Zend OPcache v8.1.20, Copyright (c), by Zend Technologies
Directions followed are
https://github.com/phpv8/v8js/blob/php8/README.Linux.md
used tools/dev/v8gen.py -vv x64.release -- is_component_build=true use_custom_libcxx=false v8_enable_pointer_compression=false
for generating v8
./configure --with-v8js=/opt/v8 LDFLAGS="-lstdc++"
used to configure v8js before make
When make is called I get the following error
/tmp/v8js/v8js_v8.cc:64:46: error: no matching function for call to ‘v8::V8::InitializeExternalStartupData(const char [29], const char [30])’ 64 | v8::V8::InitializeExternalStartupData( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 65 | PHP_V8_NATIVES_BLOB_PATH, | ~~~~~~~~~~~~~~~~~~~~~~~~~ 66 | PHP_V8_SNAPSHOT_BLOB_PATH | ~~~~~~~~~~~~~~~~~~~~~~~~~ 67 | ); | ~ In file included from /opt/v8/include/v8.h:34, from /tmp/v8js/php_v8js_macros.h:59, from /tmp/v8js/v8js_v8.cc:19: /opt/v8/include/v8-initialization.h:170:15: note: candidate: ‘static void v8::V8::InitializeExternalStartupData(const char*)’Any help would be great