<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 ERROR: out of memory on --target=unknown-unknown-solaris-eabihf"
   href="https://bugs.llvm.org/show_bug.cgi?id=45187">45187</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM ERROR: out of memory on --target=unknown-unknown-solaris-eabihf
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>9.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>C
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>jynelson@email.sc.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>See <a href="https://godbolt.org/z/55BYcY">https://godbolt.org/z/55BYcY</a> for full reproduction. This happens even
before it starts parsing the file, even if no file has been passed.

This is not unique to unknown-unknown-solaris-eabihf, the same error occurs for
at least the following targets (I gave up after ~10):

- unknown-unknown-solaris-unknown
- unknown-unknown-solaris-amdgiz
- unknown-unknown-solaris-android
- unknown-unknown-solaris-androideabi
- unknown-unknown-solaris-eabi
- unknown-unknown-solaris-eabihf
- unknown-unknown-solaris-gnu
- unknown-unknown-solaris-gnuabi64
- unknown-unknown-solaris-gnueabi
- unknown-unknown-solaris-gnueabihf
- unknown-unknown-solaris-musl

Version: clang version 9.0.0-2~ubuntu18.04.2 (tags/RELEASE_900/final)

Originally reported at
<a href="https://github.com/bytecodealliance/target-lexicon/issues/47#issuecomment-598373992">https://github.com/bytecodealliance/target-lexicon/issues/47#issuecomment-598373992</a>

Stack trace on my machine:

$ clang --target=unknown-unknown-solaris-eabihf
LLVM ERROR: out of memory
Stack dump:
0.      Program arguments: clang --target=unknown-unknown-solaris-eabihf -x -c

1.      Compilation construction
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x1f)[0x7f6dfa75935f]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x50)[0x7f6dfa757780]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(+0xa38761)[0x7f6dfa759761]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7f6e003de890]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f6df902fe97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f6df9031801]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm22report_bad_alloc_errorEPKcb+0x93)[0x7f6dfa6be0a3]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm15SmallVectorBase8grow_podEPvmm+0x2f)[0x7f6dfa6fcaef]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm19raw_svector_ostream10write_implEPKcm+0x31)[0x7f6dfa73ddd1]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm11raw_ostream5writeEPKcm+0x1ad)[0x7f6dfa73c8ad]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZNK4llvm5Twine13printOneChildERNS_11raw_ostreamENS0_5ChildENS0_8NodeKindE+0x93)[0x7f6dfa71a043]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZNK4llvm5Twine25toNullTerminatedStringRefERNS_15SmallVectorImplIcEE+0x9e)[0x7f6dfa719f4e]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm3sys2fs6statusERKNS_5TwineERNS1_11file_statusEb+0x35)[0x7f6dfa74ebe5]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(+0xa01dc6)[0x7f6dfa722dc6]
/usr/lib/x86_64-linux-gnu/libLLVM-9.so.1(_ZN4llvm3vfs10FileSystem6existsERKNS_5TwineE+0x14)[0x7f6dfa71bcf4]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.9(_ZN5clang6driver5tools15addPathIfExistsERKNS0_6DriverERKN4llvm5TwineERNS5_11SmallVectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELj16EEE+0x16)[0x7f6dff6d6f56]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.9(+0x17ceb4d)[0x7f6dff755b4d]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.9(_ZNK5clang6driver6Driver12getToolChainERKN4llvm3opt7ArgListERKNS2_6TripleE+0x248)[0x7f6dff66a358]
/usr/lib/x86_64-linux-gnu/libclang-cpp.so.9(_ZN5clang6driver6Driver16BuildCompilationEN4llvm8ArrayRefIPKcEE+0x1493)[0x7f6dff66e3e3]
clang(main+0x22e2)[0x496782]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f6df9012b97]
clang(_start+0x2a)[0x4941ea]
Aborted (core dumped)</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>