hhvm / homebrew-hhvm

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

brew install hhvm fails to build #72

Closed moshes closed 7 years ago

moshes commented 7 years ago

Description

make fails

Context and Logs

[ 48%] Linking CXX static library libhphp_thrift.a /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(VirtualProfiling.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(TTransportException.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(CompactProtocol.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(CompactV1Protocol.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(JSONProtocol.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(SimpleJSONProtocol.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(SaslAuthService_processmap_binary.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(SaslAuthService_processmap_compact.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(Sasl_constants.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(Sasl_data.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(frozen_data.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(reflection_constants.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(VirtualProfiling.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(TTransportException.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(CompactProtocol.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(CompactV1Protocol.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(JSONProtocol.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(SimpleJSONProtocol.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(SaslAuthService_processmap_binary.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(SaslAuthService_processmap_compact.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(Sasl_constants.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(Sasl_data.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(frozen_data.cpp.o) has no symbols /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libhphp_thrift.a(reflection_constants.cpp.o) has no symbols

Parameter Value
OS X Version: 10.12.3
Homebrew Version: 1.1.11
Xcode Version: 8.2.1

Output of clang -v: Target: x86_64-apple-darwin16.4.0 Thread model: posix InstalledDir: /Applications/Xcode_8.2.1_fb.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Build logs: https://gist.github.com/49cfd3ee777d15ca80d140cf52fa637c

jwatzman commented 7 years ago
/tmp/hhvm-20170313-61033-jv8yil/hhvm-3.18.1/hphp/hhbbc/index.cpp:778:53: error: chosen constructor is explicit in copy-initialization
  auto val = data.funcInfo.emplace(f, FuncInfoValue{});
                                                    ^
/usr/local/opt/tbb/include/tbb/concurrent_hash_map.h:769:14: note: constructor declared here
    explicit concurrent_hash_map( const allocator_type &a = allocator_type() )
             ^
/tmp/hhvm-20170313-61033-jv8yil/hhvm-3.18.1/hphp/hhbbc/index.cpp:269:19: note: in implicit initialization of field 'contextualReturnTypes' with omitted initializer
  ContextRetTyMap contextualReturnTypes;
mofarrell commented 7 years ago

Intel TBB was updated in brew. https://github.com/01org/tbb/commit/1d5d04ce101eaaadf8b57955366d7758c09e7950#diff-e4eb329834da3d36278b1b7d943b3bc9R16 breaks backwards compatibility. I will look to get a fix up for this.

raymondjplante commented 7 years ago

Also having issue, in my logs:

/tmp/hhvm-20170314-8330-1ubf9u0/hhvm-3.18.1/hphp/hhbbc/index.cpp:778:53: error: chosen constructor is explicit in copy-initialization auto val = data.funcInfo.emplace(f, FuncInfoValue{}); ^ /usr/local/opt/tbb/include/tbb/concurrent_hash_map.h:769:14: note: constructor declared here explicit concurrent_hash_map( const allocator_type &a = allocator_type() ) ^ /tmp/hhvm-20170314-8330-1ubf9u0/hhvm-3.18.1/hphp/hhbbc/index.cpp:269:19: note: in implicit initialization of field 'contextualReturnTypes' with omitted initializer ContextRetTyMap contextualReturnTypes;

mofarrell commented 7 years ago

This should now be resolved.

brew update
brew upgrade