[Insight-developers] [Fwd: Re: [Insight-users] __FUNCTION__ error during ITK build on IRIX]

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu Jul 28 14:57:58 EDT 2005


This is beyond my expertise. Does anyone knows if ITK support MIPSpro 
compiler ?
I understand the error with va_list and missing include file, but I have 
no idea about the other one:

<...>
  It seems
that CMake was unable to locate itkSymme
tricEllipsoidInteriorExteriorSpatialFunctionTest.cxx,
itkBloxBoundaryPointImageToBloxBoundaryProfileImageFilterTest.cxx and it
kBloxBoundaryProfileImageToBloxCoreAtomImageFilterTest.cxx.
<...>

Comments welcome
Mathieu

-------- Original Message --------

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

-- 
Michael Hardisty
M.A.Sc Student
University of Toronto
Orthopaedic Biomechanics Laboratory
Sunnybrook & Women's College Health Sciences Centre





More information about the Insight-developers mailing list