<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Assertion failed - unable to compile HHVM"
   href="https://llvm.org/bugs/show_bug.cgi?id=28447">28447</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed - unable to compile HHVM
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>craig_carnell@hotmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>OS - OS X El Capitan - 10.11.5 (15F34)

Steps to reproduce:

brew install hhvm

Output:

Assertion failed: ((data().DefaultedMoveConstructorIsDeleted ||
needsOverloadResolutionForMoveConstructor()) && "move constructor should not be
deleted"), function setImplicitMoveConstructorIsDeleted, file
/tmp/llvm20160106-744-55kqe3/llvm-3.6.2.src/tools/clang/include/clang/AST/DeclCXX.h,
line 909.
0  clang-3.6                0x000000010647aa39
llvm::sys::PrintStackTrace(__sFILE*) + 57
1  clang-3.6                0x000000010647af96 SignalHandler(int) + 218
2  libsystem_platform.dylib 0x00007fff9adab52a _sigtramp + 26
3  clang-3.6                0x0000000107b89bac guard variable for
isAllowedInitiallyIDChar(unsigned int, clang::LangOptions
const&)::C99DisallowedInitialIDChars + 85140
4  clang-3.6                0x000000010647ae24 abort + 22
5  clang-3.6                0x000000010647ae0e abort + 0
6  clang-3.6                0x0000000106d3bac4
llvm::SmallVectorImpl<clang::Expr*>::reserve(unsigned long) + 0
7  clang-3.6                0x0000000106d1667d
clang::Sema::DeclareImplicitMoveConstructor(clang::CXXRecordDecl*) + 609
8  clang-3.6                0x0000000106e2d63a
clang::Sema::LookupConstructors(clang::CXXRecordDecl*) + 108
9  clang-3.6                0x0000000106e100a9
TryConstructorInitialization(clang::Sema&, clang::InitializedEntity const&,
clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr*>,
clang::QualType, clang::InitializationSequence&, bool) + 392
10 clang-3.6                0x0000000106e0e35b
clang::InitializationSequence::InitializeFrom(clang::Sema&,
clang::InitializedEntity const&, clang::InitializationKind const&,
llvm::MutableArrayRef<clang::Expr*>, bool) + 1293
11 clang-3.6                0x0000000106e0de3f
clang::InitializationSequence::InitializationSequence(clang::Sema&,
clang::InitializedEntity const&, clang::InitializationKind const&,
llvm::MutableArrayRef<clang::Expr*>, bool) + 295
12 clang-3.6                0x0000000106e0f0ec
clang::InitializationSequence::InitializationSequence(clang::Sema&,
clang::InitializedEntity const&, clang::InitializationKind const&,
llvm::MutableArrayRef<clang::Expr*>, bool) + 20
13 clang-3.6                0x0000000106d0f3d6
CollectFieldInitializer(clang::Sema&, (anonymous namespace)::BaseAndFieldInfo&,
clang::FieldDecl*, clang::IndirectFieldDecl*) + 2543
14 clang-3.6                0x0000000106d0de5f
clang::Sema::SetCtorInitializers(clang::CXXConstructorDecl*, bool,
llvm::ArrayRef<clang::CXXCtorInitializer*>) + 2267
15 clang-3.6                0x0000000106d10bb0
clang::Sema::ActOnMemInitializers(clang::Decl*, clang::SourceLocation,
llvm::ArrayRef<clang::CXXCtorInitializer*>, bool) + 2320
16 clang-3.6                0x0000000106f3ab06
clang::Sema::InstantiateMemInitializers(clang::CXXConstructorDecl*,
clang::CXXConstructorDecl const*, clang::MultiLevelTemplateArgumentList const&)
+ 1588
17 clang-3.6                0x0000000106f3a234
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1870
18 clang-3.6                0x0000000106f3ad74
clang::Sema::PerformPendingInstantiations(bool) + 320
19 clang-3.6                0x0000000106c5bfef
clang::Sema::ActOnEndOfTranslationUnit() + 587
20 clang-3.6                0x0000000106b78ab2
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 188
21 clang-3.6                0x0000000106b1ceb6 clang::ParseAST(clang::Sema&,
bool, bool) + 335
22 clang-3.6                0x000000010660cf33 clang::FrontendAction::Execute()
+ 67
23 clang-3.6                0x00000001065ea9ba
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 556
24 clang-3.6                0x00000001066387da
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2942
25 clang-3.6                0x000000010598c8d0 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 922
26 clang-3.6                0x000000010598be55 main + 8166
27 libdyld.dylib            0x00007fff9cbe75ad start + 1
28 libdyld.dylib            0x00000000000000e4 start + 1665239864
Stack dump:
0.  Program arguments: /usr/local/Cellar/llvm/3.6.2/bin/clang-3.6 -cc1 -triple
x86_64-apple-macosx10.11.0 -emit-obj -disable-free -main-file-name
store-elim.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix
-mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2
-target-feature +sse4.2 -target-linker-version 253.9 -dwarf-column-info
-coverage-file
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/hphp/runtime/CMakeFiles/hphp_runtime_static.dir/vm/jit/store-elim.cpp.o
-resource-dir /usr/local/Cellar/llvm/3.6.2/bin/../lib/clang/3.6.2 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
-D DEFAULT_CONFIG_DIR="/usr/local/etc/hhvm" -D ENABLE_FASTCGI=1 -D
FOLLY_HAVE_LIBGFLAGS=0 -D FOLLY_HAVE_MEMRCHR=0 -D FOLLY_HAVE_PREADV=0 -D
FOLLY_HAVE_PTHREAD_ATFORK=1 -D FOLLY_HAVE_PWRITEV=0 -D FOLLY_HAVE_SCHED_H=1 -D
FOLLY_HAVE_VLA=1 -D FOLLY_HAVE_WEAK_SYMBOLS=1 -D FOLLY_NO_CONFIG=1 -D
FOLLY_USE_LIBCPP=1 -D HAVE_BOOST1_49 -D HAVE_CURL_MULTI_WAIT -D HAVE_LIBDL -D
HHVM -D
HHVM_DYNAMIC_EXTENSION_DIR="/usr/local/Cellar/hhvm/3.14.2_1/lib/hhvm/extensions"
-D HPHP_OSS=1 -D LIBDWARF_CONST_NAME -D MACOSX_DEPLOYMENT_TARGET=10.6 -D
MAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_6 -D MBFL_STATIC -D NDEBUG -D
NO_HARDWARE_COUNTERS=1 -D NO_LIB_GFLAGS -D NO_TCMALLOC=1 -D PACKAGE=hhvm -D
PACKAGE_VERSION=Release -D PHP_MYSQL_UNIX_SOCK_ADDR="/tmp/mysql.sock" -D
RELEASE=1 -D SKIP_USER_CHANGE=1 -D THRIFT_MUTEX_EMULATE_PTHREAD_TIMEDLOCK -D
USE_CMAKE -D USE_JEMALLOC=1 -D _PTHREADS=1 -D _REENTRANT=1 -D
__STDC_FORMAT_MACROS -D NDEBUG -I /tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2
-I /usr/local/opt/boost/include -I /usr/local/opt/glog/include -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/re2/src -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/squangle/src -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/webscalesqlclient/src/include
-I /usr/local/opt/pcre/include -I /usr/local/opt/libevent/include -I
/usr/include/libxml2 -I /usr/local/opt/lz4/include -I
/usr/local/opt/libzip/include -I /usr/local/opt/libzip/lib/libzip/include -I
/usr/local/opt/icu4c/include -I /usr/local/opt/jemalloc/include -I
/usr/local/opt/tbb/include -I /usr/local/opt/openssl/include -I
/usr/local/opt/oniguruma/include -I /usr/local/opt/readline/include -I
/usr/local/opt/dwarfutils/include -I /usr/local/opt/libelf/include/libelf -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/hphp -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/double-conversion/src
-I /tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/fastlz -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/timelib -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/libafdt/src -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/libmbfl -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/libmbfl/mbfl -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/libmbfl/filters -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/proxygen/src -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/folly -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/folly/src -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/thrift/src -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/wangle/src -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/brotli/src -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party -I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/hphp/runtime/../runtime/ext_zend_compat/php-src
-I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/hphp/runtime/../runtime/ext_zend_compat/php-src/main
-I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/hphp/runtime/../runtime/ext_zend_compat/php-src/Zend
-I
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/hphp/runtime/../runtime/ext_zend_compat/php-src/TSRM
-I /usr/local/opt/readline/include -stdlib=libc++ -O3 -Wno-deprecated
-Wno-strict-aliasing -Wno-write-strings -Wno-invalid-offsetof
-Wno-error=array-bounds -Wno-error=switch -Wno-unused-result -Wno-sign-compare
-Wno-attributes -Wno-maybe-uninitialized -Wno-unknown-warning-option
-Wno-return-type-c-linkage -Wall -Woverloaded-virtual -Werror=format-security
-std=gnu++11 -fdebug-compilation-dir
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/hphp/runtime -ferror-limit 19
-fmessage-length 0 -fno-operator-names -stack-protector 1 -mstackrealign
-fblocks -fobjc-runtime=macosx-10.11.0 -fencode-extended-block-signature
-fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option
-vectorize-loops -vectorize-slp -o
CMakeFiles/hphp_runtime_static.dir/vm/jit/store-elim.cpp.o -x c++
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/hphp/runtime/vm/jit/store-elim.cpp 
1.  <eof> parser at end of file
2. 
/tmp/hhvm-20160706-10869-s5j3u7/hhvm-3.14.2/third-party/folly/folly/Optional.h:97:3:
instantiating function definition 'Optional'
clang-3.6: error: unable to execute command: Illegal instruction: 4
clang-3.6: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.2 (tags/RELEASE_362/final)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
clang-3.6: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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-2cad50.cpp
clang-3.6: note: diagnostic msg:
/var/folders/wb/mm4hf06d07140gbgt_g9s_8r0000gn/T/store-elim-2cad50.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....
2 warnings generated.
2 warnings generated.
2 warnings generated.
make[1]: *** [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/all] Error 2
make: *** [all] Error 2

Further information:


Description

Error installing HHVM 3.14.2 on OS X 10.11.5
Context and Logs

brew install hhvm
==> Installing hhvm from hhvm/hhvm
==> Downloading <a href="http://dl.hhvm.com/source/hhvm-3.14.2.tar.bz2">http://dl.hhvm.com/source/hhvm-3.14.2.tar.bz2</a>
######################################################################## 100.0%
==> Downloading
<a href="https://github.com/facebook/hhvm/commit/39fc688e1aac618783af1aa8a499658dd4a8b09d.patch">https://github.com/facebook/hhvm/commit/39fc688e1aac618783af1aa8a499658dd4a8b09d.patch</a>
######################################################################## 100.0%
==> Patching
==> Applying 39fc688e1aac618783af1aa8a499658dd4a8b09d.patch
patching file hphp/hack/scripts/gen_build_id.ml
patching file hphp/hack/scripts/utils.ml
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/hhvm/3.14.2_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 -D
==> make
Last 15 lines from /Users/ccarnell/Library/Logs/Homebrew/hhvm/02.make:

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-2cad50.cpp
clang-3.6: note: diagnostic msg:
/var/folders/wb/mm4hf06d07140gbgt_g9s_8r0000gn/T/store-elim-2cad50.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....
2 warnings generated.
2 warnings generated.
2 warnings generated.
make[1]: *** [hphp/runtime/CMakeFiles/hphp_runtime_static.dir/all] Error 2
make: *** [all] Error 2

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

These open issues may also help:
hhvm make fail due to missing mysql_get_ssl_session_reused /
mysql_get_file_descriptor <a href="https://github.com/hhvm/homebrew-hhvm/issues/29">https://github.com/hhvm/homebrew-hhvm/issues/29</a>

Parameter     Value
OS X Version:     10.11.5
Homebrew Version:     Homebrew 0.9.9 (git revision 3a12; last commit
2016-07-06)

Homebrew/homebrew-core (git revision 9577; last commit 2016-07-06)
Xcode Version: | 7.3 (7D175)

Output of clang -v:
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Build logs:
<a href="https://gist.github.com/264d0b444201ed7ad8afdc3311ccd39e">https://gist.github.com/264d0b444201ed7ad8afdc3311ccd39e</a>

<a href="https://github.com/hhvm/homebrew-hhvm/issues/46">https://github.com/hhvm/homebrew-hhvm/issues/46</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>