[cfe-dev] Testing the clang-cl integratio with VS2010

Unai Landa ulanda at digital-legends.com
Sat Nov 9 06:03:42 PST 2013


I tested and works fine, but I already installed the "recommended" run-times, so I can confirm if this would work without them.

About the RTTI problem I allready disabled RRTI, in fact this "command line options" work;

/I"../../../../dist/krm/inc/" /I"../../../../dist/3rdParty/" /I"../../../../dist/3rdParty/Glew/Include/" /I"../../../../krm/inc/" /I"../../../../krm/src/" /Zi /nologo /W0 /WX- /Od /Ob0 /Oy- /D "KRMCFG_GPU_OPENGL" /D "KRMCFG_MODE_DEBUG" /D "KRMCFG_CPU_X86" /D "KRMCFG_CPU_FLOAT" /D "KRMCFG_PLATFORM_WIN" /D "KRMCFG_PLATFORM_VERSION_WIN_32" /D "_UNICODE" /D "UNICODE" /GF /Gm /EHa /RTC1 /MDd /GS /arch:SSE2 /fp:fast /Zc:wchar_t /Zc:forScope /GR- /Fp"..\..\..\..\tmp\krm\code\sal\Win32_OGL_Debug\sal.pch" /Fa"..\..\..\..\tmp\krm\code\sal\Win32_OGL_Debug\" /Fo"..\..\..\..\tmp\krm\code\sal\Win32_OGL_Debug\\" /Fd"..\..\..\..\dist\krm\lib\sal\Win32_OGL_Debug\/sal.pdb" /Gd /wd"4996" /wd"4345" /analyze- /errorReport:queue 

But if I switch to "final" configuration with this settings it fails:

/I"../../../../dist/krm/inc/" /I"../../../../dist/3rdParty/" /I"../../../../dist/3rdParty/Glew/Include/" /I"../../../../krm/inc/" /I"../../../../krm/src/" /Zi /nologo /W4 /WX- /Ox /Ob2 /Ot /Oy- /D "KRMCFG_GPU_OPENGL" /D "KRMCFG_MODE_FINAL" /D "KRMCFG_CPU_X86" /D "KRMCFG_CPU_FLOAT" /D "KRMCFG_PLATFORM_WIN" /D "KRMCFG_PLATFORM_VERSION_WIN_32" /D "_UNICODE" /D "UNICODE" /GF /Gm- /EHa /MD /GS /arch:SSE2 /fp:fast /Zc:wchar_t /Zc:forScope /GR- /Fp"..\..\..\..\tmp\krm\code\sal\Win32_OGL_Final\sal.pch" /Fa"..\..\..\..\tmp\krm\code\sal\Win32_OGL_Final\" /Fo"..\..\..\..\tmp\krm\code\sal\Win32_OGL_Final\\" /Fd"..\..\..\..\dist\krm\lib\sal\Win32_OGL_Final\/sal.pdb" /Gd /wd"4996" /wd"4345" /analyze- /errorReport:queue 

SO I think there is some interactio with the optimization settings I enabled....

Also as a side note the /GT parameter (Enable fiber safe optimizations) fails. 

Unai Landa
CTO
ulanda at digital-legends.com

Digital Legends Entertainment
C/ Bruc 50, 2-4
08010 Barcelona (Spain)
Tel : +34 93 394 17 77
Fax: +34 93 304 35 05
www.digital-legends.com

This e-mail message contains confidential information and/or legally privileged and is intended only for the use of the addressed person. Any disclosure, copying, distribution or the taking of any action in reliance on the contents of this e-mail by any other person is strictly prohibited. If you believe that this e-mail message has been sent to you by error, please notify the sender by reply via e-mail and then delete this message from your system. Thank you.

________________________________________
From: Alp Toker [alp at nuanti.com]
Sent: Saturday, November 09, 2013 2:07 PM
To: Unai Landa; cfe-dev at cs.uiuc.edu
Subject: Re: [cfe-dev] Testing the clang-cl integratio with VS2010

Hello,

Could you try this (unofficial) build and let me know if it works?

  http://clang.org/builds/clang-3.4a-win32.exe

I think the /MT change is good to upstream if so.

Alp.


On 08/11/2013 09:13, Unai Landa wrote:
> HI, I'm trying to do some tests with the clang-cl build found at http://llvm.org/builds/ with the VisualStudio 2010 compiler, and I get this error for any project or single file I tested.
>
> 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(153,5): error MSB6006: "CL.exe" exited with code -1073741515.
>
> Any clue on whats going on? I tried looking on the Bugzilla or google but found nothing.
>
>
> Unai Landa
> CTO
> ulanda at digital-legends.com
>
> Digital Legends Entertainment
> C/ Bruc 50, 2-4
> 08010 Barcelona (Spain)
> Tel : +34 93 394 17 77
> Fax: +34 93 304 35 05
> www.digital-legends.com
>
> This e-mail message contains confidential information and/or legally privileged and is intended only for the use of the addressed person. Any disclosure, copying, distribution or the taking of any action in reliance on the contents of this e-mail by any other person is strictly prohibited. If you believe that this e-mail message has been sent to you by error, please notify the sender by reply via e-mail and then delete this message from your system. Thank you.
>
> ________________________________________
> From: cfe-dev-bounces at cs.uiuc.edu [cfe-dev-bounces at cs.uiuc.edu] on behalf of cfe-dev-request at cs.uiuc.edu [cfe-dev-request at cs.uiuc.edu]
> Sent: Friday, November 08, 2013 8:17 AM
> To: cfe-dev at cs.uiuc.edu
> Subject: cfe-dev Digest, Vol 77, Issue 43
>
> Send cfe-dev mailing list submissions to
>         cfe-dev at cs.uiuc.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> or, via email, send a message with subject or body 'help' to
>         cfe-dev-request at cs.uiuc.edu
>
> You can reach the person managing the list at
>         cfe-dev-owner at cs.uiuc.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of cfe-dev digest..."
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

--
http://www.nuanti.com
the browser experts





More information about the cfe-dev mailing list