[LLVMdev] Linking tblgen debug executable (without symbols) on MinGW

Henrik Bach henrik_bach_llvm at hotmail.com
Sat Sep 25 15:01:21 PDT 2004


Hi

I've been able to semi compile (i.e. excluded code not present on the 
platform) the source code of the LLVM tblgen tool on the MinGW platform. 
However, when linking the object files the linker does not succeed:
--------------------------
Linking tblgen debug executable (without symbols)
C:/MinGW/msys/local/build/llvm/lib/Debug/libLLVMsystem.a(Signals.o)(.text+0x7e3): 
In function `Z28LLVMUnhandledExceptionFilterP19_EXCEPTION_POINTERS':
C:/MinGW/msys/local/build/llvm/lib/System/platform/Signals.cpp:163: 
undefined reference to `_imp__SymSetOptions at 4'
C:/MinGW/msys/local/build/llvm/lib/Debug/libLLVMsystem.a(Signals.o)(.text+0x806):C:/MinGW/msys/local/build/llvm/lib/System/platform/Signals.cpp:164: 
undefined reference to `_imp__SymInitialize at 12'
C:/MinGW/msys/local/build/llvm/lib/Debug/libLLVMsystem.a(Signals.o)(.text+0x818):C:/MinGW/msys/local/build/llvm/lib/System/platform/Signals.cpp:167: 
undefined reference to `_imp__SymGetModuleBase at 8'
C:/MinGW/msys/local/build/llvm/lib/Debug/libLLVMsystem.a(Signals.o)(.text+0x821):C:/MinGW/msys/local/build/llvm/lib/System/platform/Signals.cpp:167: 
undefined reference to `_imp__SymFunctionTableAccess at 8'
C:/MinGW/msys/local/build/llvm/lib/Debug/libLLVMsystem.a(Signals.o)(.text+0x861):C:/MinGW/msys/local/build/llvm/lib/System/platform/Signals.cpp:167: 
undefined reference to `_imp__StackWalk at 36'
C:/MinGW/msys/local/build/llvm/lib/Debug/libLLVMsystem.a(Signals.o)(.text+0x8fe):C:/MinGW/msys/local/build/llvm/lib/System/platform/Signals.cpp:185: 
undefined reference to `_imp__SymGetModuleBase at 8'
C:/MinGW/msys/local/build/llvm/lib/Debug/libLLVMsystem.a(Signals.o)(.text+0x99d):C:/MinGW/msys/local/build/llvm/lib/System/platform/Signals.cpp:198: 
undefined reference to `_imp__SymGetSymFromAddr at 16'
C:/MinGW/msys/local/build/llvm/lib/Debug/libLLVMsystem.a(Signals.o)(.text+0xa87):C:/MinGW/msys/local/build/llvm/lib/System/platform/Signals.cpp:213: 
undefined reference to `_imp__SymGetLineFromAddr at 16'
C:/MinGW/msys/local/build/llvm/lib/Debug/libLLVMsystem.a(Path.o)(.text+0x3114): 
In function `ZN4llvm3sys9IsLibraryERNS0_4PathERKSs':
C:/MinGW/msys/local/build/llvm/lib/System/platform/Path.cpp:99: undefined 
reference to `llvm::sys::Path::GetDLLSuffix()'
C:/MinGW/msys/local/build/llvm/lib/Debug/libLLVMsystem.a(Path.o)(.text+0x3626):C:/MinGW/msys/local/build/llvm/lib/System/platform/Path.cpp:108: 
undefined reference to `llvm::sys::Path::GetDLLSuffix()'
--------------------------

Do I need some libraries? Any suggestions...

Henrik

_________________________________________________________________
Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/




More information about the llvm-dev mailing list