[CMake] try_compile generates assertion failure in MSVC 2010

Martin O'Brien martin.matthew.obrien at gmail.com
Fri Feb 4 08:31:59 EST 2011


You might want to take a look at this CL options:

-fp
-Qfast_transcendentals
-QIfist
-Qimprecise_fwaits
-Qsafe_fp_loads

You might give -fp:except a try, not that I have any idea of whether it will
help or not.


mm
-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of
Dominik Szczerba
Sent: Friday, February 04, 2011 7:53 AM
To: Eric Noulard
Cc: CMake mailing list
Subject: Re: [CMake] try_compile generates assertion failure in MSVC 2010

Sample code:

// foo and others computed as a function of epsilon, also computed
printf ("static double foo = %f;\n", foo);

I have not tried other compilers on Windows, the project I am working
on has to compile with MSVC...

Any hints are welcome.

Regards,
Dominik

On Fri, Feb 4, 2011 at 1:13 PM, Eric Noulard <eric.noulard at gmail.com> wrote:
> 2011/2/4 Dominik Szczerba <dominik at itis.ethz.ch>:
>> I use try_compile to configure my project and it works fine on linux.
>> On Windows I get a lovely assertion failure, when calling cmake from
>> VC command line:
>>
>> (typos possible, typed from a popup window)
>>
>> Debug Assertion Failed!
>> Program:
>> .............\cmTryCompileExec.exe
>> File:
>> f:\dd\vctools\crt_bld\self_64_amd64_crt\prebuild\tran\amd64\ieee.c
>> Line: 109
>>
>> Expression: (mask&~(_MCW_DNI_MCW_EMI_MCW_RC))==0
>>
>>
>> Did anyone ever had this problem and found a way out?
>
> Nope.
> But may be you could give us the piece of source code used in try_compile
> which leads to the error?
>
> Do you have the same issue with GCC (e.g. MinGW, http://www.mingw.org)
> or another compiler on Windows?
>
> [You can try with Code::Blocks generator
>  there is a Code::Blocks distro which includes MinGW
>  http://www.codeblocks.org/downloads/26]
>
>
> --
> Erk
> Membre de l'April - « promouvoir et défendre le logiciel libre » -
> http://www.april.org
>
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list