Tuesday, November 15, 2011

Err: HipHop checkSystemGVOrder: Assertion `false' failed

Error:
While compiling PHP applications using hiphop,
running hphp...
parsing inputs...
parsing inputs took 0'07" (7204 ms) wall time
pre-optimizing...
pre-optimizing took 0'02" (2224 ms) wall time
inferring types...
inferring types took 0'00" (663 ms) wall time
post-optimizing...
post-optimizing took 0'00" (509 ms) wall time
creating CPP files...
hphp: /home/ubuntu/Desktop/dev/hiphop-php/src/compiler/analysis/variable_table.cpp:818: void HPHP::VariableTable::checkSystemGVOrder(HPHP::SymbolSet&, unsigned int): Assertion `false' failed.
Core dumped: Aborted
hphp failed
running hphp took 0'12" (12662 ms) wall time

Reason:
This error occurs when the path for HPHP compiler is not set or incorrect path were set.
Solution:
To get the rid of it, run the following command under "hiphop" base directory not from other directory.

$:~/Desktop/dev/hiphop-php# export CMAKE_PREFIX_PATH=`/bin/pwd`/../

$:~/Desktop/dev/hiphop-php# export HPHP_HOME=`/bin/pwd`
$:~/Desktop/dev/hiphop-php# export HPHP_LIB=`/bin/pwd`/bin

or else set the exact path in /etc/environment file if you know.

Note : This is tested under Ubuntu 11.10.

No comments:

Post a Comment