[CMake] try_compile generates assertion failure in MSVC 2010

Dominik Szczerba dominik at itis.ethz.ch
Fri Feb 4 07:50:26 EST 2011


Yes,

The program does things like computing epsilon and their functions,
then printing them to std output... from where I intercept them and
save in a .h file.
Works fine on Linux. Any way to fix it on Windows?

Thanks,
Dominik

On Fri, Feb 4, 2011 at 1:41 PM, Martin O'Brien
<martin.matthew.obrien at gmail.com> wrote:
> Are you doing something with floating point?
>
> mm
>
>
>
>
> -----Original Message-----
> From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of
> Eric Noulard
> Sent: Friday, February 04, 2011 7:13 AM
> To: Dominik Szczerba
> Cc: CMake mailing list
> Subject: Re: [CMake] try_compile generates assertion failure in MSVC 2010
>
> 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
>
> _______________________________________________
> 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