[Insight-users] Re: ITK : compiling on Sun.

Luis Ibanez luis . ibanez at kitware . com
Wed, 05 Nov 2003 17:20:16 -0500


Hi Anna,

It seems that you are using the native
C++ compiler of Sun in order to build ITK.

This will not work. The Sun compiler is not
capable of managing the complexity of the
templated code in ITK.

You should try using the GNU compiler gcc
under Sun.

You will find several Sun machines in the
nightly builds of the ITK dashboard.

For example: caleb.crd, esopus.crd
http://www . itk . org/Testing/Dashboard/20031105-0500-Nightly/Dashboard . html


Please let me know if you have further
questions.


   Thanks

     Luis


------------------------
Anna Omelchenko wrote:
> Hello,
> 
...
>  I get the following error (see below) while compiling
>  "Insight/Utilities/vxl/vnl/Templates/vcl_list+vnl_double_4-.cxx"
>  I wonder if I should explicitly define some macros in order this to work.
>  
>  Thank you,
>  Anna
>   
> Building object file Templates/vcl_list+vnl_double_4-.o...
> CC -o Templates/vcl_list+vnl_double_4-.o -Ditkvnl_EXPORTS   -D_PTHREADS -KPIC  
> -I/mgl/work4/itk/Insight/Utilities/vxl/vnl -I/mgl/work4/itk/Insight-binary 
> -I/mgl/work4/itk/Insight/Code/Algorithms 
> -I/mgl/work4/itk/Insight/Code/BasicFilters -I/mgl/work4/itk/Insight/Code/Common 
> -I/mgl/work4/itk/Insight/Code/Numerics -I/mgl/work4/itk/Insight/Code/IO 
> -I/mgl/work4/itk/Insight/Code/Numerics/FEM 
> -I/mgl/work4/itk/Insight/Code/Numerics/Statistics 
> -I/mgl/work4/itk/Insight/Code/SpatialObject 
> -I/mgl/work4/itk/Insight/Utilities/MetaIO 
> -I/mgl/work4/itk/Insight/Utilities/DICOMParser 
> -I/mgl/work4/itk/Insight-binary/Utilities/DICOMParser 
> -I/mgl/work4/itk/Insight-binary/Utilities/expat 
> -I/mgl/work4/itk/Insight/Utilities/expat 
> -I/mgl/work4/itk/Insight-binary/Utilities 
> -I/mgl/work4/itk/Insight/Utilities/vxl/vcl 
> -I/mgl/work4/itk/Insight/Utilities/vxl/v3p/netlib 
> -I/mgl/work4/itk/Insight/Utilities/vxl 
> -I/mgl/work4/itk/Insight-binary/Utilities/vxl/vcl 
> -I/mgl/work4/itk/Insight-binary/Utilities/vxl 
> -I/mgl/work4/itk/Insight/Utilities/zlib 
> -I/mgl/work4/itk/Insight-binary/Utilities/zlib 
> -I/mgl/work4/itk/Insight/Utilities/png 
> -I/mgl/work4/itk/Insight-binary/Utilities/png 
> -I/mgl/work4/itk/Insight/Utilities/jpeg 
> -I/mgl/work4/itk/Insight-binary/Utilities/jpeg   -DVNL_C_VECTOR_USE_VNL_ALLOC=0  
> -c /mgl/work4/itk/Insight/Utilities/vxl/vnl/Templates/vcl_list+vnl_double_4-.cxx
> 
> "/tsri/SunOS5/SunWorkShop/Forte6/WS6/include/CC/Cstd/./list", line 683: Error: 
> The operation "vnl_double_4 < vnl_double_4" is illegal.
> "/tsri/SunOS5/SunWorkShop/Forte6/WS6/include/CC/Cstd/./list.cc", line 238:     
> Where: While instantiating "std::list<vnl_double_4, 
> std::allocator<vnl_double_4>>::__adjacent_merge(std::list<vnl_double_4, 
> std::allocator<vnl_double_4>>::iterator, std::list<vnl_double_4, 
> std::allocator<vnl_double_4>>::iterator, std::list<vnl_double_4, 
> std::allocator<vnl_double_4>>::iterator)".
> "/tsri/SunOS5/SunWorkShop/Forte6/WS6/include/CC/Cstd/./list.cc", line 238:     
> Where: Instantiated from std::list<vnl_double_4, 
> std::allocator<vnl_double_4>>::sort().
> "/mgl/work4/itk/Insight/Utilities/vxl/vnl/Templates/vcl_list+vnl_double_4-.cxx", 
> line 7:     Where: Instantiated from non-template code.
> 1 Error(s) detected.
> *** Error code 1
> make: Fatal error: Command failed for target 
> `Templates/vcl_list+vnl_double_4-.o'
> 
> 
>