hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

Problem building HHVM on Mac OS X 10.9 Mavericks

Open paroski opened this issue 12 years ago • 4 comments

showaz in IRC reports (para-phrased):

There seems to be problems with stdlib on Mavericks (Mac OS X 10.9); it seems to be using libc++ by default, but libstdc++ removed more code? I suspect these changes might be related to the problem:

https://github.com/facebook/folly/pull/58 https://github.com/facebook/hhvm/blob/master/CMake/HPHPCompiler.cmake#L50-L54

HHVM doesn't build correctly on Mavericks, which is making it hard for me to run tests using travis-ci. There seem to be a number of gcc-related problems on Mavericks and FreeBSD for HHVM.

I suspect the facebook/folly library's detection of c++11 is not working correctly (_LIBCPP_VERSION). When I try to linking the boost library + hhvm is uses 100% cpu and eventually crashes Cmake.

Maybe HHVM could not use GCC and use LLVM+CLang instead (http://llvm.org/apt/) to speed up build times?

paroski avatar Apr 03 '14 03:04 paroski

Here is showaz's github name if you need more info from him: https://github.com/denji

paroski avatar Apr 03 '14 03:04 paroski

Clang C++11 migrate links:

  • clang-modernize is a standalone tool used to automatically convert C++ code written against old standards to use features of the newest C++ standard where appropriate.
  • clang-format - A tool to format C/C++/Obj-C code
  • https://www.irill.org/videos/euro-llvm-2013
  • http://channel9.msdn.com/Events/GoingNative/2013/The-Care-and-Feeding-of-C-s-Dragons

denji avatar Apr 03 '14 04:04 denji

You have seen https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-OSX-10.9, right? A bunch of people have managed to build it according to those instructions.

scannell avatar Apr 03 '14 10:04 scannell

If you want to work on clang support, feel free, we'd be happy to take a patch. We'd like to have it as an option and we've done some work to get it to compile on Linux for the purpose of using clang's static analyzer but getting it to actually run is another matter given the degree of low-level code in HHVM.

scannell avatar Apr 03 '14 10:04 scannell