[CMake] 2.8.3 fortran regression or how to find configure problem

2010-11-08 Thread Allen D Byrne
Friday I upgraded my windows VS2008 and IVF111 machines to cmake 2.8.3. Over 
the weekend they all failed to configure with fortran :
>-- Check for working Fortran compiler using: Visual Studio 9 2008  -- broken
>CMake Error at C:/Program Files/CMake 
>2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:40 (MESSAGE):
>  The Fortran compiler "ifort" is not able to compile a simple test program.
>
>  It fails with the following output:
>
>   Change Dir: C:/autotest/HDF4CMake/tests/Monday-vs9/Build/CMakeFiles/CMakeTmp
>
>  
>
>  Run Build Command:c:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
>  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
>
>  
>
>  Microsoft (R) Visual Studio Version 9.0.21022.8.
>
>  Copyright (C) Microsoft Corp.  All rights reserved.
>
Include with this update was a 'MS Windows update' cycle as well. I will try 
next to go back to 2.8.2 and try again.
Also, I could use some help on finding the cause.

Allen
___
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

Re: [CMake] 2.8.3 fortran regression or how to find configure problem

2010-11-08 Thread Biddiscombe, John A.
When using ifort on windows I do the following


a)  Make sure cmake is launched from inside a cmd prompt with the 
ifort-vars.bat set so that the ifort compiler is on the path etc etc

b)  always use nmake makefiles to do the initial configure and detection

c)   once the project is ready to compile, you can edit the cmakecache and 
insert the visual studio (2008) generator, then rerun cmake and regenerate.

Now you are a happy bunny and can compile using the IDE if desired - or skip C 
and use nmake

JB


From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of 
Allen D Byrne
Sent: 08 November 2010 16:18
To: cmake@cmake.org
Subject: [CMake] 2.8.3 fortran regression or how to find configure problem


Friday I upgraded my windows VS2008 and IVF111 machines to cmake 2.8.3. Over 
the weekend they all failed to configure with fortran :

>-- Check for working Fortran compiler using: Visual Studio 9 2008 -- broken

>CMake Error at C:/Program Files/CMake 
>2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:40 (MESSAGE):

>  The Fortran compiler "ifort" is not able to compile a simple test program.

>

>  It fails with the following output:

>

>   Change Dir: C:/autotest/HDF4CMake/tests/Monday-vs9/Build/CMakeFiles/CMakeTmp

>

>

>

>  Run Build Command:c:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com

>  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec

>

>

>

>  Microsoft (R) Visual Studio Version 9.0.21022.8.

>

>  Copyright (C) Microsoft Corp.  All rights reserved.

>

Include with this update was a 'MS Windows update' cycle as well. I will try 
next to go back to 2.8.2 and try again.

Also, I could use some help on finding the cause.

Allen
___
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

Re: [CMake] 2.8.3 fortran regression or how to find configure problem

2010-11-08 Thread Allen D Byrne
This did work before the update - and reinstalling cmake 2.8.2 worked. BTW, I 
uninstalled and deleted the CMake Program Files folder to make sure there was 
no interference between versions. I now believe this to be a CMake 2.8.3 
problem. I'll be glad to help debug this if someone can provide suggestions. 
In the meantime I will be reinstalling 2.8.2 onto these machines. I guess it is 
an ifort-VS2008 issue on windows as linux boxes had no problems.

Allen

> When using ifort on windows I do the following
> 
> 
> a)  Make sure cmake is launched from inside a cmd prompt with the 
> ifort-vars.bat set so that the ifort compiler is on the path etc etc
> 
> b)  always use nmake makefiles to do the initial configure and detection
> 
> c)   once the project is ready to compile, you can edit the cmakecache 
> and insert the visual studio (2008) generator, then rerun cmake and 
> regenerate.
> 
> Now you are a happy bunny and can compile using the IDE if desired - or skip 
> C and use nmake
> 
> JB
> 
> 
> From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of 
> Allen D Byrne
> Sent: 08 November 2010 16:18
> To: cmake@cmake.org
> Subject: [CMake] 2.8.3 fortran regression or how to find configure problem
> 
> 
> Friday I upgraded my windows VS2008 and IVF111 machines to cmake 2.8.3. Over 
> the weekend they all failed to configure with fortran :
> 
> >-- Check for working Fortran compiler using: Visual Studio 9 2008 -- broken
> 
> >CMake Error at C:/Program Files/CMake 
> >2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:40 (MESSAGE):
> 
> >  The Fortran compiler "ifort" is not able to compile a simple test program.
> 
> >
> 
> >  It fails with the following output:
> 
> >
> 
> >   Change Dir: 
> > C:/autotest/HDF4CMake/tests/Monday-vs9/Build/CMakeFiles/CMakeTmp
> 
> >
> 
> >
> 
> >
> 
> >  Run Build Command:c:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
> 
> >  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
> 
> >
> 
> >
> 
> >
> 
> >  Microsoft (R) Visual Studio Version 9.0.21022.8.
> 
> >
> 
> >  Copyright (C) Microsoft Corp.  All rights reserved.
> 
> >
> 
> Include with this update was a 'MS Windows update' cycle as well. I will try 
> next to go back to 2.8.2 and try again.
> 
> Also, I could use some help on finding the cause.
> 
> Allen
> 
___
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


