hhvm / homebrew-hhvm

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

brew install hhvm fails #52

Closed rmondragon closed 8 years ago

rmondragon commented 8 years ago

Description

fails during installation

Context and Logs

$ make

[[deprecated("Please use one of the cast family of functions instead.")]] ^ In file included from /tmp/hhvm-20160905-69751-bvhwal/hhvm-3.14.5/hphp/runtime/base/runtime-option.cpp:46: In file included from /tmp/hhvm-20160905-69751-bvhwal/hhvm-3.14.5/hphp/runtime/server/satellite-server.h:21: In file included from /tmp/hhvm-20160905-69751-bvhwal/hhvm-3.14.5/hphp/runtime/base/ini-setting.h:20: In file included from /tmp/hhvm-20160905-69751-bvhwal/hhvm-3.14.5/hphp/runtime/base/type-variant.h:26: /tmp/hhvm-20160905-69751-bvhwal/hhvm-3.14.5/hphp/runtime/base/type-resource.h:132:5: warning: use of the 'deprecated' attribute is a C++14 extension [-Wc++14-extensions] [[deprecated("Please use one of the cast family of functions instead.")]] ^ 2 warnings generated. 4 warnings generated. 4 warnings generated. 4 warnings generated. make[1]: * [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/all] Error 2 make: * [all] Error 2

Parameter Value
OS X Version: EL Capitan - 10.11.6 (15G31)
Homebrew Version: Homebrew 0.9.9 (git revision efd29e; last commit 2016-09-05) Homebrew/homebrew-core (git revision f248; last commit 2016-09-04)
Xcode Version: Xcode 7.3.1 Build version 7D1014

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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Build logs:

paulbiss commented 8 years ago

Please paste the full error logs, the context you've provided shows a warning but not the cause of the build failure.

mrkiffie commented 8 years ago

I get a similar error - when doing brew upgrade hhvm/hhvm/hhvm

I think it is related to brew no longer allowing openssl to be linked - I upgraded openssl over the weekend.

brew link openssl --force
Warning: Refusing to link: openssl
Linking keg-only openssl means you may end up linking against the insecure,
deprecated system OpenSSL while using the headers from Homebrew's openssl.
Instead, pass the full include/library paths to your compiler e.g.:
  -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib

I'm gonna try updating the cmake command locally to see if that resolves the issue.

jwatzman commented 8 years ago

I don't think linking openssl should be a problem, we already pass the full include/library paths. Please do include the gist-logs, as the issue template asked you to do...

I suspect this is #50 but need those to confirm.

mrkiffie commented 8 years ago

@jwatzman thanks for clarifying about the linking.

Here is the system's gist-logs.

I'm not sure if there is much of a difference between brew upgrade hhvm and brew install hhvm. Both are failing for me.

danslo commented 8 years ago

The problem here is:

/usr/local/opt/oniguruma/include/oniguruma.h:367:61: error: unknown type name 'UChar'
int onigenc_is_valid_mbc_string P_((OnigEncoding enc, const UChar* s, const UChar* end));

So, dupe of #50.

jwatzman commented 8 years ago

Yep.

fullskill commented 8 years ago

Hello,

I fix my issues step by step :

    -DBOOST_INCLUDEDIR=$(brew --prefix boost160)/include \
    -DBOOST_LIBRARYDIR=$(brew --prefix boost160)/lib \
     -DOPENSSL_SSL_LIBRARY=$(brew --prefix openssl)/lib/libssl.dylib \
     -DOPENSSL_INCLUDE_DIR=$(brew --prefix openssl)/include \
     -DOPENSSL_CRYPTO_LIBRARY=$(brew --prefix openssl)/lib/libcrypto.dylib \

I Hope it will help someone.

jwatzman commented 8 years ago

A bunch of the above should be unnecessary. The onig stuff is still broken, but I'm trying to get it fixed upstream. You can track the issue in #50.