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

3.15.3 Source version fails to build on OSX 10.12.2 #7560

Closed
xssworm opened this issue Dec 18, 2016 · 9 comments
Closed

3.15.3 Source version fails to build on OSX 10.12.2 #7560

xssworm opened this issue Dec 18, 2016 · 9 comments

Comments

@xssworm
Copy link

xssworm commented Dec 18, 2016

HHVM Version 3.15.3

log.txt

@daviddoran
Copy link
Contributor

Same call__frame undefined error reported in hhvm/homebrew-hhvm:
hhvm/homebrew-hhvm#63

Also reported in a few comments:

hhvm/homebrew-hhvm#58 (comment)
hhvm/homebrew-hhvm#58 (comment)
https://gist.github.com/robopuff/6693eb1bd5f03a4d4a9ba58c0bdf6a11#gistcomment-1948094

@mofarrell
Copy link
Contributor

Master incorporated a fix for this in august. Either use an older version of ocaml, or cherrypick 28eefc4#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.

@xssworm
Copy link
Author

xssworm commented Dec 20, 2016

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

@mofarrell
Copy link
Contributor

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?

@daviddoran
Copy link
Contributor

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

@xssworm
Copy link
Author

xssworm commented Dec 22, 2016

thanks @daviddoran
It works.

@mkillianey
Copy link

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.

@lplofchan
Copy link

@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 <libxml/parser.h>
^
[ 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!

@mofarrell
Copy link
Contributor

This has been fixed in august 28eefc4. 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.

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

5 participants