hhvm / homebrew-hhvm

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

hhvm make fail due to missing mysql_get_ssl_session_reused / mysql_get_file_descriptor #29

Closed ldct closed 8 years ago

ldct commented 8 years ago

verbose logs at https://gist.github.com/anonymous/e5d605efda542460f9084049cf45f02a

➜  brew install hhvm
==> Installing hhvm from hhvm/hhvm
==> Downloading http://dl.hhvm.com/source/hhvm-3.12.1.tar.bz2
Already downloaded: /opt/boxen/cache/homebrew/hhvm-3.12.1.tar.bz2
==> cmake -DCMAKE_INSTALL_PREFIX=/opt/boxen/homebrew/Cellar/hhvm/3.12.1 -DDEFAULT_CONFIG_DIR=/opt/boxen/homebrew/etc/hhvm -DCMAKE_CXX_COMPILER=/opt/boxen/homebrew/opt/llvm/bin/clang++ -DCMAKE_C_COMPILER=/opt/box
==> make
Last 15 lines from /Users/xuanjili/Library/Logs/Homebrew/hhvm/02.make:
1 warning generated.
[ 28%] Building CXX object third-party/wangle/CMakeFiles/wangle.dir/src/wangle/concurrent/IOThreadPoolExecutor.cpp.o
[ 28%] Building CXX object third-party/wangle/CMakeFiles/wangle.dir/src/wangle/concurrent/ThreadPoolExecutor.cpp.o
1 warning generated.
[ 28%] Building CXX object third-party/wangle/CMakeFiles/wangle.dir/src/wangle/deprecated/rx/Dummy.cpp.o
[ 29%] Building CXX object third-party/wangle/CMakeFiles/wangle.dir/src/wangle/ssl/PasswordInFile.cpp.o
[ 29%] Building CXX object third-party/wangle/CMakeFiles/wangle.dir/src/wangle/ssl/SSLContextManager.cpp.o
[ 29%] Building CXX object third-party/wangle/CMakeFiles/wangle.dir/src/wangle/ssl/SSLSessionCacheManager.cpp.o
[ 29%] Building CXX object third-party/wangle/CMakeFiles/wangle.dir/src/wangle/ssl/SSLUtil.cpp.o
[ 29%] Building CXX object third-party/wangle/CMakeFiles/wangle.dir/src/wangle/ssl/TLSTicketKeyManager.cpp.o
[ 29%] Linking CXX static library libwangle.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libwangle.a(Dummy.cpp.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libwangle.a(Dummy.cpp.o) has no symbols
[ 29%] Built target wangle
make: *** [all] Error 2

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

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:353:in `open_http': 422 Unprocessable Entity (GitHub::Error)
Validation Failed
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:709:in `buffer_open'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:210:in `block in open_loop'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:208:in `catch'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:208:in `open_loop'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:689:in `open'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open-uri.rb:30:in `open'
    from /opt/boxen/homebrew/Library/Homebrew/utils.rb:555:in `open'
    from /opt/boxen/homebrew/Library/Homebrew/utils.rb:586:in `issues_matching'
    from /opt/boxen/homebrew/Library/Homebrew/utils.rb:618:in `issues_for_formula'
    from /opt/boxen/homebrew/Library/Homebrew/exceptions.rb:222:in `fetch_issues'
    from /opt/boxen/homebrew/Library/Homebrew/exceptions.rb:218:in `issues'
    from /opt/boxen/homebrew/Library/Homebrew/exceptions.rb:263:in `dump'
    from /opt/boxen/homebrew/Library/brew.rb:132:in `rescue in <main>'
    from /opt/boxen/homebrew/Library/brew.rb:28:in `<main>'
jwatzman commented 8 years ago

Not sure what causes it, but this is the relevant bit:

In file included from /tmp/hhvm20160413-43677-735yzb/hhvm-3.12.1/third-party/squangle/squangle/mysql_client/AsyncConnectionPool.cpp:11:
In file included from /tmp/hhvm20160413-43677-735yzb/hhvm-3.12.1/third-party/squangle/src/squangle/mysql_client/AsyncConnectionPool.h:38:
/tmp/hhvm20160413-43677-735yzb/hhvm-3.12.1/third-party/squangle/src/squangle/mysql_client/AsyncMysqlClient.h:554:12: error: use of undeclared identifier 'mysql_get_ssl_session_reused'
    return mysql_get_ssl_session_reused(mysql_connection_->mysql());
           ^
/tmp/hhvm20160413-43677-735yzb/hhvm-3.12.1/third-party/squangle/squangle/mysql_client/AsyncConnectionPool.cpp:707:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long' [-Wformat]
          num_open,
          ^~~~~~~~
/tmp/hhvm20160413-43677-735yzb/hhvm-3.12.1/third-party/squangle/squangle/mysql_client/AsyncConnectionPool.cpp:708:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long' [-Wformat]
          num_opening,
          ^~~~~~~~~~~
/tmp/hhvm20160413-43677-735yzb/hhvm-3.12.1/third-party/squangle/squangle/mysql_client/AsyncConnectionPool.cpp:730:7: error: use of undeclared identifier 'mysql_get_file_descriptor'
      mysql_get_file_descriptor(mysql_conn->mysql()));
      ^
2 warnings and 2 errors generated.
make[2]: *** [third-party/squangle/CMakeFiles/squangle.dir/squangle/mysql_client/AsyncConnectionPool.cpp.o] Error 1
make[1]: *** [third-party/squangle/CMakeFiles/squangle.dir/all] Error 2
webpatser commented 8 years ago

I get this error during make: [ 97%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/jit/write-lease.cpp.o [ 97%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/verifier/cfg.cpp.o [ 97%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/verifier/check-func.cpp.o [ 98%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/verifier/check-unit.cpp.o [ 98%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/verifier/pretty.cpp.o [ 98%] Building CXX object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/verifier/util.cpp.o [ 98%] Building C object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/jit/vtune/jitprofiling.c.o [ 98%] Building ASM object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/base/mixed-array-x64.S.o [ 98%] Building ASM object hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/jit/translator-asm-helpers.S.o 19 warnings generated. [ 98%] Linking CXX static library libhphp_runtime.a /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_runtime.a(mixed-array-x64.S.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_runtime.a(mixed-array-x64.S.o) has no symbols [ 98%] Built target hphp_runtime_static make: *** [all] Error 2

imcom commented 8 years ago

same here. Kept failing with no luck. Here is my ENV:

[ 46%] Built target hphp_analysis make: *\ [all] Error 2 ==> Formula Tap: hhvm/hhvm Path: /usr/local/Library/Taps/hhvm/homebrew-hhvm/hhvm.rb ==> Configuration HOMEBREW_VERSION: 0.9.9 ORIGIN: https://github.com/Homebrew/brew.git HEAD: 8e42077a8eeb827c3ffcdf08195239c8f82cb588 Last commit: 9 hours ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: 8c4ab75df9e3b70574a0517c8c9effdd9b4a98ec Core tap last commit: 6 hours ago HOMEBREW_PREFIX: /usr/local HOMEBREW_REPOSITORY: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com CPU: quad-core 64-bit haswell OS X: 10.11.4-x86_64 Xcode: 7.3 CLT: N/A Clang: 7.3 build 703 X11: 2.7.8 => /opt/X11 System Ruby: 2.0.0-p648 Perl: /usr/bin/perl Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/bin/python2.7 Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.3.0/bin/ruby Java: 1.8.0_45 ==> ENV HOMEBREW_CC: clang HOMEBREW_CXX: clang++ SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk MAKEFLAGS: -j4 CMAKE_PREFIX_PATH: /usr/local/opt/llvm:/usr/local/opt/gettext:/usr/local/opt/icu4c:/usr/local/opt/openssl:/usr/local/opt/readline:/usr/local/opt/sqlite:/usr/local CMAKE_INCLUDE_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/apache2:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers CMAKE_LIBRARY_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries CMAKE_FRAMEWORK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks MACOSX_DEPLOYMENT_TARGET: 10.11 PKG_CONFIG_PATH: /usr/local/opt/libelf/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/fontconfig/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/gd/lib/pkgconfig:/usr/local/opt/glog/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig:/usr/local/opt/jemalloc/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/libevent/lib/pkgconfig:/usr/local/opt/libmemcached/lib/pkgconfig:/usr/local/opt/libzip/lib/pkgconfig:/usr/local/opt/lz4/lib/pkgconfig:/usr/local/opt/oniguruma/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig:/usr/local/opt/sqlite/lib/pkgconfig PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.11 HOMEBREW_SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal

imcom commented 8 years ago

so what would be the step to solve this? Uninstall X11 Quartz?

meilunzhi commented 8 years ago

☁ ~ ss brew install hhvm [proxychains] config file found: /Users/meilunzhi/.proxychains/proxychains.conf [proxychains] preloading /usr/local/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib ==> Installing hhvm from hhvm/hhvm ==> Downloading http://dl.hhvm.com/source/hhvm-3.13.1.tar.bz2 Already downloaded: /Library/Caches/Homebrew/hhvm-3.13.1.tar.bz2 ==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/hhvm/3.13.1 -DDEFAULT_CONFIG_DIR=/usr/local/etc/hhvm -DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ -DCMAKE_C_COMPILER=/usr/ ==> make Last 15 lines from /Users/meilunzhi/Library/Logs/Homebrew/hhvm/02.make: clang-3.6: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. clang-3.6: note: diagnostic msg:


PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-3.6: note: diagnostic msg: /var/folders/ww/glqy1cfd14b58vfmwdnfkjqm0000gn/T/store-elim-3e6055.cpp clang-3.6: note: diagnostic msg: /var/folders/ww/glqy1cfd14b58vfmwdnfkjqm0000gn/T/store-elim-3e6055.sh clang-3.6: note: diagnostic msg:


make[2]: * [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/jit/store-elim.cpp.o] Error 254 make[2]: * Waiting for unfinished jobs.... make[1]: * [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/all] Error 2 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: brew install hhvm https://github.com/hhvm/homebrew-hhvm/issues/30 hhvm make fail https://github.com/hhvm/homebrew-hhvm/issues/29

jwatzman commented 8 years ago

@imcom and @Denniskevin -- I really have no idea what @denji is talking about. There has been some report of an incompatibility with XQuartz but I've never repro'd it myself (and I've built successfully on machines with it installed). There definitely is an incompatibility with MacPorts at /opt/local, but you haven't provided enough information here for me to see what's going on. brew gist-logs is the most useful, but a pastebin of the full output of brew install hhvm --verbose is better than nothing.

You might also be better off opening a new issue, in case there is a separate root cause. This bug is about a specific mysql failure.

imcom commented 8 years ago

hi @jwatzman I think the #30 contains all related info. I will keep my eyes on that thread instead. Thanks for your reply.

jwatzman commented 8 years ago

@imcom yes thanks, it's a different root cause so good to have two issues.

jwatzman commented 8 years ago

@Denniskevin @huangtao800 to keep this thread clean, I've removed your comments since there isn't any useful debug information in them. Please feel free to link to a pastebin with the FULL output of brew install hhvm --verbose. (Filing a new issue might be a good idea, there are at least two disparate root causes reported so far.) The clips that brew shows by default are completely useless.

huangtao800 commented 8 years ago

brew install complete output is here https://gist.github.com/huangtao800/7fab6276fe063780a8a41a5b116b5dd2 It complains the same thing.(Please manually paste the url if you cannot see the page.)

jwatzman commented 8 years ago

@huangtao800 your error is actually #30.

csdougliss commented 8 years ago

Same error here:

==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/hhvm/3.13.1 -DDEFAULT_CONFIG_DIR=/usr/local/etc/hhvm -DCMAKE_CXX_COMPILER=/usr/local/opt/llvm/bin/clang++ -DCMAKE_C_COMPILER=/usr/local/opt/llvm/bin/clang -DCMAKE_ASM_COMPILER=/usr/local/opt/llvm/bin/clang -DENABLE_MCROUTER=OFF -DENABLE_EXTENSION_MCROUTER=OFF -DEN
==> make
Last 15 lines from /Users/ccarnell/Library/Logs/Homebrew/hhvm/02.make:
clang-3.6: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang-3.6: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.6: note: diagnostic msg: /var/folders/wb/mm4hf06d07140gbgt_g9s_8r0000gn/T/store-elim-751303.cpp
clang-3.6: note: diagnostic msg: /var/folders/wb/mm4hf06d07140gbgt_g9s_8r0000gn/T/store-elim-751303.sh
clang-3.6: note: diagnostic msg: 

********************
make[2]: *** [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/jit/store-elim.cpp.o] Error 254
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/all] Error 2
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
jwatzman commented 8 years ago

@craigcarnell The default brew output is useless here. Please attach brew gist-logs hhvm.

jwatzman commented 8 years ago

If you are posting on this thread because you think you have the same issue, please attach brew gist-logs hhvm! The default output is truncated and completely useless.

(I really don't want to lock this thread but it's starting to get very messy.)

csdougliss commented 8 years ago

@jwatzman https://gist.github.com/craigcarnell/d637a729f4fca7df2e4a0570fb16bb51

jwatzman commented 8 years ago

@craigcarnell your issue is unrelated to this one, you actually managed to trip an assert in clang (see the bottom of your main output), and should report it to them. (Make sure you do brew update && brew upgrade first just in case.)

csdougliss commented 8 years ago

@jwatzman Done thanks https://github.com/facebook/hhvm/issues/7021

iangcarroll commented 8 years ago

@jwatzman If you still need a log: https://gist.github.com/anonymous/f1396bd71a043455e45cc70507522404

jwatzman commented 8 years ago

@iangcarroll your issue is https://github.com/facebook/hhvm/issues/7040

huangtao800 commented 8 years ago

It looks like I have a new error here. https://gist.github.com/huangtao800/c6ae69e0274fdfe6dd1327221a50b0d9

jwatzman commented 8 years ago

@huangtao800 your error is also facebook/hhvm#7040

jwatzman commented 8 years ago

This issue is locked to prevent random unrelated errors being posted here and clogging up the thread. Homebrew is incorrectly suggesting that this issue may be related to what you're seeing but it probably isn't. If you are having a problem, please feel free to open a new issue.

jwatzman commented 8 years ago

I haven't gotten a repro of this or seen any other reports, so I'm going to close this, as it still appears at the bottom of every build error log for whatever silly reason brew insists it's related to everything when it's not. Please continue to feel free to file new issues if you have build problems, and we'll triage as appropriate.