-
Notifications
You must be signed in to change notification settings - Fork 42
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 from source or pecl fails on PHP 7.2 to 7.4 #124
Comments
Thanks for reporting the issue. I'll take a look at it. |
Same occurs in PHP 8.0.0: creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/tmp/pear/temp/pear-build-nathanaelDGeYBa/wasm-0.5.0/libtool --mode=compile -I. -I/private/tmp/pear/temp/wasm/src -I/private/tmp/pear/temp/pear-build-nathanaelDGeYBa/wasm-0.5.0/include -I/private/tmp/pear/temp/pear-build-nathanaelDGeYBa/wasm-0.5.0/main -I/private/tmp/pear/temp/wasm/src -I/usr/local/Cellar/php/8.0.0_1/include/php -I/usr/local/Cellar/php/8.0.0_1/include/php/main -I/usr/local/Cellar/php/8.0.0_1/include/php/TSRM -I/usr/local/Cellar/php/8.0.0_1/include/php/Zend -I/usr/local/Cellar/php/8.0.0_1/include/php/ext -I/usr/local/Cellar/php/8.0.0_1/include/php/ext/date/lib -I/usr/local/opt/ruby/include -DHAVE_CONFIG_H -c /private/tmp/pear/temp/wasm/src/wasm.cc -o wasm.lo
libtool: unrecognized option `-I.'
Try `libtool --help' for more information.
make: *** [wasm.lo] Error 1
ERROR: `make' failed |
I can build with php 7.4.0 but not php 8.0.0. The error message shown: wasmer-php/src/wasm.cc:718:10: error:
no member named 'no_separation' in '_zend_fcall_info'
fci->no_separation = 0;
~~~ ^
wasmer-php/src/wasm.cc:859:35: error:
no member named 'pass_by_reference' in
'_zend_arg_info'
if (argument_info.pass_by_reference) {
~~~~~~~~~~~~~ ^
wasmer-php/src/wasm.cc:877:42: error:
use of undeclared identifier 'ZEND_TYPE_CODE'
uint32_t argument_type = ZEND_TYPE_...
^
wasmer-php/src/wasm.cc:927:40: error:
use of undeclared identifier 'ZEND_TYPE_CODE'
uint32_t return_type = ZEND_TYPE_CO...
^
wasmer-php/src/wasm.cc:2510:79: error:
expected ')'
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2510:65: note:
to match this '('
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2530:5: error:
expected ')'
DECLARE_WASM_TYPED_ARRAY(WasmInt8Array, int8, 1);
^
wasmer-php/src/wasm.cc:2524:87: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2530:5: note:
to match this '('
wasmer-php/src/wasm.cc:2524:73: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2530:5: error:
expected ')'
DECLARE_WASM_TYPED_ARRAY(WasmInt8Array, int8, 1);
^
wasmer-php/src/wasm.cc:2527:65: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...TSRMLS_CC, 1, zend_ce_arrayaccess); \
^
wasmer-php/src/wasm.cc:2530:5: note:
to match this '('
wasmer-php/src/wasm.cc:2527:26: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
zend_class_implements(wasm_typed_array_##type##...
^
wasmer-php/src/wasm.cc:2531:5: error:
expected ')'
DECLARE_WASM_TYPED_ARRAY(WasmUint8Array, uint8, 1);
^
wasmer-php/src/wasm.cc:2524:87: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2531:5: note:
to match this '('
wasmer-php/src/wasm.cc:2524:73: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2531:5: error:
expected ')'
DECLARE_WASM_TYPED_ARRAY(WasmUint8Array, uint8, 1);
^
wasmer-php/src/wasm.cc:2527:65: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...TSRMLS_CC, 1, zend_ce_arrayaccess); \
^
wasmer-php/src/wasm.cc:2531:5: note:
to match this '('
wasmer-php/src/wasm.cc:2527:26: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
zend_class_implements(wasm_typed_array_##type##...
^
wasmer-php/src/wasm.cc:2532:5: error:
expected ')'
DECLARE_WASM_TYPED_ARRAY(WasmInt16Array, int16, 2);
^
wasmer-php/src/wasm.cc:2524:87: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2532:5: note:
to match this '('
wasmer-php/src/wasm.cc:2524:73: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2532:5: error:
expected ')'
DECLARE_WASM_TYPED_ARRAY(WasmInt16Array, int16, 2);
^
wasmer-php/src/wasm.cc:2527:65: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...TSRMLS_CC, 1, zend_ce_arrayaccess); \
^
wasmer-php/src/wasm.cc:2532:5: note:
to match this '('
wasmer-php/src/wasm.cc:2527:26: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
zend_class_implements(wasm_typed_array_##type##...
^
wasmer-php/src/wasm.cc:2533:5: error:
expected ')'
DECLARE_WASM_TYPED_ARRAY(WasmUint16Array, uint16, 2);
^
wasmer-php/src/wasm.cc:2524:87: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2533:5: note:
to match this '('
wasmer-php/src/wasm.cc:2524:73: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2533:5: error:
expected ')'
DECLARE_WASM_TYPED_ARRAY(WasmUint16Array, uint16, 2);
^
wasmer-php/src/wasm.cc:2527:65: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...TSRMLS_CC, 1, zend_ce_arrayaccess); \
^
wasmer-php/src/wasm.cc:2533:5: note:
to match this '('
wasmer-php/src/wasm.cc:2527:26: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
zend_class_implements(wasm_typed_array_##type##...
^
wasmer-php/src/wasm.cc:2534:5: error:
expected ')'
DECLARE_WASM_TYPED_ARRAY(WasmInt32Array, int32, 4);
^
wasmer-php/src/wasm.cc:2524:87: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2534:5: note:
to match this '('
wasmer-php/src/wasm.cc:2524:73: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2534:5: error:
expected ')'
DECLARE_WASM_TYPED_ARRAY(WasmInt32Array, int32, 4);
^
wasmer-php/src/wasm.cc:2527:65: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...TSRMLS_CC, 1, zend_ce_arrayaccess); \
^
wasmer-php/src/wasm.cc:2534:5: note:
to match this '('
wasmer-php/src/wasm.cc:2527:26: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
zend_class_implements(wasm_typed_array_##type##...
^
wasmer-php/src/wasm.cc:2535:5: error:
expected ')'
DECLARE_WASM_TYPED_ARRAY(WasmUint32Array, uint32, 4);
^
wasmer-php/src/wasm.cc:2524:87: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2535:5: note:
to match this '('
wasmer-php/src/wasm.cc:2524:73: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...= zend_register_internal_class(&class_entry TSRMLS_...
^
wasmer-php/src/wasm.cc:2535:5: error:
expected ')'
DECLARE_WASM_TYPED_ARRAY(WasmUint32Array, uint32, 4);
^
wasmer-php/src/wasm.cc:2527:65: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
...TSRMLS_CC, 1, zend_ce_arrayaccess); \
^
wasmer-php/src/wasm.cc:2535:5: note:
to match this '('
wasmer-php/src/wasm.cc:2527:26: note:
expanded from macro 'DECLARE_WASM_TYPED_ARRAY'
zend_class_implements(wasm_typed_array_##type##...
^
17 errors generated.
make[1]: *** [wasm.lo] Error 1
make: *** [build] Error 2 |
This issue is now our priority :-). cc @wasmerio/langint |
@jubianchi It would be nice to add support for PHP 7.4, if it's not too much trouble. There is still a lot of legacy code that will not be upgraded to 8.0 any time soon. |
Hello @yerke TBH, supporting both PHP8 and PHP7 requires some work but I'll try to fix that. |
Describe the bug
Both
pecl install
and building from source fails with the same issue on both Linux and MacSteps to reproduce
php7.4-dev
( Install PHP of your choice (brew install php, apt-get install php7.4-dev, or compile)pecl install wasm
Expected behavior
Extension builds
Actual behavior
A clear and concise description of what actually happened.
If applicable, add screenshots to help explain your problem.
Additional context
Relevant line from the output below:
libtool version is
2.4.6_2
on mac and2.4.6-0.1
on Linux.Sample output from a Linux build but I get the same errors on mac.
The text was updated successfully, but these errors were encountered: