<div dir="ltr">Hi Abid,<div><br></div><div>I'm not sure you can get much help without more details. Is it the released version or are you trying to make changes to OpenMPOpt?</div><div><br></div><div>-debug option can be helpful.</div><div><br></div><div>--stefan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 25, 2020 at 3:45 PM Abid Malik via Openmp-dev <<a href="mailto:openmp-dev@lists.llvm.org">openmp-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:"courier new",monospace;font-size:small">Hello,<br clear="all"></div><div class="gmail_default" style="font-family:"courier new",monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:"courier new",monospace;font-size:small">I am compiling an OpenMP program using clang</div><div class="gmail_default" style="font-family:"courier new",monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:"courier new",monospace;font-size:small">clang -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -O3 -fopenmp -emit-llvm -S -c  test1.c -o test1.ll<br></div><div class="gmail_default" style="font-family:"courier new",monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:"courier new",monospace;font-size:small">However when I try to compiler test1.ll using opt</div><div class="gmail_default" style="font-family:"courier new",monospace;font-size:small">$ opt -S -O3 test1.ll </div><div class="gmail_default" style="font-family:"courier new",monospace;font-size:small"><br>Stack dump:<br>0. Program arguments: opt -S -O3 test1.ll <br>1.     Running pass 'CallGraph Pass Manager' on module 'test1.ll'.<br>0  opt                      0x00000001010ce9b5 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37<br>1  opt                      0x00000001010cd878 llvm::sys::RunSignalHandlers() + 248<br>2  opt                      0x00000001010cefcc SignalHandler(int) + 268<br>3  libsystem_platform.dylib 0x00007fff71f715fd _sigtramp + 29<br>4  libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603338604145184<br>5  opt                      0x0000000100b87a32 (anonymous namespace)::OpenMPOpt::run() + 4162<br>6  opt                      0x0000000100b9134b (anonymous namespace)::OpenMPOptLegacyPass::runOnSCC(llvm::CallGraphSCC&) + 651<br>7  opt                      0x00000001003e63c4 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) + 1172<br>8  opt                      0x0000000100a35db9 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 825<br>9  opt                      0x00000001000aed32 main + 13138<br>10 libdyld.dylib            0x00007fff71d78cc9 start + 1<br>11 libdyld.dylib            0x0000000000000004 start + 18446603338606211900<br>Segmentation fault: 11<br></div><div class="gmail_default" style="font-family:"courier new",monospace;font-size:small"><br></div><div class="gmail_default" style="font-family:"courier new",monospace;font-size:small">Thanks,</div><div class="gmail_default" style="font-family:"courier new",monospace;font-size:small"><br></div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div>Abid M. Malik<br>******************************************************<br>"I have learned silence from the talkative, toleration from the intolerant, and kindness from the unkind"---Gibran<br>"Success is not for the chosen few, but for the few who choose" --- John Maxwell<br>"Being a good person does not depend on your religion or status in life, your race or skin color, political views or culture. IT DEPENDS ON HOW GOOD YOU TREAT OTHERS"--- Abid<br>"The Universe is talking to us, and the language of the Universe is mathematics."----Abid<br> </div></div></div></div>
_______________________________________________<br>
Openmp-dev mailing list<br>
<a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><br>
</blockquote></div>