[CMake] RE: Cygwin cmake - Could not find CMAKE_ROOT

Wheeler, Frederick W (GE, Research) wheeler at crd.ge.com
Mon Oct 8 15:35:15 EDT 2007


CMake List:

Amitha and I figured out that I can run cygwin cmake if and only if I
use the full /usr/bin/cmake path.  Neither /bin/cmake or cmake work.
This is good enough for me.  I just want to report this odd behavior.

Fred


% cmake --version
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/bin
Segmentation fault (core dumped)
% /bin/cmake --version
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/bin
Segmentation fault (core dumped)
% /usr/bin/cmake --version
cmake version 2.4-patch 7
 
% df
Filesystem           1K-blocks      Used Available Use% Mounted on
C:\cygwin\bin         27318532  22716916   4601616  84% /usr/bin
C:\cygwin\lib         27318532  22716916   4601616  84% /usr/lib
C:\cygwin             27318532  22716916   4601616  84% /
c:                    27318532  22716916   4601616  84% /cygdrive/c
d:                    50733268  36486396  14246872  72% /cygdrive/d
h:                     3145728   1130760   2014968  36% /cygdrive/h

% mount
C:\cygwin\bin on /usr/bin type system (binmode)
C:\cygwin\lib on /usr/lib type system (binmode)
C:\cygwin on / type system (binmode)
c: on /cygdrive/c type system (binmode,noumount)
d: on /cygdrive/d type system (binmode,noumount)
h: on /cygdrive/h type system (binmode,noumount)

% type cmake
cmake is /bin/cmake
cmake is /usr/bin/cmake
cmake is /cygdrive/c/Program Files/CMake 2.4/bin/cmake

-----Original Message-----
From: Wheeler, Frederick W (GE, Research) 
Sent: Friday, October 05, 2007 1:31 PM
To: 'cmake at cmake.org'
Subject: Cygwin cmake - Could not find CMAKE_ROOT


I'm having trouble running cygwin cmake 2.4.7-2 on two different
machines, one running XP, and one Windows 2000.  Here's the error:

% /bin/cmake
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/bin
     39 [main] cmake 1196 _cygtls::handle_exceptions: Error while
dumping state (probably corrupted stack) Segmentation fault (core
dumped)

In each case I've installed cmake using the cygwin setup.exe installer.
On the XP machine I just did a reinstall of cmake using setup.exe, but
the problem persists.  I'm not sure when this problem began.  It could
have started months ago without me noticing.

/usr/share/cmake-2.4.7/Modules/ is full of .cmake and other files.
Looks normal to me.  About 192 files dated "Jul 31 09:51".
% ls -l /usr/share/cmake-2.4.7/Modules/|wc -l
194

I thought maybe I had an environment variable problem.  But if I unset
every environment variable I get the same behavior.

I get the same error in rxvt, and the usual cygwin bash shell.  But
cygwin cmake does in fact work (!!!) when run from a DOS window using:

  c:\cygwin\bin\cmake

I tried running bash, sh, tcsh and zsh from a DOS window and then
running /bin/cmake.  In each case - same error.  I never use tcsh or
zsh, so I don't have any configuration files for them.

cygcheck thinks my cmake install is OK (and cygcheck -c says every
installed package is OK)

% cygcheck -c cmake
Cygwin Package Information
Package              Version        Status
cmake                2.4.7-2        OK

I updated every installed cygwin package the "current" version a couple
of hours ago.
% md5sum /bin/cmake.exe
af465bc5ad9e6157a4898c476bfe62a3 */bin/cmake.exe

I don't see anything about this problem on the cmake or cygwin mailing
lists, so this must be something about my personal setup on these two
machines.  Any help or ideas for solving/debugging this would be
appreciated.

Thanks,
Fred Wheeler




More information about the CMake mailing list