[Insight-users] __FUNCTION__ error during ITK build on IRIX

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu Jul 28 13:31:38 EDT 2005


Michael,

	You have to include:

#include <stdarg.h>

	The thing I don't understand is why this is not done already in ITK. 
Are you using ITK CVS ? Can you tell use which file (from ITK) is 
actually causing the problem ?

Thanks
Mathieu

Michael Hardisty wrote:
> Hello Mathieu,
>                      Thanks a lot for the clear instruction.  I did what 
> you said and this got the MIPSpro compilers to do the building.  However 
> I am now getting errors during the building.  Any help would be 
> appreciated.  Here are the errors:
> 
> cc-1020 CC: ERROR File = /usr/include/inttypes.h, Line = 188
>  The identifier "va_list" is undefined.
> 
>  extern int i_vfprintf ( FILE *stream, const char *format, va_list va );
>                                                            ^
> 
> cc-1020 CC: ERROR File = /usr/include/inttypes.h, Line = 190
>  The identifier "va_list" is undefined.
> 
>  extern int i_vprintf  ( const char *format, va_list va );
>                                              ^
> 
> cc-1020 CC: ERROR File = /usr/include/inttypes.h, Line = 192
>  The identifier "va_list" is undefined.
> 
>  extern int i_vsprintf ( char *s, const char *format, va_list va );
> 
> Thanks to anyone who can help.
> 
> Michael
> 
> Mathieu Malaterre wrote:
> 
>> Michael,
>>
>>     First thing: please remove completely your binary directory cmake 
>> configure step is confused because you have a mixture of MIPSpro and 
>> gcc. Also this is *very* bad to modify internal file of cmake. Please 
>> restore, or reinstall cmake.
>>
>>     All you need to do is:
>>
>> $ export CC=cc
>> $ export CXX=CC
>> $ cmake ../Insight
>> $ make
>>
>> That's all
>> Mathieu
>> Ps: I insist remove completely your Insight binary dir !
>>
>> Michael Hardisty wrote:
>>
>>> Hello ITK users,
>>>    I am currently trying to build ITK on an SGI machine that is 
>>> running IRIX64 6.5.26f.  I want to build ITK with MIPSpro Compilers: 
>>> Version 7.4.2m C++ compiler.  I am having several problems:  How am I 
>>> supposed to tell cmake that I wish to use the CC compiler rather than 
>>> gcc and g++, which are also installed on the system.  I changed the 
>>> options CMAKE_CXX_COMPILER and CMAKE_C_COMPILER within cmake's 
>>> configuration, however this seemed to make no difference to the 
>>> compiler that was initiated when I typed make.  I did get the CC 
>>> compilers to be initiated by editing the following files:
>>>
>>> "CMakeCCompiler.cmake"
>>> SET(CMAKE_C_COMPILER "gcc") to SET(CMAKE_C_COMPILER "cc")
>>>
>>> SET(CMAKE_COMPILER_IS_GNUCC 1) to SET(CMAKE_COMPILER_IS_GNUCC 0)
>>>
>>> "CMakeCXXCompiler.cmake"
>>> SET(CMAKE_CXX_COMPILER "c++") to SET(CMAKE_CXX_COMPILER "CC")
>>>
>>> SET(CMAKE_COMPILER_IS_GNUCXX 1) to SET(CMAKE_COMPILER_IS_GNUCXX 0)
>>>
>>> SET(CMAKE_COMPILER_IS_GNUCXX_RUN 1) to 
>>> SET(CMAKE_COMPILER_IS_GNUCXX_RUN 0)
>>>
>>> After making these changes and restarting cmake and configuring ITK 
>>> and making ITK I get the CC compilers to do the build, however I get 
>>> the following error and many just like it that occur on different 
>>> lines within the same file.  Does anyone know what could be causing 
>>> these errors?  I am building the current CVS repository version.  Any 
>>> help would be appreciated.
>>>
>>> cc-1020 CC: ERROR File = 
>>> /projects/abaqus/cwhyne/mike/Insight/Utilities/gdcm/src/gdcmDicomDir.cxx, 
>>> Line = 146
>>>  The identifier "__FUNCTION__" is undefined.
>>>
>>>           gdcmWarningMacro( "Entry HT empty for file: "<<fileName)
>>>
>>>
>>> thanks
>>>
>>> Michael
>>>
>>
> 



More information about the Insight-users mailing list