<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 --- - Segmentation fault when building lib/IR/CMakeFiles/LLVMCore.dir/AutoUpgrade.cpp.o"
   href="https://llvm.org/bugs/show_bug.cgi?id=29074">29074</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Segmentation fault when building lib/IR/CMakeFiles/LLVMCore.dir/AutoUpgrade.cpp.o
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>arrow@pileborg.se
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=17014" name="attach_17014" title="Output of build command">attachment 17014</a> <a href="attachment.cgi?id=17014&action=edit" title="Output of build command">[details]</a></span>
Output of build command

Using Clang built from an earlier trunk checkout there is a segmentation fault
when building lib/IR/CMakeFiles/LLVMCore.dir/AutoUpgrade.cpp.o.

Output from build in attachment.

I configured using

    LLVM_ROOT=/home/arrow/tmp/clang/llvm
    PROJECTS_ROOT=$LLVM_ROOT/projects
    CC=clang CXX=clang++ \
    cmake \
        -DCMAKE_C_COMPILER=clang \
        -DCMAKE_CXX_COMPILER=clang++ \
        -DCMAKE_BUILD_TYPE=Release \
        -DLLVM_INSTALL_UTILS=YES \
        -DBUILD_SHARED_LIBS=YES \
        -DLLVM_ENABLE_FFI=YES \
        -DLLVM_ENABLE_CXX1Y=YES \
        -DLLVM_ENABLE_MODULES=YES \
        -DCLANG_ENABLE_STATIC_ANALYZER=YES \
        -DLLVM_ENABLE_LIBCXX=YES \
        -DLIBCXX_CXX_ABI=libcxxabi \
        -DLIBCXXABI_LIBCXX_PATH=$PROJECTS_ROOT/libcxx \
        -DLIBCXX_CXX_ABI_INCLUDE_PATHS=$PROJECTS_ROOT/libcxxabi/include \
        ../llvm

I build using

    cmake --build . --config Release

There are previous version of Clang, libcxx and libcxxabi installed.

`clang --version` reports

    clang version 4.0.0 (trunk 276574)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /usr/local/bin

I'm on a fully update Ununtu 16.04 system.</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>