Fw: cmake error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Fw: cmake error

Siamak Yousefi
Hi,
 
I am trying to install ITK using cmake on my computer, but I got the error message below. Any help in this regard is highly appreciated.
 
Regards,
Siamak Yousefi
 

CMake Error at

/home/syouse/cmake/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32

(MESSAGE):

The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/syouse/ITKb/CMakeFiles/CMakeTmp

 

 

Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"

/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make

CMakeFiles/cmTryCompileExec.dir/build

gmake[1]: Entering directory `/mnt/sdb1/syouse/ITKb/CMakeFiles/CMakeTmp'




_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: Fw: cmake error

Tyler Roscoe
On Fri, Aug 07, 2009 at 08:09:34AM -0700, Siamak Yousefi wrote:

> CMake Error at
> /home/syouse/cmake/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32
> (MESSAGE):
> The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
> It fails with the following output:
> Change Dir: /home/syouse/ITKb/CMakeFiles/CMakeTmp
>  
>  
> Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
> /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
> CMakeFiles/cmTryCompileExec.dir/build
> gmake[1]: Entering directory `/mnt/sdb1/syouse/ITKb/CMakeFiles/CMakeTmp'

Do you have write access to /home/syouse/ITKb/CMakeFiles/CMakeTmp?

Is /usr/bin/gcc the correct path to your C compiler?

tyler
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: Fw: cmake error

Siamak Yousefi
Hi,
 
I checked the access to /home/syouse/ITKb/CMakeFiles/CMakeTmp, it has the permission of writing. This "/usr/bin/gcc" is the path to gcc and g++. My shell is c shell. I run these three commands before configuring ITK:
 
setenv PATH "${PATH}:/home/syouse/cmake/bin"
setenv CC /usr/bin/gcc
setenv CXX /usr/bin/g++
 
Thanks for your time.
 
Siamak


From: Tyler Roscoe <[hidden email]>
To: Siamak Yousefi <[hidden email]>
Cc: cmake <[hidden email]>
Sent: Friday, August 7, 2009 10:25:30 AM
Subject: Re: [CMake] Fw: cmake error

On Fri, Aug 07, 2009 at 08:09:34AM -0700, Siamak Yousefi wrote:

> CMake Error at
> /home/syouse/cmake/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32
> (MESSAGE):
> The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
> It fails with the following output:
> Change Dir: /home/syouse/ITKb/CMakeFiles/CMakeTmp
>  
>  
> Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
> /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
> CMakeFiles/cmTryCompileExec.dir/build
> gmake[1]: Entering directory `/mnt/sdb1/syouse/ITKb/CMakeFiles/CMakeTmp'

Do you have write access to /home/syouse/ITKb/CMakeFiles/CMakeTmp?

Is /usr/bin/gcc the correct path to your C compiler?

tyler


_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: Fw: cmake error

Tyler Roscoe
On Fri, Aug 07, 2009 at 08:43:51AM -0700, Siamak Yousefi wrote:
> I checked the access to /home/syouse/ITKb/CMakeFiles/CMakeTmp, it has
> the permission of writing. This "/usr/bin/gcc" is the path to gcc and
> g++. My shell is c shell. I run these three commands before
> configuring ITK:
>
> setenv PATH "${PATH}:/home/syouse/cmake/bin"
> setenv CC /usr/bin/gcc
> setenv CXX /usr/bin/g++

I personally find c shell gross, but that's probably not causing this
problem :).

I'm not really sure what to check next. Maybe the output of 'make
VERBOSE=1' will clarify why CMake can't do your test compile.

tyler
_______________________________________________
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