Comments (7)
Thanks for reporting the issue. I'll take a look at it.
from wasmer-php.
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
from wasmer-php.
Hello @yerke
TBH, supporting both PHP8 and PHP7 requires some work but I'll try to fix that.
from wasmer-php.
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
from wasmer-php.
This issue is now our priority :-). cc @wasmerio/langint
from wasmer-php.
Hello @edorian
As @Hywan said, wasmer-php
is part of our current priorities. Is PHP7 still required for you?
For now, we only test and build with PHP8 but we can look at introducing support for PHP7.4.
from wasmer-php.
@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.
P.S. Thank you to the whole team for working on this project.
from wasmer-php.
Related Issues (20)
- just build with Docker image php-7.2-fpm HOT 1
- add wasm3 backend support HOT 9
- maybe we should have a docker environment HOT 3
- libwasmer.so: file not recognized: File format not recognized HOT 5
- How should call a function from php? HOT 1
- Waht is the mini PHP version requirement? HOT 2
- Is it possible to write to WebAssembly.Memory in PHP that is exported to and read in JavaScript in parallel? HOT 12
- Recipe for target 'wasm.la' failed
- Dependabot couldn't find a Cargo.toml for this project
- collect2: error: ld returned 1 exit status HOT 7
- Cannot address by function name
- Compile failed in different situation
- If I did some significant work on this repo (touching almost every file), would you merge it? HOT 6
- Could you tell what version of gcc is required?
- In the mac environment php8.x Unable to load dynamic library 'wasm'
- Go wasm not supported ? HOT 1
- Build fails on Ubuntu 18.04 HOT 6
- How to set parameter type to i64 in imported functions HOT 3
- Compilation issue on ppa:ondrej/php HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasmer-php.