[LLVMdev] LLVM Basic Program Compilation
Prakash Premkumar
prakash.prax at gmail.com
Sun Aug 3 22:29:03 PDT 2014
Hi Waxiado, Chris and Tim,
when i compiled with :
> $ clang++ -g try.cpp `llvm-config --cppflags --ldflags --libs core jit
> native`-o3 -S -emit-llvm
I get the following warnings
> clang: warning: -lz: 'linker' input unused
> clang: warning: -lpthread: 'linker' input unused
> clang: warning: -lcurses: 'linker' input unused
> clang: warning: -lm: 'linker' input unused
> clang: warning: -lLLVMX86Disassembler: 'linker' input unused
> clang: warning: -lLLVMX86AsmParser: 'linker' input unused
> clang: warning: -lLLVMX86CodeGen: 'linker' input unused
> clang: warning: -lLLVMSelectionDAG: 'linker' input unused
> clang: warning: -lLLVMAsmPrinter: 'linker' input unused
> clang: warning: -lLLVMMCParser: 'linker' input unused
> clang: warning: -lLLVMX86Desc: 'linker' input unused
> clang: warning: -lLLVMX86Info: 'linker' input unused
> clang: warning: -lLLVMX86AsmPrinter: 'linker' input unused
> clang: warning: -lLLVMX86Utils: 'linker' input unused
> clang: warning: -lLLVMJIT: 'linker' input unused
> clang: warning: -lLLVMRuntimeDyld: 'linker' input unused
> clang: warning: -lLLVMExecutionEngine: 'linker' input unused
> clang: warning: -lLLVMCodeGen: 'linker' input unused
> clang: warning: -lLLVMObjCARCOpts: 'linker' input unused
> clang: warning: -lLLVMScalarOpts: 'linker' input unused
> clang: warning: -lLLVMInstCombine: 'linker' input unused
> clang: warning: -lLLVMTransformUtils: 'linker' input unused
> clang: warning: -lLLVMipa: 'linker' input unused
> clang: warning: -lLLVMAnalysis: 'linker' input unused
> clang: warning: -lLLVMTarget: 'linker' input unused
> clang: warning: -lLLVMMC: 'linker' input unused
> clang: warning: -lLLVMObject: 'linker' input unused
> clang: warning: -lLLVMCore: 'linker' input unused
> clang: warning: -lLLVMSupport-o3: 'linker' input unused
> clang: warning: argument unused during compilation: '-L/usr/local/lib'
and when i compile the .s file with lli
i get
LLVM ERROR: Program used external function '_ZN4llvm16getGlobalContextEv'
> which could not be resolved!
Can you kindly help me resolve it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140804/e6c4f962/attachment.html>
More information about the llvm-dev
mailing list