[LLVMdev] Compiling LLVM on MinGW

Lennart Augustsson lennart at augustsson.net
Sun Mar 8 13:55:07 PDT 2009


Commenting out the Hello transformation I get these link errors:

llvm[2]: Linking Debug Shared Library LTO.dll
c:/DOCUME~1/1312888/Desktop/Workspace/llvm/llvm-top/Debug/lib/libLLVMSystem.a(Signals.o):
In function `Z28LLVMUnhandledExceptionFilterP19_EXCEPTION_POINTERS':
c:/DOCUME~1/1312888/Desktop/Workspace/llvm/llvm-top/lib/System/Win32/Signals.inc:164:
undefined reference to `_imp__SymSetOptions at 4'
c:/DOCUME~1/1312888/Desktop/Workspace/llvm/llvm-top/lib/System/Win32/Signals.inc:165:
undefined reference to `_imp__SymInitialize at 12'
c:/DOCUME~1/1312888/Desktop/Workspace/llvm/llvm-top/lib/System/Win32/Signals.inc:168:
undefined reference to `_imp__SymGetModuleBase at 8'
c:/DOCUME~1/1312888/Desktop/Workspace/llvm/llvm-top/lib/System/Win32/Signals.inc:168:
undefined reference to `_imp__SymFunctionTableAccess at 8'
c:/DOCUME~1/1312888/Desktop/Workspace/llvm/llvm-top/lib/System/Win32/Signals.inc:168:
undefined reference to `_imp__StackWalk at 36'
c:/DOCUME~1/1312888/Desktop/Workspace/llvm/llvm-top/lib/System/Win32/Signals.inc:186:
undefined reference to `_imp__SymGetModuleBase at 8'
c:/DOCUME~1/1312888/Desktop/Workspace/llvm/llvm-top/lib/System/Win32/Signals.inc:199:
undefined reference to `_imp__SymGetSymFromAddr at 16'
c:/DOCUME~1/1312888/Desktop/Workspace/llvm/llvm-top/lib/System/Win32/Signals.inc:214:
undefined reference to `_imp__SymGetLineFromAddr at 16'
c:/DOCUME~1/1312888/Desktop/Workspace/llvm/llvm-top/Debug/lib/libLLVMSystem.a(Process.o):
In function `ZN4llvm3sys7Process19GetTotalMemoryUsageEv':
c:/DOCUME~1/1312888/Desktop/Workspace/llvm/llvm-top/lib/System/Win32/Process.inc:78:
undefined reference to `GetProcessMemoryInfo at 12'
c:/DOCUME~1/1312888/Desktop/Workspace/llvm/llvm-top/Debug/lib/libLLVMSystem.a(DynamicLibrary.o):
In function `ZN4llvm3sys14DynamicLibrary22LoadLibraryPermanentlyEPKcPSs':
c:/DOCUME~1/1312888/Desktop/Workspace/llvm/llvm-top/lib/System/Win32/DynamicLibrary.inc:116:
undefined reference to `_imp__EnumerateLoadedModules at 12'

  -- Lennart

On Sun, Mar 8, 2009 at 7:14 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Mar 8, 2009, at 4:21 AM, Lennart Augustsson wrote:
>
>> Like this:
>>
>> llvm[1]: Compiling Signals.cpp for Debug build
>> In file included from Signals.cpp:33:
>> Win32/Signals.inc:262: error: `sys' has not been declared
>> Win32/Signals.inc: In function `void AddSignalHandler(void (*)
>> (void*), void*)':
>> Win32/Signals.inc:266: error: `KillSigs' was not declared in this
>> scope
>> Win32/Signals.inc:266: error: `KillSigsEnd' was not declared in this
>> scope
>> Win32/Signals.inc:266: error: `RegisterHandler' was not declared in
>> this scope
>> Win32/Signals.inc:266: warning: unused variable 'KillSigs'
>> Win32/Signals.inc:266: warning: unused variable 'KillSigsEnd'
>> Win32/Signals.inc:266: warning: unused variable 'RegisterHandler'
>> make[1]: *** [/Desktop/Workspace/llvm/llvm-top/lib/System/Debug/
>> Signals.o]
>> Error 1
>> make[1]: Leaving directory `/Desktop/Workspace/llvm/llvm-top/lib/
>> System'
>>
>> The void sys::AddSignalHandler() is outside the llvm namespace, which
>> seems wrong.
>> Moving it inside removes the first errors, but still leave KillSigs,
>> KillSigsEnd, and RegisterHandler undefined.
>
> Please try r66386.
>
>> If I didn't know better I'd think someone had committed code without
>> compiling first. :)
>
> I don't have a windows box to test on, I requested windows people to
> verify that it works when I committed the change, and there are no
> windows nightly testers or build bots.  This is the first I have heard
> of the breakage.
>
> -Chris
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list