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

PHP Fatal error: Uncaught FFI\Exception: Cannot instantiate FFI\CData of zero size #77

Open
SalimF opened this issue Nov 12, 2020 · 0 comments

Comments

@SalimF
Copy link

SalimF commented Nov 12, 2020

Hi I tried the examples on the README page but I got this error
php bin/compile.php test3.php

PHP Fatal error:  Uncaught FFI\Exception: Cannot instantiate FFI\CData of zero size in /var/www/sitemap/php-compiler/vendor/ircmaxell/php-llvm/ffi/llvm4.php:1602
Stack trace:
#0 /var/www/sitemap/php-compiler/vendor/ircmaxell/php-llvm/ffi/llvm4.php(1602): FFI->new()
#1 /var/www/sitemap/php-compiler/vendor/ircmaxell/php-llvm/lib/LLVMAbstract/Context.php(100): llvm\llvm->makeArray()
#2 /var/www/sitemap/php-compiler/lib/JIT/Context.php(149): PHPLLVM\LLVMAbstract\Context->functionType()
#3 /var/www/sitemap/php-compiler/lib/JIT/Context.php(101): PHPCompiler\JIT\Context->defineBuiltins()
#4 /var/www/sitemap/php-compiler/lib/Runtime.php(105): PHPCompiler\JIT\Context->__construct()
#5 /var/www/sitemap/php-compiler/lib/Runtime.php(153): PHPCompiler\Runtime->loadJitContext()
#6 /var/www/sitemap/php-compiler/bin/compile.php(30): PHPCompiler\Runtime->standalone()
#7 /var/www/sitemap/php-compiler/src/cli.php(89): run()
#8 /var/www/sitemap/php-compiler/bin/compile.php(34): require_once('/var/www/sitema...')
#9 {main}
  thrown in /var/www/sitemap/php-compiler/vendor/ircmaxell/php-llvm/ffi/llvm4.php on line 1602

I install all the requirement php modules and composer return me no error during the install , can someone explain to me how i got this errors .

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