<html>
    <head>
      <base href="http://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 --- - Segfault in llvm-tblgen for ARMGenAsmMatcher prevents compilation of 3.2 and 3.3 trunk"
   href="http://llvm.org/bugs/show_bug.cgi?id=15807">15807</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Segfault in llvm-tblgen for ARMGenAsmMatcher prevents compilation of 3.2 and 3.3 trunk
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>other
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>MC
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>s_bugzilla@nedprod.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Tried building clang + LLVM release 3.2 and trunk 3.3. Both fail with this
issue.

My configuration: Samsung ARM Chromebook running Ubuntu inside a chroot via
crouton.


Configure used: ./configure --build=armv7l-unknown-linux-gnueabihf \
--host=armv7l-unknown-linux-gnueabihf \
--target=armv7l-unknown-linux-gnueabihf --with-cpu=cortex-a9 \
--with-float=hard --with-abi=aapcs-vfp --with-fpu=neon \
--enable-targets=arm --enable-optimized --enable-assertions


Segfaults here in build process:
make[3]: Leaving directory `/home/ned/clang-3.2-staging/lib/MC/MCDisassembler'
make[2]: Leaving directory `/home/ned/clang-3.2-staging/lib/MC'
Stack dump:
0.      Program arguments:
/home/ned/clang-3.2-staging/Release+Asserts/bin/llvm-tblgen -I
/home/ned/llvm-3.2.src/lib/Target/ARM -I /home/ned/llvm-3.2.
src/include -I /home/ned/llvm-3.2.src/include -I
/home/ned/llvm-3.2.src/lib/Target -gen-asm-matcher -o
/home/ned/clang-3.2-staging/lib/Target/ARM/Rele
ase+Asserts/ARMGenAsmMatcher.inc.tmp
/home/ned/llvm-3.2.src/lib/Target/ARM/ARM.td 
make[3]: ***
[/home/ned/clang-3.2-staging/lib/Target/ARM/Release+Asserts/ARMGenAsmMatcher.inc.tmp]
Segmentation fault (core dumped)
make[3]: Target `all' not remade because of errors.
make[3]: Target `all' not remade because of errors.


Running gdb on this yields:
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
For bug reporting instructions, please see:
<<a href="http://bugs.launchpad.net/gdb-linaro/">http://bugs.launchpad.net/gdb-linaro/</a>>...
Reading symbols from
/home/ned/clang-3.2-staging/Release+Asserts/bin/llvm-tblgen...(no debugging
symbols found)...done.
(gdb) run
Starting program: /home/ned/clang-3.2-staging/Release+Asserts/bin/llvm-tblgen
-I=/home/ned/llvm-3.2.src/lib/Target/ARM -I=/home/ned/llvm-3.2.src/inclu
de -I=/home/ned/llvm-3.2.src/include -I=/home/ned/llvm-3.2.src/lib/Target
-gen-asm-matcher -o /home/ned/clang-3.2-staging/lib/Target/ARM/Release+Asser
ts/ARMGenAsmMatcher.inc.tmp /home/ned/llvm-3.2.src/lib/Target/ARM/ARM.td
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x001ca860 in llvm::StringRef::lower() const ()
(gdb) bt
#0  0x001ca860 in llvm::StringRef::lower() const ()
#1  0x0002c1dc in (anonymous namespace)::MatchableInfo::initialize((anonymous
namespace)::AsmMatcherInfo const&, llvm::SmallPtrSet<llvm::Record*, 16u>
&, int, std::string&) ()
#2  0x0001aae8 in (anonymous namespace)::AsmMatcherInfo::buildInfo() ()
#3  0x0000b9a4 in (anonymous
namespace)::AsmMatcherEmitter::run(llvm::raw_ostream&) ()
#4  0x0000b858 in llvm::EmitAsmMatcher(llvm::RecordKeeper&, llvm::raw_ostream&)
()
#5  0x0014a340 in (anonymous namespace)::LLVMTableGenMain(llvm::raw_ostream&,
llvm::RecordKeeper&) ()
#6  0x0015bd24 in llvm::TableGenMain(char*, bool (*)(llvm::raw_ostream&,
llvm::RecordKeeper&)) ()
#7  0x0014a22c in main ()
(gdb) 


Not sure what's gone wrong here. Could be a weirdness in the Chromebook kernel,
could be the chroot, could be something ARM-specific.

I attach a core dump for your information.

Niall</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>