Hhvm: 3.15.3 Source version fails to build on OSX 10.12.2

Created on 19 Dec 2016  路  9Comments  路  Source: facebook/hhvm

HHVM Version 3.15.3

log.txt

Most helpful comment

I eventually managed to build HHVM successfully by reverting my OCaml version. Used something like these commands (though I probably missed some because it was trial-and-error):

brew unlink ocamlbuild
brew switch ocaml 4.02.3
brew link --overwrite ocamlbuild
opam switch 4.02.3
brew upgrade hhvm

All 9 comments

Master incorporated a fix for this in august. Either use an older version of ocaml, or cherrypick https://github.com/facebook/hhvm/commit/28eefc45ef093c0d81e62375bd7cb22eb6d4b947#diff-762268a3020b817fe6204b4dc7188494 before building
A mode where we could disable building hack might be nice. In this case the error is not occuing in the hhvm, but still breaks it.

not only ocaml 4.0.4, I had tested ocaml 4.0.1, 4.0.2, 4.0.3, all of above occurs this error

This caml__frame issue should not be a problem in versions before 4.04
Perhaps there are other issues though. Do you have another log?

I eventually managed to build HHVM successfully by reverting my OCaml version. Used something like these commands (though I probably missed some because it was trial-and-error):

brew unlink ocamlbuild
brew switch ocaml 4.02.3
brew link --overwrite ocamlbuild
opam switch 4.02.3
brew upgrade hhvm

thanks @daviddoran
It works.

FWIW, I didn't happen to have an pre-4.04 ocaml installed, so my workaround was:

HOMEBREW_CORE=/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
OCAML_FORMULA=Formula/ocaml.rb
brew uninstall ocaml ocamlbuild
# Get the recipe for ocaml 4.03
curl https://raw.githubusercontent.com/Homebrew/homebrew-core/6c6d86c7c0f9f0881650b9a11c5ce6c61e7b9824/$OCAML_FORMULA \
  > $HOMEBREW_CORE/$OCAML_FORMULA
# Install hhvm using 4.03
brew install ocaml ocamlbuild hhvm
# Restore ocaml 4.04 recipe so brew repo isn't dirty
git -C $HOMEBREW_CORE checkout -- $OCAML_FORMULA

This worked for me on OSX 10.11.6.

@mkillianey you are right, i incorrectly missed the HOMEBREW_CORE=/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
line.

while that did allow me to curl and start installing hhvm, i still ended up with an error that said this:
`[ 54%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/memory-manager.cpp.o
[ 54%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/mixed-array.cpp.o
[ 54%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/object-data.cpp.o
In file included from /tmp/hhvm-20170102-1775-13m2n6d/hhvm-3.15.3/hphp/runtime/base/object-data.cpp:32:
In file included from /tmp/hhvm-20170102-1775-13m2n6d/hhvm-3.15.3/hphp/runtime/ext/simplexml/ext_simplexml.h:22:
/tmp/hhvm-20170102-1775-13m2n6d/hhvm-3.15.3/hphp/runtime/ext/libxml/ext_libxml.h:23:10: fatal error: 'libxml/parser.h' file not found

include

     ^

[ 54%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/output-file.cpp.o

[ 55%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/packed-array.cpp.o

1 error generated.

make[2]: * [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/object-data.cpp.o] Error 1

make[2]: * Waiting for unfinished jobs....

make[1]: * [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/all] Error 2

make: * [all] Error 2
`

I am somehow missing some files from the libxml directory, i think. do you have any idea of what is causing this problem/how to fix it? thank you so much!

This has been fixed in august 28eefc45ef093c0d81e62375bd7cb22eb6d4b947. It will not be experienced on HHVM master. This fix will not be backported to the LTS releases as of now. It seems most people are having issues during the homebrew installation. This will be fixed when we bump to 3.17.1 (hopefully soon). There is also an issue tracking this in the homebrew repo.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ZhijieWang picture ZhijieWang  路  6Comments

HRMsimon picture HRMsimon  路  4Comments

ahmadazimi picture ahmadazimi  路  7Comments

karek314 picture karek314  路  6Comments

fredemmott picture fredemmott  路  3Comments