hhvm / homebrew-hhvm

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

Build fails due to "Trace/BPT trap" in webscalesql comp_err #56

Closed Synchro closed 8 years ago

Synchro commented 8 years ago

Description

hhvm build fails with a C++14 warning and a problem with libwangle. This sounds similar to #51, but it's not quite the same:

==> Upgrading 1 outdated package, with result:
hhvm/hhvm/hhvm 3.14.5
==> Upgrading hhvm/hhvm/hhvm
==> Downloading http://dl.hhvm.com/source/hhvm-3.14.5.tar.bz2
Already downloaded: /Users/marcus/Library/Caches/Homebrew/hhvm-3.14.5.tar.bz2
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/hhvm/3.14.5 -DDEFAULT_CONFIG_DIR=/usr/local/etc/hhvm -DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ -
==> make
Last 15 lines from /Users/marcus/Library/Logs/Homebrew/hhvm/02.make:
      : singleton_([createFunc = std::move(createFunc)]() mutable {
                    ^
/tmp/hhvm-20160920-31835-gn8uyn/hhvm-3.14.5/third-party/folly/folly/SingletonThreadLocal.h:33:36: warning: initialized lambda captures are a C++14 extension [-Wc++14-extensions]
          return new ThreadLocalT([createFunc =
                                   ^
4 warnings generated.
4 warnings generated.
6 warnings generated.
4 warnings generated.
4 warnings generated.
[ 25%] 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
[ 25%] Built target wangle
make: *** [all] Error 2

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
  https://github.com/hhvm/homebrew-hhvm/issues

These open issues may also help:
hhvm make fail due to missing mysql_get_ssl_session_reused / mysql_get_file_descriptor https://github.com/hhvm/homebrew-hhvm/issues/29

Context and Logs

Parameter Value
OS X Version: 10.11.6
Homebrew Version: 0.9.9
Xcode Version: 8.0

Output of clang -v:

Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Build logs: https://gist.github.com/Synchro/4ef9b64caa6fec0f9b4d9c4c4f627a40

paulbiss commented 8 years ago

Those are warnings. The error (from your build logs) appears to be:

[ 24%] Building CXX object third-party/wangle/CMakeFiles/wangle.dir/src/wangle/concurrent/CPUThreadPoolExecutor.cpp.o
/bin/sh: line 1: 45214 Trace/BPT trap: 5       ./comp_err --charset=/tmp/hhvm-20160920-31835-gn8uyn/hhvm-3.14.5/third-party/webscalesqlclient/src/sql/share/charsets --out-dir=/tmp/hhvm-20160920-31835-gn8uyn/hhvm-3.14.5/third-party/webscalesqlclient/mysql-5.6/sql/share/ --header_file=/tmp/hhvm-20160920-31835-gn8uyn/hhvm-3.14.5/third-party/webscalesqlclient/mysql-5.6/include/mysqld_error.h --name_file=/tmp/hhvm-20160920-31835-gn8uyn/hhvm-3.14.5/third-party/webscalesqlclient/mysql-5.6/include/mysqld_ername.h --state_file=/tmp/hhvm-20160920-31835-gn8uyn/hhvm-3.14.5/third-party/webscalesqlclient/mysql-5.6/include/sql_state.h --in_file=/tmp/hhvm-20160920-31835-gn8uyn/hhvm-3.14.5/third-party/webscalesqlclient/src/sql/share/errmsg-utf8.txt
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....
jwatzman commented 8 years ago

That's a new one :\ Does it fail in the same way if you try again? Note that you have to look at the full logs for errors, the bit spit out at the end is totally useless.

If you get past this problem, you will still hit UChar issues due to onig, which is being tracked in #50.

mofarrell commented 8 years ago

I believe this is a duplicate of #59 these logs also show the same symbol binding error.

dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
  Referenced from: /private/tmp/hhvm-20160920-31835-gn8uyn/hhvm-3.14.5/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-20160920-31835-gn8uyn/hhvm-3.14.5/third-party/webscalesqlclient/mysql-5.6/extra/./comp_err
  Expected in: /usr/lib/libSystem.B.dylib