[LLVMdev] Compiling LLVM on MinGW

Lennart Augustsson lennart at augustsson.net
Sun Mar 8 04:21:50 PDT 2009


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.

If I didn't know better I'd think someone had committed code without
compiling first. :)

  -- Lennart





On Sun, Mar 8, 2009 at 10:42 AM, Duncan Sands <baldrick at free.fr> wrote:
> On Sunday 08 March 2009 01:42:42 Lennart Augustsson wrote:
>> I'm trying to compile the top version of LLVM with MinGW, but I'm
>> getting compilation errors.
>
> What kind of errors?
>
> Ciao,
>
> Duncan.
>



More information about the llvm-dev mailing list