<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 - Can't integrate openMP in Xcode12. (No apple silicon)."
   href="https://bugs.llvm.org/show_bug.cgi?id=48840">48840</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Can't integrate openMP in Xcode12. (No apple silicon).
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>OpenMP
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>Clang Compiler Support
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>channing.y@awsomtech.cn
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I try to build openMP using 
cmake -DLLVM_ENABLE_PROJECTS="clang;openmp" -DLLVM_TARGETS_TO_BUILD=X86
-DLLVM_ENABLE_RUNTIMES=“compiler-rt; libcxx;libcxxabi;libunwind”  -G "Unix
Makefiles" -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" ../llvm
-DCMAKE_BUILD_TYPE=Release

Then I integrate openMP into Xcode12, it compiled successfully, but it was
crashed when open app.

crash info: 
OMP: Error #178: Function Can't open SHM2 failed:
OMP: System error #1: Operation not permitted

Note: 
1. I used Xcode user-defined CC="path to clang", other C Flag = '-fopenmp'
2. I used llvm master code
3. It worked in apple silicon machine.
4. It worked in branch 9.x

How can I successfully integrate openMP?</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>