facebook/hiphop-php — Issue #480: Compilation issues on FreeBSD 8.2 64Bit
Author: slimeyboy
Created: 2012-01-29 00:44:17+00:00
State: open

Hi.

I managed to get cmake to do it's thing by installing all the dependencies inc. custom libcurl & libevent. However, when I try to issues a make it fails as follows:

[ 1%] Built target xhp
[ 1%] Built target afdt
[ 12%] Built target mbfl
[ 12%] Built target sqlite3
[ 13%] Built target timelib
[ 13%] Building CXX object src/CMakeFiles/hphp_runtime_static.dir/runtime/base/builtin_functions.cpp.o
In file included from /home/dropcatching/hiphop/hiphop-php/src/runtime/eval/debugger/debugger_thrift_buffer.h:20:0,
from /home/dropcatching/hiphop/hiphop-php/src/runtime/eval/debugger/break_point.h:20,
from /home/dropcatching/hiphop/hiphop-php/src/runtime/eval/debugger/debugger_base.h:20,
from /home/dropcatching/hiphop/hiphop-php/src/runtime/eval/debugger/dummy_sandbox.h:22,
from /home/dropcatching/hiphop/hiphop-php/src/runtime/eval/debugger/debugger_proxy.h:24,
from /home/dropcatching/hiphop/hiphop-php/src/runtime/eval/debugger/debugger.h:21,
from /home/dropcatching/hiphop/hiphop-php/src/runtime/base/builtin_functions.cpp:25:
/home/dropcatching/hiphop/hiphop-php/src/runtime/base/util/thrift_buffer.h:31:23: fatal error: byteswap.h: No such file or directory

If I look at /home/dropcatching/hiphop/hiphop-php/src/runtime/base/util/thrift_buffer it's supposed to identify if the system is FreeBSD and if it is it shouldn't even look for byteswap.h. I've tried setting the FREEBSD flag before running the make but to no avail.

These are my env vars:

setenv HPHP_HOME `pwd`
setenv HPHP_LIB `pwd`/bin
setenv CMAKE_PREFIX_PATH /home/dropcatching/hiphop/customlibs
setenv FREEBSD 1
setenv CC /usr/local/bin/gcc46
setenv CXX /usr/local/bin/g++46

Any help would be much appreciated as I've been pulling my hair out with this for days now :(

Thanks in advance.

Simon