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

Jeff Cohen jeffc at jolt-lang.org
Sat Sep 25 15:26:56 PDT 2004


Yes.  You need to link with dbghelp.lib and psapi.lib.  There are
pragmas to force this, but not surprisingly gcc does not honor Microsoft
pragmas.

The unsatisified externals in Path are fixed by my patch to Path.cpp.

On Sun, 26 Sep 2004 00:01:21 +0200
"Henrik Bach" <henrik_bach_llvm at hotmail.com> wrote:

> 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/
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list