[CMake] Re: CMAKE_MAKE_PROGRAM is not set

William A. Hoffman billlist at nycap.rr.com
Sat Mar 11 23:17:34 EST 2006


You need to start from a clean build tree, and a source tree
that you have never run cmake in.   

Then set in your environment:
CC=gcc
CXX=g++

Then run cmake.

Also check your environment for LDFLAGS, which is where I suspect
the -64 is coming from.

At 08:13 PM 3/11/2006, Martin Baumann wrote:
>Hi,
>
>don't have the Modules installed on the system. 
>
>I checked the Modules/CMakeUnixFindMake.cmake but this didn't help me.
>
>The first message is: 
>
> The C compiler "gcc" is not able to compile a simple test program.
> It fails with the following output:
>  /lvdraid/user/ry149/local/bin/cmake -H/lvdraid/user/ry149/local/src/cmake/cmake-2.2.3/CMakeTmp
> -B/lvdraid/user/ry149/local/src/cmake/cmake-2.2.3/CMakeTmp --check-build-system CMakeFiles/Makefile.cmake 0
> /usr/freeware/bin/gmake -f CMakeFiles/Makefile2 cmTryCompileExec
>What is this message trying to tell me? Ok, the test program is not compiled, but what is the error?
>I need to know something about the error. Else this message has no use at all!
>
>The system now has a gcc-3.3 compiler installed. I checked the gcc manual and did some changes to system variables:
>
>  CC=mips-sgi-irix6.5-gcc
>  CFLAGS='-O3 -fomit-frame-pointer'
>  CPPFLAGS='-I/usr/freeware/include -I/usr/local/include -I/usr/machine/include -I/usr/segment/include -march=mips3'
>  CXX=mips-sgi-irix6.5-g++
>  CXXFLAGS='-O3 -fomit-frame-pointer'
>  GCC=mips-sgi-irix6.5-gcc
>  GCFLAGS='-O3 -fomit-frame-pointer'
>  GCPPFLAGS='-I/usr/freeware/include -I/usr/local/include -I/usr/machine/include -I/usr/segment/include -march=mips3'
>  GCXX=mips-sgi-irix6.5-g++
>  GCXXFLAGS='-O3 -fomit-frame-pointer'
>  GLDFLAGS='-L/usr/freeware/lib32 -L/usr/lib32 -L/usr/machine/lib32 -Wl,-rpat'
>  LDFLAGS='-L/usr/freeware/lib32 -L/usr/lib32 -L/usr/machine/lib32 -Wl,-rpat'

My guess is that mips-sgi-irix6.5-g++ is not in your  path, and it is most
likely not the name of the compiler.  If cmake fails to find the compiler
specified in CC environment, it will start looking for a different one.
-Bill



More information about the CMake mailing list