Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building V8JS on Debian Bullseye with support for PHP 8.2 and V8 11.1 #495

Closed
magdutra opened this issue Jan 6, 2023 · 1 comment
Closed

Comments

@magdutra
Copy link

magdutra commented Jan 6, 2023

I had compiled both V8 and V8JS before, but moved to PHP 8.2 now due to the end of support of PHP 7.4.

I have successfully compiled V8 11.1 on my Debian Bullseye. However, when running "configure" in preparation to build V8JS, it reported that the libv8 version could not be detected. After reading issue #490, I manually changed the version of c++14 to c++17 in the "configure" script, and could proceed further.

Then, I got a compilation error complaining about the "ShutdownPlatform" function. I replaced it by "DisposePlatform" and tried again. Now I'm getting the following error, for which I have no clue how to recover from:

/usr/local/src/v8js/v8js_v8object_class.cc: In function ‘zend_result zm_startup_v8js_v8object_class(int, int)’:
/usr/local/src/v8js/v8js_v8object_class.cc:924:39: error: invalid conversion from ‘int ()(zend_object, zend_class_entry**, zend_function**, zend_object**, bool)’ {aka ‘int ()(_zend_object, _zend_class_entry**, _zend_function**, _zend_object**, bool)’} to ‘zend_object_get_closure_t’ {aka ‘ZEND_RESULT_CODE ()(_zend_object, _zend_class_entry**, _zend_function**, _zend_object**, bool)’} [-fpermissive]
924 | v8js_v8object_handlers.get_closure = v8js_v8object_get_closure;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int ()(zend_object, zend_class_entry**, zend_function**, zend_object**, bool) {aka int ()(_zend_object, _zend_class_entry**, _zend_function**, _zend_object**, bool)}
make: *** [Makefile:257: v8js_v8object_class.lo] Error 1

Is it possible to build V8JS in the PHP8 branch for V8 version 11?

@magdutra
Copy link
Author

magdutra commented Jan 6, 2023

Fix explained on issue #493

@magdutra magdutra closed this as completed Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant