hhvm / homebrew-hhvm

Official Mac OS X Homebrew formula for HHVM
MIT License
81 stars 22 forks source link

brew install hhvm results in error 2 on os x el captain 10.11.6 #59

Closed Haszprus closed 8 years ago

Haszprus commented 8 years ago

Description

Hi,

I need to set up hhvm on my machine. I tried to brew install hhvm but it resulted in the following error:

[ 10%] Built target hack make: *\ [all] Error 2

Gist: https://gist.github.com/865b5f31ab828f59d0d3a0b17829e9c8

My brew is up to date and I've addressed the only issue that the brew doctor found (it was just a missing documentation anyways)

Thank you for your help in advance.

Context and Logs

Parameter Value
OS X Version: 10.11.6
Homebrew Version: 1.0.7
Xcode Version: none

Output of clang -v: Apple LLVM version 7.3.0 (clang-703.0.31) Target: x86_64-apple-darwin15.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Build logs: https://gist.github.com/865b5f31ab828f59d0d3a0b17829e9c8

aorenste commented 8 years ago

I believe that this is a known issue with the new version of MacOS X - @mofarrell is working on a fix.

jwatzman commented 8 years ago

I thought @mofarrell did fix this yesterday (525605e816379a25db77d428f45ae4ef28ab4b94) -- @Haszprus, can you try a brew update and then build again?

Haszprus commented 8 years ago

@jwatzman yeah thanks it helped, now I got a different error, and the process can reach 26%.

OHASZPRA-MBP:~ ohaszpra$ brew install hhvm ==> Installing hhvm from hhvm/hhvm ==> Downloading http://dl.hhvm.com/source/hhvm-3.15.1.tar.bz2 Already downloaded: /Users/ohaszpra/Library/Caches/Homebrew/hhvm-3.15.1.tar.bz2 ==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/hhvm/3.15.1 -DDEFAULT_CONFIG_DIR=/usr/local/etc/hhvm -DCMAKE_CXX_COMPILER=/usr/local/opt/llv ==> make Last 15 lines from /Users/ohaszpra/Library/Logs/Homebrew/hhvm/02.make: make[5]: * [include/mysqld_error.h] Error 133 make[5]: * Deleting file `include/mysqld_error.h' make[4]: * [extra/CMakeFiles/GenError.dir/all] Error 2 make[3]: * [all] Error 2 make[2]: * [third-party/webscalesqlclient/build/src/webscalesqlclient-stamp/webscalesqlclient-build] Error 2 make[1]: * [third-party/webscalesqlclient/CMakeFiles/webscalesqlclient.dir/all] Error 2 make[1]: * Waiting for unfinished jobs.... [ 26%] Building CXX object third-party/wangle/CMakeFiles/wangle.dir/src/wangle/ssl/TLSTicketKeyManager.cpp.o 2 warnings generated. 2 warnings generated. [ 26%] Linking CXX static library libwangle.a /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libwangle.a(Dummy.cpp.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libwangle.a(Dummy.cpp.o) has no symbols [ 26%] Built target wangle make: * [all] Error 2

Gist: https://gist.github.com/ddb1d9d63b95a19ec5679a8e76cbae56

jwatzman commented 8 years ago

Here's the actual error from that gist:

[ 92%] Generating ../include/mysqld_error.h, ../sql/share/english/errmsg.sys
dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
  Referenced from: /private/tmp/hhvm-20161014-94964-16vdh0j/hhvm-3.15.1/third-party/webscalesqlclient/mysql-5.6/extra/./comp_err
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _clock_gettime
  Referenced from: /private/tmp/hhvm-20161014-94964-16vdh0j/hhvm-3.15.1/third-party/webscalesqlclient/mysql-5.6/extra/./comp_err
  Expected in: /usr/lib/libSystem.B.dylib

I think this is an understood issue, I don't remember what the solution is though?

mofarrell commented 8 years ago

@aorenste Fixed the issue for that library da88c55459af753012dfb6b915bd2f34384fb53d.