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

Luis Ibanez luis.ibanez at kitware.com
Thu Jul 28 19:32:47 EDT 2005


Hi Michael,

Please post to the list the file:

          CMakeCache.txt

that CMake generates for you in the binary
directory where you are attempting to build ITK.

Also, check the location of your cc and CC
compilers. You can do this with

          which cc
          which CC

It is likely that your system is mixing the
version of your cc and CC compilers.


    Thanks


      Luis



-------------------------
Michael Hardisty wrote:
> Mathieu,
>    I have attempted to build from the Release versions (2.0.0) on the 
> web site and from the CVS.  The previous error that I had reported was 
> from the CVS version.  The file that is causing the error within ITK is 
> "gdcmFileHelper.cxx".  The entire error I am getting I have listed below 
> under CVS - Errors.  During my attempts to use the release version from 
> the web site, I had the same errors occur during the compilation of a 
> different file , "gdcmUtil.cxx".  It is the same: identifier "va_list" 
> is undefined error.  I have listed this error below under Version 
> 2.0.0.  I had CMake errors during configuring of version 2.0.0, I have 
> listed these errors below under CMake - ITK 2.0.0 - Errors.  It seems 
> that CMake was unable to locate itkSymme
> tricEllipsoidInteriorExteriorSpatialFunctionTest.cxx, 
> itkBloxBoundaryPointImageToBloxBoundaryProfileImageFilterTest.cxx and it
> kBloxBoundaryProfileImageToBloxCoreAtomImageFilterTest.cxx.  To get past 
> this problem I just turned off the TESTING part of itk by change the 
> CMake option  BUILD_TESTING to OFF.  I have also attempted to build the 
> ITK CVS version on another IRIX machine that we have around with the 
> same compiler and again got the same error in a different file again, 
> this time "RGBGradientAnisotropicDiff usionImageFilter".  I have listed 
> this error below under "Skule - Errors".  Thanks for all of your help.
> 
> Michael
> 
> CVS - Errors
> 
> /projects/abaqus/cwhyne/mike/Insight/Utilities/gdcm/src/gdcmFileHelper.cxx
> 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 );
>                                                       ^
> 
> 3 errors detected in the compilation of 
> "/projects/abaqus/cwhyne/mike/Insight/Utilities/gdcm/src/gdcmFileHelper.cxx". 
> 
> 
> 
> Version 2.0.0 - Errors
> 
> cc-1020 CC: ERROR File = 
> /projects/abaqus/cwhyne/mike/InsightToolkit-2.0.0/Utilities/gdcm/src/gdcmUtil.cxx, 
> Line = 111
>  The identifier "va_list" is undefined.
> 
>     va_list args;
>     ^
> 
> cc-1065 CC: ERROR File = 
> /projects/abaqus/cwhyne/mike/InsightToolkit-2.0.0/Utilities/gdcm/src/gdcmUtil.cxx, 
> Line = 111
>  A semicolon is expected at this point.
> 
>     va_list args;
>             ^
> 
> cc-1020 CC: ERROR File = 
> /projects/abaqus/cwhyne/mike/InsightToolkit-2.0.0/Utilities/gdcm/src/gdcmUtil.cxx, 
> Line = 112
>  The identifier "args" is undefined.
> 
>     va_start(args, format);
>     ^
> 
> 3 errors detected in the compilation of 
> "/projects/abaqus/cwhyne/mike/InsightToolkit-2.0.0/Utilities/gdcm/src/gdcmUtil.cxx". 
> 
> 
> 
> CMake - ITK 2.0.0 - Errors
> 
> CMake Error: can not find file
> /projects/abaqus/cwhyne/mike/InsightToolkit-2.0.0/Testing/Code/Common/itkSymme 
> 
> tricEllipsoidInteriorExteriorSpatialFunctionTest.cxx
> 
> Tried .c .C .c++ .cc .cpp .cxx .m .M .mm .h .h++ .hm .hpp .hxx .in .txx
> 
> CMake Error: can not find file
> /projects/abaqus/cwhyne/mike/InsightToolkit-2.0.0/Testing/Code/BasicFilters/it 
> 
> kBloxBoundaryPointImageToBloxBoundaryProfileImageFilterTest.cxx
> 
> Tried .c .C .c++ .cc .cpp .cxx .m .M .mm .h .h++ .hm .hpp .hxx .in .txx
> 
> CMake Error: can not find file
> /projects/abaqus/cwhyne/mike/InsightToolkit-2.0.0/Testing/Code/BasicFilters/it 
> 
> kBloxBoundaryProfileImageToBloxCoreAtomImageFilterTest.cxx
> 
> Tried .c .C .c++ .cc .cpp .cxx .m .M .mm .h .h++ .hm .hpp .hxx .in .txx
> 
> 
> Skule - Errors
> 
> Building executable 
> /u/0T8/gordonl/InsightBinaries/bin/RGBGradientAnisotropicDiff 
> usionImageFilter...
> 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 );
> 
> 
> 
> Mathieu Malaterre wrote:
> 
>> 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