<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 - out of memory / unable to execute command: / clang frontend command failed due to signal"
   href="https://bugs.llvm.org/show_bug.cgi?id=46553">46553</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>out of memory / unable to execute command: / clang frontend command failed due to signal
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>8.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>OpenBSD
          </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>kinichiro.inoguchi@gmail.com
          </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>I had encountered this while building JUCE
(<a href="https://github.com/juce-framework/JUCE">https://github.com/juce-framework/JUCE</a>).

* Clang version 
--------------------------------------------------------------------------------
$ c++ --version
OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)
Target: amd64-unknown-openbsd6.7
Thread model: posix
InstalledDir: /usr/bin
--------------------------------------------------------------------------------

* Error message
--------------------------------------------------------------------------------
...
  [ 37%] Building CXX object
 
extras/Build/juceaide/CMakeFiles/juceaide.dir/__/__/__/modules/juce_gui_basics/juce_gui_basics.cpp.o


  LLVM ERROR: out of memory

  c++: error: unable to execute command: Abort trap (core dumped)

  c++: error: clang frontend command failed due to signal (use -v to see
  invocation)

  OpenBSD clang version 8.0.1 (tags/RELEASE_801/final) (based on LLVM 8.0.1)

  Target: amd64-unknown-openbsd6.7

  Thread model: posix

  InstalledDir: /usr/bin

  c++: 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.

  c++: note: diagnostic msg:

  ********************



  PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:

  Preprocessed source(s) and associated run script(s) are located at:

  c++: note: diagnostic msg: /tmp/juce_gui_basics-511356.cpp

  c++: note: diagnostic msg: /tmp/juce_gui_basics-511356.sh

  c++: note: diagnostic msg:



  ********************

  *** Error 254 in .
  (extras/Build/juceaide/CMakeFiles/juceaide.dir/build.make:109
 
'extras/Build/juceaide/CMakeFiles/juceaide.dir/__/__/__/modules/juce_gui_basics/juce_gui_basics.cpp.o')


  *** Error 2 in .  (CMakeFiles/Makefile2:153
  'extras/Build/juceaide/CMakeFiles/juceaide.dir/all': /usr/bin/make -s -f
  extras/Build/juceaide/CM...)

  *** Error 2 in /usr/obj/work2/juce/JUCE/cmake-build/tools (Makefile:150
  'all': /usr/bin/make -s -f CMakeFiles/Makefile2 all)



-- Configuring incomplete, errors occurred!
See also "/usr/obj/work2/juce/JUCE/cmake-build/CMakeFiles/CMakeOutput.log".
--------------------------------------------------------------------------------

* gdb bt info
--------------------------------------------------------------------------------
$ gdb /usr/bin/c++ ./cmake-build/tools/extras/Build/juceaide/c++.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd6.7"...
(no debugging symbols found)

Core was generated by `c++'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libpthread.so.26.1...done.
Loaded symbols for /usr/lib/libpthread.so.26.1
Reading symbols from /usr/lib/libc++.so.4.0...done.
Loaded symbols for /usr/lib/libc++.so.4.0
Reading symbols from /usr/lib/libc++abi.so.2.1...done.
Loaded symbols for /usr/lib/libc++abi.so.2.1
Symbols already loaded for /usr/lib/libpthread.so.26.1
Reading symbols from /usr/lib/libm.so.10.1...done.
Loaded symbols for /usr/lib/libm.so.10.1
Reading symbols from /usr/lib/libc.so.96.0...done.
Loaded symbols for /usr/lib/libc.so.96.0
Reading symbols from /usr/libexec/ld.so...Error while reading shared library
symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in
module /usr/libexec/ld.so]
#0  thrkill () at -:3
3       -: No such file or directory.
        in -
(gdb) bt
#0  thrkill () at -:3
#1  0x00000002f589f49e in _libc_abort () at /usr/src/lib/libc/stdlib/abort.c:61
#2  0x00000000013caadb in __register_frame_info ()
#3  0x00000000013cab33 in __register_frame_info ()
Die: DW_TAG_unspecified_type (abbrev = 36, offset = 1157166)
        has children: FALSE
        attributes:
                DW_AT_name (DW_FORM_strp) string: "decltype(nullptr)"
Dwarf Error: Cannot find type of die [in module /usr/lib/libc++.so.4.0]
(gdb)
--------------------------------------------------------------------------------</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>