hhvm / homebrew-hhvm

Official Mac OS X Homebrew formula for HHVM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build failed: malloc.h not found

corbanb opened this issue · comments

Description

Trying to install hhvm for the first time on new MBP.

Context and Logs

==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/hhvm/3.20.2 -DDEFAULT_CONFIG_DIR=/usr/local/etc/hhv
==> make
Last 15 lines from /Users/username/Library/Logs/Homebrew/hhvm/02.make:
File "hackfmt/hack_format.ml", line 1365, characters 12-18:
Warning 27: unused variable open_b.
File "hackfmt/hack_format.ml", line 1369, characters 12-19:
Warning 27: unused variable close_b.
File "hackfmt/hack_format.ml", line 1428, characters 22-29:
Warning 27: unused variable is_last.
function (I){this.prefs_.get('enable-clipboard-notice')&&setTimeout(this.showOverlay.bind(this,R.notifyCopyMessage,500),200);var M=this.document_.createElement('pre');M.textContent=I,M.style.cssText='-webkit-user-select: text;-moz-user-select: text;position: absolute;top: -99px',this.document_.body.appendChild(M);var D=this.document_.getSelection(),F=D.anchorNode,V=D.anchorOffset,O=D.focusNode,U=D.focusOffset;D.selectAllChildren(M),R.copySelectionToClipboard(this.document_),D.extend&&(D.collapse(F,V),D.extend(O,U)),M.parentNode.removeChild(M)}
Parameter Value
OS X Version: 10.12.5
Homebrew Version: 1.2.3
Xcode Version: 8.3.3

Output of clang -v:

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

Build logs: https://gist.github.com/anonymous/3ec617594acb67db8aab4be4eb239368

/tmp/hhvm-20170628-52274-4tey7p/hhvm-3.20.2/hphp/util/alloc.h:48:12: fatal error: 'malloc.h' file not found
#  include "malloc.h"
           ^~~~~~~~~~

I wonder if this is related to #88?

Can't reproduce this on several machiens, and changed compilers. Assuming this is fix - please comment if not and I'll re-open