<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 building CMake on OpenBSD 7.0 on macppc"
   href="https://bugs.llvm.org/show_bug.cgi?id=52438">52438</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM ERROR: out of memory building CMake on OpenBSD 7.0 on macppc
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>11.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>sean@rogue-research.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=25428" name="attach_25428" title="Requested .sh">attachment 25428</a> <a href="attachment.cgi?id=25428&action=edit" title="Requested .sh">[details]</a></span>
Requested .sh

For fun, I installed OpenBSD 7.0 (current newest) on an old PowerMac G5 sitting
in a room collecting dust.  It comes with:

OpenBSD clang version 11.1.0
Target: powerpc-unknown-openbsd7.0
Thread model: posix
InstalledDir: /usr/bin

I tried to build CMake from its git master, and got:

```
[ 44%] Building CXX object
Source/CMakeFiles/CMakeLib.dir/cmCMakePresetsFileReadJSON.cxx.o
LLVM ERROR: out of memory
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/c++ -DLIBARCHIVE_STATIC
-I/home/builder/external/CMake-Clang-dbg/Utilities
-I/home/builder/external/CMake-Clang-dbg/Source
-I/home/builder/external/CMake/Source
-I/home/builder/external/CMake/Source/LexerParser
-I/home/builder/external/CMake/Source/CTest -I/usr/local/include
-I/home/builder/external/CMake/Source/CPack -isystem
/home/builder/external/CMake/Utilities/std -isystem
/home/builder/external/CMake/Utilities -std=c++17 -Wnon-virtual-dtor
-Wcast-align -Wchar-subscripts -Wall -W -Wshadow -Wpointer-arith
-Wformat-security -Wundef -g -MD -MT
Source/CMakeFiles/CMakeLib.dir/cmCMakePresetsFileReadJSON.cxx.o -MF
CMakeFiles/CMakeLib.dir/cmCMakePresetsFileReadJSON.cxx.o.d -o
CMakeFiles/CMakeLib.dir/cmCMakePresetsFileReadJSON.cxx.o -c
/home/builder/external/CMake/Source/cmCMakePresetsFileReadJSON.cxx 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/home/builder/external/CMake/Source/cmCMakePresetsFileReadJSON.cxx'.
4.      Running pass 'Linux PPC Assembly Printer' on function
'@_ZNKSt3__16vectorIN18cmJSONObjectHelperIN18cmCMakePresetsFile15ConfigurePresetENS2_14ReadFileResultEE6MemberENS_9allocatorIS6_EEE8max_sizeEv'
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
OpenBSD clang version 11.1.0
Target: powerpc-unknown-openbsd7.0
Thread model: posix
InstalledDir: /usr/bin
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/cmCMakePresetsFileReadJSON-5371b6.cpp
c++: note: diagnostic msg: /tmp/cmCMakePresetsFileReadJSON-5371b6.sh
c++: note: diagnostic msg: 

********************
*** Error 254 in . (Source/CMakeFiles/CMakeLib.dir/build.make:482
'Source/CMakeFiles/CMakeLib.dir/cmCMakePresetsFileReadJSON.cxx.o': cd /hom...)
*** Error 2 in . (CMakeFiles/Makefile2:2040
'Source/CMakeFiles/CMakeLib.dir/all': make -s -f
Source/CMakeFiles/CMakeLib.dir/build.make Sourc...)
*** Error 2 in /home/builder/external/CMake-Clang-dbg (Makefile:166 'all': make
-s -f CMakeFiles/Makefile2 all)
```

Requested files are attached.</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>