oraoto / pib

PHP in Browser (powered by WebAssembly)
https://oraoto.github.io/pib/
Apache License 2.0
956 stars 112 forks source link

Compile error #10

Closed rodion-k closed 6 years ago

rodion-k commented 6 years ago

After running bash build.sh I'm get this error:

/bin/bash /home/rodion/pib/php-7.3.0beta2/libtool --silent --preserve-dup-deps --mode=compile /home/rodion/emsdk/emscripten/1.38.12/emcc      -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -IZend/ -I/home/rodion/pib/php-7.3.0beta2/Zend/ -DPHP_ATOM_INC -I/home/rodion/pib/php-7.3.0beta2/include -I/home/rodion/pib/php-7.3.0beta2/main -I/home/rodion/pib/php-7.3.0beta2 -I/home/rodion/pib/php-7.3.0beta2/ext/date/lib -I/home/rodion/pib/php-7.3.0beta2/TSRM -I/home/rodion/pib/php-7.3.0beta2/Zend    -fvisibility=hidden -DZEND_SIGNALS   -c /home/rodion/pib/php-7.3.0beta2/Zend/zend_string.c -o Zend/zend_string.lo 
/home/rodion/pib/php-7.3.0beta2/Zend/zend_string.c:23:11: fatal error: 'valgrind/callgrind.h' file not found
# include "valgrind/callgrind.h"
          ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
Makefile:787: recipe for target 'Zend/zend_string.lo' failed
make: *** [Zend/zend_string.lo] Error 1
mkdir: cannot create directory ‘out’: File exists
ERROR:root:libs/libphp7.a: No such file or directory ("libs/libphp7.a" was expected to be an input file, based on the commandline arguments provided)
cp: cannot stat 'out/php.wasm': No such file or directory
cp: cannot stat 'out/php.js': No such file or directory
cp: cannot stat 'out/php.data': No such file or directory
Done

emcc 1.38.12 OS: Ubuntu 18.04

Thanks

oraoto commented 6 years ago

It seems HAVE_VALGRIND was defined, maybe we should add --with-valgrind=no to the build config.

rodion-k commented 6 years ago

It helps, thank you!

oraoto commented 6 years ago

Fixed in https://github.com/oraoto/pib/commit/a9b62b527570a4e9ff9170b3005ef6977a764bd0