[LLVMdev] llvm-config error

António Saragga Seabra antseabra at gmail.com
Mon Sep 6 21:06:16 PDT 2010


Hello,

Takumi, you are absolutely right! It was a problem with Perl. Many thanks!
That problem solved, tried to compile again the kaleidoscope example but
unfortunatelly now I get the link errors found bellow:



$g++ -g –O3 toy.cpp `llvm-config –cppflags –ldflags –libs core`-o toy

c:/llvm-2.7/Release/lib/libLLVMSystem.a(Signals.o):Signals.cpp:(.text+0x4d4):
undefined reference to `_imp__SymSetOptions at 4'
c:/llvm-2.7/Release/lib/libLLVMSystem.a(Signals.o):Signals.cpp:(.text+0x463):
undefined reference to `_imp__SymInitialize at 12'
c:/llvm-2.7/Release/lib/libLLVMSystem.a(Signals.o):Signals.cpp:(.text+0x46c):
undefined reference to `_imp__SymGetModuleBase at 8'
c:/llvm-2.7/Release/lib/libLLVMSystem.a(Signals.o):Signals.cpp:(.text+0x47a):
undefined reference to `_imp__SymFunctionTableAccess at 8'
c:/llvm-2.7/Release/lib/libLLVMSystem.a(Signals.o):Signals.cpp:(.text+0x4b2):
undefined reference to `_imp__StackWalk at 36'
c:/llvm-2.7/Release/lib/libLLVMSystem.a(Signals.o):Signals.cpp:(.text+0x567):
undefined reference to `_imp__SymGetModuleBase at 8'
c:/llvm-2.7/Release/lib/libLLVMSystem.a(Signals.o):Signals.cpp:(.text+0x611):
undefined reference to `_imp__SymGetSymFromAddr at 16'
c:/llvm-2.7/Release/lib/libLLVMSystem.a(Signals.o):Signals.cpp:(.text+0x6ae):
undefined reference to `_imp__SymGetLineFromAddr at 16'

c:/llvm-2.7/Release/lib/libLLVMSystem.a(Process.o):Process.cpp:(.text+0x8d):

undefined reference to `GetProcessMemoryInfo at 12'
collect2: ld returned 1 exit status

I built again LLVM now with perl working properly.
Any help would be great
Antonio


2010/9/7 NAKAMURA Takumi <geek4civic at gmail.com>

> Hello, António.
>
> 2010/9/7 António Saragga Seabra <antseabra at gmail.com>:
>
> > I’m having a few problems building the kaleidoscope example (chapter 3)
> > under MinGW. To build the example I use as recommended
>
> > g++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy
> > sh: llvm-config: command not found
>
> You need MSYS's perl to use llvm-config on mingw.
>
> Does this below work?
> -D_DEBUG (might be -DNDEBUG)
> -D__NO_CTYPE_INLINE
> -D_GNU_SOURCE
> -D__STDC_LIMIT_MACROS
> -D__STDC_CONSTANT_MACROS
> -lLLVMCore -lLLVMSupport -lLLVMSystem
> -lpsapi -limagehlp -lm
>
> ...Takumi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100907/58ea3332/attachment.html>


More information about the llvm-dev mailing list