Problem building HHVM on Mac OS X 10.9 Mavericks
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?
Here is showaz's github name if you need more info from him: https://github.com/denji
Clang C++11 migrate links:
- http://cpp11-migrate.atlassian.net
- C++ Modernizer
- C++11 Migrator
- tool used to automatically convert C++ code written against old standards to use features of the newest C++ standard where appropriate
- Clang Static Analyzer
- Bear is a tool to generate compilation database for clang tooling.
- include-what-you-use - tool for use with clang to analyze #includes in C and C++ source files (GitHub mirror)
- 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
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.
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.