Re: [CMake] 2.8.3 fortran regression or how to find configure problem

2010-11-08 Thread Bill Hoffman

On 11/8/2010 1:15 PM, Allen D Byrne wrote:

This did work before the update - and reinstalling cmake 2.8.2 worked. BTW, I 
uninstalled and deleted the CMake Program Files folder to make sure there was 
no interference between versions. I now believe this to be a CMake 2.8.3 
problem. I'll be glad to help debug this if someone can provide suggestions.
In the meantime I will be reinstalling 2.8.2 onto these machines. I guess it is 
an ifort-VS2008 issue on windows as linux boxes had no problems.



Can you try with --debug-trycompile, and then manually load the project 
in the /CMakeFiles/CMakeTmp directory, and see what is wrong with it?


-Bill
___
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


Re: [CMake] 2.8.3 fortran regression or how to find configure problem

2010-11-08 Thread Allen D Byrne
Bill,
   The projects do differ in the VFFortranCompilerTool option of the project 
file
DEBUG:
AdditionalOptions=" /W1 /libs:dll /threads /dbglibs" instead of 
AdditionalOptions=" /dbglibs"
RELEASE:
AdditionalOptions=" /W1 /libs:dll /threads" instead of ""
and
DEBUG:
RELEASE:
SuppressStartupBanner="true" Preprocess="preprocessYes" instead of ""

Taking out the new AdditionalOptions=" /W1 /libs:dll /threads" allowed the 
project to succeed.

Allen
> On 11/8/2010 1:15 PM, Allen D Byrne wrote:
> > This did work before the update - and reinstalling cmake 2.8.2 worked. BTW, 
> > I uninstalled and deleted the CMake Program Files folder to make sure there 
> > was no interference between versions. I now believe this to be a CMake 
> > 2.8.3 problem. I'll be glad to help debug this if someone can provide 
> > suggestions.
> > In the meantime I will be reinstalling 2.8.2 onto these machines. I guess 
> > it is an ifort-VS2008 issue on windows as linux boxes had no problems.
> >
> 
> Can you try with --debug-trycompile, and then manually load the project 
> in the /CMakeFiles/CMakeTmp directory, and see what is wrong with it?
> 
> -Bill
> 
___
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

Re: [CMake] 2.8.3 fortran regression or how to find configure problem

2010-11-09 Thread Brad King
On 11/8/2010 3:54 PM, Allen D Byrne wrote:
>The projects do differ in the VFFortranCompilerTool option of the project 
> file
> 
> DEBUG:
> 
> AdditionalOptions=" /W1 /libs:dll /threads /dbglibs" instead of
> AdditionalOptions=" /dbglibs"
> 
> RELEASE:
> 
> AdditionalOptions=" /W1 /libs:dll /threads" instead of ""
> 
> and
> 
> DEBUG:
> 
> RELEASE:
> 
> SuppressStartupBanner="true" Preprocess="preprocessYes" instead of ""
> 
> Taking out the new AdditionalOptions=" /W1 /libs:dll /threads" allowed
> the project to succeed.

The regression was introduced here:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=20f49730

but it was a fix for another bug:

  http://www.cmake.org/pipermail/cmake/2010-September/039829.html

I think this regression was an existing bug that was exposed
by the other fix.  A table in

  Source/cmLocalVisualStudio7Generator.cxx

that maps from compiler flags to IDE project file entries has
no entries for these flags.  They should not be put in the
AdditionalOptions entry but instead mapped to other attributes.

The current behavior probably causes conflicting flags to
be passed by the IDE to the compiler.  I don't know why this
problem didn't show up while testing the fix for the above
bug.  I'll look at adding the missing flag mapping entries.

-Brad
___
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


Re: [CMake] 2.8.3 fortran regression or how to find configure problem

2010-11-09 Thread Bill Hoffman

On 11/9/2010 8:03 AM, Brad King wrote:


Taking out the new AdditionalOptions=" /W1 /libs:dll /threads" allowed
the project to succeed.


The regression was introduced here:

   http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=20f49730


So, you should be able to get a temporary fix by reverting this change 
via CMAKE_MODULE_PATH and providing your own versions of these files.




but it was a fix for another bug:

   http://www.cmake.org/pipermail/cmake/2010-September/039829.html

I think this regression was an existing bug that was exposed
by the other fix.  A table in

   Source/cmLocalVisualStudio7Generator.cxx

that maps from compiler flags to IDE project file entries has
no entries for these flags.  They should not be put in the
AdditionalOptions entry but instead mapped to other attributes.

The current behavior probably causes conflicting flags to
be passed by the IDE to the compiler.  I don't know why this
problem didn't show up while testing the fix for the above
bug.  I'll look at adding the missing flag mapping entries.

-Brad
___
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




--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoff...@kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
___
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