[llvm-bugs] [Bug 48840] New: Can't integrate openMP in Xcode12. (No apple silicon).

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 22 01:10:45 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=48840

            Bug ID: 48840
           Summary: Can't integrate openMP in Xcode12. (No apple silicon).
           Product: OpenMP
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: channing.y at awsomtech.cn
                CC: llvm-bugs at lists.llvm.org

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?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210122/dac400b8/attachment-0001.html>


More information about the llvm-bugs mailing list