<div class="h5"></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Sounds like you must have gotten errors when you built gcc...<br><br>Pore through the log of what happened during the gcc build maybe?<br>
<br>Are you building gcc from source, or using some package manager to build it for you? (MacPorts, something else?)<br>
</blockquote></div><br><div>FYI - there was no problem all along with the build (see paragraph below):<br> </div><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex" class="gmail_quote">
The
executable 'gcc' never exists in the build directory even if the build
is successful. It is called 'xgcc'. 'xgcc' will finally be renamed to
'gcc' as part of 'make install'. The reason for this naming convention
is listed in the source file gcc/Makefile.in:<br>
<br># We call this executable `xgcc' rather than `gcc'<br># to avoid confusion if the current directory is in the path<br># and CC is `gcc'. It is renamed to `gcc' when it is installed.<br><br>BR,<br>Andi<br>
</blockquote><br>However, I'm still having trouble using it to build
ITK. I tried two things:<br><br>1) I run <br>ccmake ~/src/ITK<br><br>Then before I configure, I change the
CMAKE_C/CXX_COMPILER variables. Then when I configure I get:<br><br> You have changed variables that require your cache to be deleted.<br>
Configure will be re-run and you may have to reset some variables.<br> The following variables have changed:<br> CMAKE_C_COMPILER= /home/doriad/bin/gcc/gcc/xgcc<br> CMAKE_CXX_COMPILER= /home/doriad/bin/gcc/gcc/g++<br><br>
<br> CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:52<br> (MESSAGE):<br> The C compiler "/home/doriad/bin/gcc/gcc/xgcc" is not able to compile a<br> simple test program.<br><br> It fails with the following output:<br>
<br> Change Dir: /home/doriad/bin/ITK_newgcc/CMakeFiles/CMakeTmp<br><br>2) I run:<br>ccmake ../../src/ITK -DCMAKE_CXX_COMPILER=/home/doriad/bin/gcc/gcc/g++ -DCMAKE_C_COMPILER=/home/doriad/bin/gcc/gcc/xgcc<br><br> CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:52<br>
(MESSAGE):<br> The C compiler "/home/doriad/bin/gcc/gcc/xgcc" is not able to compile a<br> simple test program.<br><br> It fails with the following output:<br><br> Change Dir: /home/doriad/bin/ITK_newgcc/CMakeFiles/CMakeTmp<br>
<br><br><br> Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"<br><br> /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make<br> CMakeFiles/cmTryCompileExec.dir/build<br><br> gmake[1]: Entering directory<br>
`/home/doriad/bin/ITK_newgcc/CMakeFiles/CMakeTmp'<br><br><br>Any thoughts?<br><br>Thanks,<br><br>David<br>