Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

brew install hhvm fails on macOS Sierra; caml__frame? #66

Closed
btangmu opened this issue Jan 8, 2017 · 2 comments
Closed

brew install hhvm fails on macOS Sierra; caml__frame? #66

btangmu opened this issue Jan 8, 2017 · 2 comments

Comments

@btangmu
Copy link

btangmu commented Jan 8, 2017

Description

$ brew install hhvm
==> Installing hhvm from hhvm/hhvm
==> Downloading http://dl.hhvm.com/source/hhvm-3.15.3.tar.bz2
Already downloaded: /Users/tbishop/Library/Caches/Homebrew/hhvm-3.15.3.tar.bz2
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/hhvm/3.15.3 -DDEFAULT_CONFIG_DIR=/usr/local/etc/hhvm -DCMAKE
==> make
Last 15 lines from /Users/tbishop/Library/Logs/Homebrew/hhvm/02.make:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /tmp/hhvm-20170107-70140-lfl9co/hhvm-3.15.3/third-party/webscalesqlclient/mysql-5.6/strings/libstrings.a(longlong2str.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /tmp/hhvm-20170107-70140-lfl9co/hhvm-3.15.3/third-party/webscalesqlclient/mysql-5.6/vio/libvio.a(viopipe.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /tmp/hhvm-20170107-70140-lfl9co/hhvm-3.15.3/third-party/webscalesqlclient/mysql-5.6/vio/libvio.a(vioshm.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /tmp/hhvm-20170107-70140-lfl9co/hhvm-3.15.3/third-party/webscalesqlclient/mysql-5.6/mysys/libmysys.a(thr_mutex.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /tmp/hhvm-20170107-70140-lfl9co/hhvm-3.15.3/third-party/webscalesqlclient/mysql-5.6/mysys/libmysys.a(my_getpagesize.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /tmp/hhvm-20170107-70140-lfl9co/hhvm-3.15.3/third-party/webscalesqlclient/mysql-5.6/mysys/libmysys.a(my_lockmem.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /tmp/hhvm-20170107-70140-lfl9co/hhvm-3.15.3/third-party/webscalesqlclient/mysql-5.6/mysys_ssl/libmysys_ssl.a(my_sha2.cc.o) has no symbols
[100%] Built target webscalesqlclient
Scanning dependencies of target symlink_libwebscalesqlclient_r.a
[100%] Generating libwebscalesqlclient_r.a
[100%] Built target symlink_libwebscalesqlclient_r.a
[ 7%] No install step for 'webscalesqlclient'
[ 7%] Completed 'webscalesqlclient'
[ 7%] Built target webscalesqlclient
make: *** [all] Error 2

Context and Logs

Parameter Value
OS X Version: 10.12.2
Homebrew Version: 1.1.6
Xcode Version: 8.2.1

Output of clang -v:
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Build logs: https://gist.github.com/605cd90f2a602a471f62edb1cac73fa6

@jwatzman
Copy link
Contributor

jwatzman commented Jan 9, 2017

Yeah seems to be something with caml_frame:

ocamlc.opt -g -ccopt -I/tmp/hhvm-20170107-70140-lfl9co/hhvm-3.15.3 -ccopt -I/usr/local/opt/libelf/include/libelf -ccopt -pthread -c heap/hh_shared.c
+ ocamlc.opt -g -ccopt -I/tmp/hhvm-20170107-70140-lfl9co/hhvm-3.15.3 -ccopt -I/usr/local/opt/libelf/include/libelf -ccopt -pthread -c heap/hh_shared.c
heap/hh_shared.c:489:3: error: use of undeclared identifier 'caml__frame'
  CAMLlocal1(arg);
  ^
/usr/local/lib/ocaml/caml/memory.h:305:3: note: expanded from macro 'CAMLlocal1'
  CAMLxparam1 (x)
  ^
/usr/local/lib/ocaml/caml/memory.h:224:12: note: expanded from macro 'CAMLxparam1'
    (void) caml__frame, \
           ^
1 error generated.
Command exited with code 2.
make[4]: *** [build-hack-native-deps] Error 10
make[3]: *** [_build/hh_server.native] Error 2
make[2]: *** [hphp/hack/CMakeFiles/hack] Error 2
make[1]: *** [hphp/hack/CMakeFiles/hack.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

@mofarrell
Copy link
Member

facebook/hhvm#7560 and #63

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants