[CMake] Problem with last CMake

Bill Hoffman bill.hoffman at kitware.com
Fri Jan 26 12:05:32 EST 2007


Ilya Shvetsov wrote:
> On Fri, 26 Jan 2007 17:57:19 +0200, Ilya Shvetsov <chvetsov at kranx.com> 
> wrote:
>
>>> What version of msys?
>>>
>>> uname -a
>>>
>> Sorry for inattention.
>> I typed this command and get this
>> CYGWIN_NT-5.1 kbi 1.5.22(0.156/4/2) 2006-11-13 17:01 i686 Cygwin
>>
>> May be problem is hear.
>>
> No, problem some where else.
> I have cleared PATH and now
> make --version gets: 3.79.1
> uname -a: MINGW32_NT-5.1 KBI 1.0.11(0.46/3/2) 2004-04-30 18:55 i686 
> unknown
>
> gcc --version: gcc.EXE (GCC) 3.4.5 (mingw special)
>
> Now cmake gets this output:
>
> ...\wsp\cmake\myss>cmake -G"MSYS Makefiles" ..\..\..
> -- Check for working C compiler: H:/DevTools/msys/1.0/mingw/bin/gcc.exe
> -- Check for working C compiler: 
> H:/DevTools/msys/1.0/mingw/bin/gcc.exe -- broken
> CMake Error: The C compiler "H:/DevTools/msys/1.0/mingw/bin/gcc.exe" 
> is not able to compile a simple test program.
> It fails with the following output:
>  /bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make 
> CMakeFiles/cmTryCompileExec.dir/build
> make: /bin/sh: Command not found
> make: *** [cmTryCompileExec/fast] Error 127
You need to run this from an msys shell, and /bin/make should be able to 
find /bin/sh if you are running msys correctly.
Also, it is not a good idea to mix cygwin and msys.  

-Bill



More information about the CMake mailing list