[Openmp-dev] Using opt tool

Abid Malik via Openmp-dev openmp-dev at lists.llvm.org
Wed Nov 25 06:45:17 PST 2020


Hello,

I am compiling an OpenMP program using clang

clang -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
-O3 -fopenmp -emit-llvm -S -c  test1.c -o test1.ll

However when I try to compiler test1.ll using opt
$ opt -S -O3 test1.ll

Stack dump:
0. Program arguments: opt -S -O3 test1.ll
1. Running pass 'CallGraph Pass Manager' on module 'test1.ll'.
0  opt                      0x00000001010ce9b5
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  opt                      0x00000001010cd878
llvm::sys::RunSignalHandlers() + 248
2  opt                      0x00000001010cefcc SignalHandler(int) + 268
3  libsystem_platform.dylib 0x00007fff71f715fd _sigtramp + 29
4  libsystem_platform.dylib 000000000000000000 _sigtramp +
18446603338604145184
5  opt                      0x0000000100b87a32 (anonymous
namespace)::OpenMPOpt::run() + 4162
6  opt                      0x0000000100b9134b (anonymous
namespace)::OpenMPOptLegacyPass::runOnSCC(llvm::CallGraphSCC&) + 651
7  opt                      0x00000001003e63c4 (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&) + 1172
8  opt                      0x0000000100a35db9
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 825
9  opt                      0x00000001000aed32 main + 13138
10 libdyld.dylib            0x00007fff71d78cc9 start + 1
11 libdyld.dylib            0x0000000000000004 start + 18446603338606211900
Segmentation fault: 11

Thanks,


-- 
Abid M. Malik
******************************************************
"I have learned silence from the talkative, toleration from the intolerant,
and kindness from the unkind"---Gibran
"Success is not for the chosen few, but for the few who choose" --- John
Maxwell
"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
"The Universe is talking to us, and the language of the Universe is
mathematics."----Abid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20201125/2e249d99/attachment.html>


More information about the Openmp-dev mailing list