[Insight-users] Re: Problem building in IRIX

Luis Ibanez luis.ibanez at kitware.com
Thu, 04 Mar 2004 00:29:19 -0500


Hi Jimmy,


Here seems to be the source of your problem,
from your CMakeCache.txt file:


//C++ compiler
CMAKE_CXX_COMPILER:STRING=CC

//full path to the compiler cmake found
CMAKE_CXX_COMPILER_FULLPATH:INTERNAL=/usr/freeware/bin/c++


//C compiler
CMAKE_C_COMPILER:STRING=cc

//full path to the compiler cmake found
CMAKE_C_COMPILER_FULLPATH:INTERNAL=/usr/freeware/bin/gcc


You are trying to use the IRIX native compilers but for
some reason they end up being mapped into the GNU compiler.

It looks like the configuration end up being confused between
being a GNU build or a MIPS ones.


Can you please post the content of the
CC and CXX environment variables  ?

Just do

     echo $CC
     echo $CXX

then check to what file the "cc" and "CC" executable are
pointing to,   just do:

     which cc
     which CC


To put it short, for some reason in your system, you
attempt to invoke the MIPS compiler and you get the
GNU compiler instead.


(Just for the record, at this point your binary directory
is so mixed up that for any further test you must first
destroy this directory and start the configuration from
scratch).



Please post what you find with the tests above.



    Thanks


      Luis



---------------------
Jimmy Scott wrote:

> Hi Luis;
>        Thanks for responding.     The error I reported is different from 
> this one
> because I was using the  MIPSPro.7.3.1.1 CC and cc compilers.  I have 
> decided
> to try the MIPSPro.7.4 compiler which is an upgraded compiler to see if 
> it works
> better.  What I am now getting is the following.  I would like to 
> continue with
> MIPSpro.7.4.
> 
> Thanks
> 
> Jimmy
> 
> /store/jcs/SUNNY/Insight_1.6/Utilities/vxl/core: building default_target
> Building dependencies. cmake.depends...
> cmake.depends is up-to-date
> /store/jcs/SUNNY/Insight_1.6/Utilities/vxl/core/testlib: building 
> default_target
> Building dependencies. cmake.depends...
> Building object file testlib_test.o...
> cc-1278 CC: ERROR File = 
> /store/jcs/SUNNY/InsightToolkit-1.6.0/Utilities/vxl/core/testlib/testlib_test.cxx, 
> Line = 99
>  No instance of function template "vcl_abs" matches the argument list.
> 
>            The argument types are:  (double).
>    double diff = vcl_abs(expr - target);
>                  ^
> 
> cc-1278 CC: ERROR File = 
> /store/jcs/SUNNY/InsightToolkit-1.6.0/Utilities/vxl/core/testlib/testlib_test.cxx, 
> Line = 117
>  No instance of function template "vcl_abs" matches the argument list.
> 
>            The argument types are:  (double).
>    double diff = vcl_abs(expr - target);
>                  ^
> 
> cc-1278 CC: ERROR File = 
> /store/jcs/SUNNY/InsightToolkit-1.6.0/Utilities/vxl/core/testlib/testlib_test.cxx, 
> Line = 135
>  No instance of function template "vcl_abs" matches the argument list.
> 
>            The argument types are:  (long).
>    long diff = vcl_abs(expr - target);
>                ^
> 
> 3 errors detected in the compilation of 
> "/store/jcs/SUNNY/InsightToolkit-1.6.0/Utilities/vxl/core/testlib/testlib_test.cxx". 
> 
> gmake[9]: *** [testlib_test.o] Error 2
> gmake[8]: *** [default_target] Error 2
> gmake[7]: *** [default_target_testlib] Error 2
> gmake[6]: *** [default_target] Error 2
> gmake[5]: *** [default_target_core] Error 2
> gmake[4]: *** [default_target] Error 2
> gmake[3]: *** [default_target_vxl] Error 2
> gmake[2]: *** [default_target] Error 2
> gmake[1]: *** [default_target_Utilities] Error 2
> gmake: *** [default_target] Error 2
> 
> 
> 
> 
> 
> Luis Ibanez wrote:
> 
>>
>> Hi Jcs,
>>
>> Thanks for login the bug report #634 concerning the build on IRIX.
>>
>> This, however doesn't seem to be a bug, but rather a configuration
>> problem.  ITK is built nightly on four different combinations of SGI
>> platforms.
>>
>> Could you please send us the following files that CMake generates in
>> the binary directory where you are trying to build ITK.
>>
>>
>>      - CMakeCache.txt
>>      - CMakeError.log
>>      - CMakeOutput.log
>>
>>
>>
>> Thanks
>>
>>
>>    Luis
>>
>>
>>
>>
>