MantisBT - CMake
View Issue Details
0009643CMakeCMakepublic2009-10-02 06:272016-06-10 14:31
Mathieu Malaterre 
Brad King 
normalmajoralways
closedmoved 
CMake-2-6 
 
0009643: Output is meaningless for missing file.
CMake does not report the full error log.

CMake reports:

  Run Build Command:nmake /NOLOGO "cmTryCompileExec\fast"

      nmake -f CMakeFiles\cmTryCompileExec.dir\build.make /nologo -L
  CMakeFiles\cmTryCompileExec.dir\build


      "C:\Program Files\CMake 2.6\bin\cmake.exe" -E cmake_progress_report
  C:\cygwin\home\mathieu\Perso\gdcm\debug-wine\CMakeFiles\CMakeTmp\CMakeFiles
  1


  File not found


  

  NMAKE : fatal error U1077: '"C:\Program Files\CMake 2.6\bin\cmake.exe"' :
  return code '0x2331'


  Stop.




While grepping in the error log one can find:


Determining if this is a free VC compiler failed with the following output:
CMakeTestForFreeVC.cxx
LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'

Determining if the C compiler works failed with the following output:
Change Dir: C:/cygwin/home/mathieu/Perso/gdcm/debug-wine/CMakeFiles/CMakeTmp

Run Build Command:nmake /NOLOGO "cmTryCompileExec\fast"
    nmake -f CMakeFiles\cmTryCompileExec.dir\build.make /nologo -L CMakeFiles\cmTryCompileExec.dir\build

    "C:\Program Files\CMake 2.6\bin\cmake.exe" -E cmake_progress_report C:\cygwin\home\mathieu\Perso\gdcm\debug-wine\CMakeFiles\CMakeTmp\CMakeFiles 1

File not found


NMAKE : fatal error U1077: '"C:\Program Files\CMake 2.6\bin\cmake.exe"' : return code '0x2331'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\nmake.exe"' : return code '0x2'

Stop.


Clearly the important line is:

LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'


It should not be discarded from the output.


A simple way to reproduce is simply remove (rename) MSVCRT.lib to blaMSVCRT.lib


Thanks !
No tags attached.
Issue History
2009-10-02 06:27Mathieu MalaterreNew Issue
2009-10-02 06:29Mathieu MalaterreNote Added: 0017891
2009-10-02 09:34Bill HoffmanStatusnew => assigned
2009-10-02 09:34Bill HoffmanAssigned To => Brad King
2009-10-02 09:55Brad KingNote Added: 0017897
2012-08-13 10:44Brad KingStatusassigned => backlog
2012-08-13 10:44Brad KingNote Added: 0030559
2016-06-10 14:27Kitware RobotNote Added: 0041601
2016-06-10 14:27Kitware RobotStatusbacklog => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0017891)
Mathieu Malaterre   
2009-10-02 06:29   
See also discussion at:

http://www.cmake.org/pipermail/cmake/2009-September/032251.html [^]
(0017897)
Brad King   
2009-10-02 09:55   
The line

  LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'

appears in the output of a different step. First it does "Determining if this is a free VC compiler" and logs this line. Then, in a totally separate try-compile, it does "Determining if the C compiler works", and is indeed reporting all the output from that failure.
(0030559)
Brad King   
2012-08-13 10:44   
Sending issues I'm not actively working on to the backlog to await someone with time for them.

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it:

 http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer or contributor who has the bandwidth to take it on.
(0041601)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.