<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - llvm-tblgen crashes when compiling llvm 4.0 with gcc 6.2.1"
   href="https://bugs.llvm.org/show_bug.cgi?id=32303">32303</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-tblgen crashes when compiling llvm 4.0 with gcc 6.2.1
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>4.0
          </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>enhancement
          </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>blastrock@free.fr
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18105" name="attach_18105" title="Backtrace of the crash">attachment 18105</a> <a href="attachment.cgi?id=18105&action=edit" title="Backtrace of the crash">[details]</a></span>
Backtrace of the crash

Hi,

I'm trying to compile the latest version of llvm. I have checked out the
release_40 branch in my worktree, but llvm-tblgen keeps crashing.

I am using debian testing with GCC 6.2.1

To reproduce the crash:

cmake -DLLVM_TARGETS_TO_BUILD=X86 -DBUILD_SHARED_LIBS=ON
-DCMAKE_INSTALL_PREFIX=$HOME/.local -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja
..
ninja lib/Target/X86/X86GenRegisterInfo.inc # to go straight to the crash
...
0.      Program arguments: /home/philippe/packages/llvm/build/bin/llvm-tblgen
-gen-register-info -I /home/philippe/packages/llvm/lib/Target/X86 -I
/home/philippe/packages/llvm/include -I /home/philippe/packages/llvm/lib/Target
/home/philippe/packages/llvm/lib/Target/X86/X86.td -o
/home/philippe/packages/llvm/build/lib/Target/X86/X86GenRegisterInfo.inc.tmp 
Segmentation fault (core dumped)

I am attaching the full backtrace

The crash does not occur when building in debug.</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>