[cfe-dev] Using clang as a meta-data generator.

Michael Spencer bigcheesegs at gmail.com
Thu Jun 24 06:58:27 PDT 2010


Clang does not currently implement enough of Microsoft's extensions to
compile most code that uses the c++ standard library included in
visual studio.

- Michael Spencer


On Tue, Jun 22, 2010 at 1:46 PM, chris nuernberger <cnuernber at gmail.com> wrote:
> Thanks a lot Doug!
>
> I have enough compiling to take the next step.  I just wanted to
> finish up with where I am in case there is another quick set of fixes
> that will help.
>
> The exact error text is:
>
> clang: error: unable to execute command: Couldn't execute program 'clang'
> clang: error: clang frontend command failed due to signal 1 (use -v to
> see invocation)
>
> I will certainly file a bug, going through the login process of bugzilla now.
>
> I am down to just three errors.  I needed -ms-extensions and
> -nobuildininc because clang has its own float.h header which was
> conflict with the platform float.h.
>
> Doing that, I am down to just three errors:
>
> if(!ignore) __debugbreak();
>
> Debug break intrinsic doesn't appear to exist, even with
> -ms-extensions.  It should be __asm { int 3 }.
>
> next:
>
> In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\include/new:6:
> In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\include/exception:40:
> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include/eh.h(61)
> :  error: unknown type name 'type_info'
> _CRTIMP int __cdecl _is_exception_typeof(_In_ const type_info &_Type,
> _In_ struct _EXCEPTION_POINTERS * _ExceptionPtr);
>
>
> Don't know what to make of that yet.
>
>
> In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\include/new:6:
> In file included from C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\include/exception:41:
> C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\include/malloc.h(252) :  error: expected expression
>            _ASSERTE(("Corrupted pointer passed to _freea", 0));
>
> Continuing with the macro expansion:
>
> C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\include/crtdbg.h:485:25: note: instantiated from:
> #define _ASSERTE(expr)  _ASSERT_EXPR((expr), _CRT_WIDE(#expr))
>                        ^
> C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\include/crtdbg.h:478:18: note: instantiated from:
>                (_CrtDbgBreak(), 0))
>                 ^
> C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC\include/crtdbg.h:593:24: note: instantiated from:
> #define _CrtDbgBreak() __asm { int 3 }
>                                   ^
>
> The caret is under the first underscore of the asm block.
>
> I have got enough to compile that I am totally confident to take the
> next steps, btw, so thanks for you help Doug!
>
> Chris




More information about the cfe-dev mailing list