Have any of you seen this?

-Bill

Date: Thu, 28 Nov 2002 18:14:24 +0100
Subject: I am still unable to build ITK on SGI
From: Jon Harald Kaspersen <Jon.H.Kaspersen@sintef.no>
To: Bill Hoffman <bill.hoffman@kitware.com>
X-Mailer: Apple Mail (2.548)

Hi Bill,

I have been trying "very hard" the last couple of weeks to get ITK to compile on SGI, but without success.  I simply don't know what it could be that is wrong.  I got a CMakeCache.txt file from Bill Lorensen, but I could not find anything that was different from my CMakeCache.txt file.  I have both tried ITK 1.0 and the CVS version. I am running CMake 1.4.6.
This is my usual approach on SGI:

setenv CC "cc -n32"
setenv CXX "CC -n32"
setenv CXXFLAGS -LANG:std
cmake ../Insight
make

Still I get this error :

CC -n32 -LANG:std -LANG:std -ptused -no_prelink -I/home/odin/geirart/download/Insight/Code/Numerics -I/home/odin/geirart/download/Insight/Code/Algorithms -I/home/odin/geirart/download/Insight/Code/BasicFilters -I/home/odin/geirart/download/Insight/Code/Common -I/home/odin/geirart/download/Insight/Code/Numerics -I/home/odin/geirart/download/Insight/Code/IO -I/home/odin/geirart/download/Insight/Code/Numerics/FEM -I/home/odin/geirart/download/Insight/Code/Numerics/Statistics -I/home/odin/geirart/download/ITKbin/Code/Numerics/vxl -I/home/odin/geirart/download/Insight/Code/Numerics/vxl -I/home/odin/geirart/download/ITKbin/Code/Numerics/vxl/vcl -I/home/odin/geirart/download/Insight/Code/Numerics/vxl/vcl -I/home/odin/geirart/download/Insight/Code/SpatialObject -I/home/odin/geirart/download/Insight/Utilities/png -I/home/odin/geirart/download/Insight/Utilities/zlib -I/home/odin/geirart/download/Insight/Utilities/MetaIO -I/home/odin/geirart/download/ITKbin -I/home/odin/geirart/download/Insight/Utilities/stdlib   -D_PTHREADS -c /home/odin/geirart/download/Insight/Code/Numerics/itkRegularStepGradientDescentBaseOptimizer.cxx -o itkRegularStepGradientDescentBaseOptimizer.o
cc-1282 CC: ERROR File = /home/odin/geirart/download/Insight/Code/Numerics/vxl/vnl/vnl_math.h, Line = 146
  More than one instance of overloaded function "std::sqrt" matches the argument
          list.

            Function symbol function "std::sqrt(const std::complex<float> &)"
                      is ambiguous by inheritance.
            Function symbol function "std::sqrt(const std::complex<double> &)"
                      is ambiguous by inheritance.
            Function symbol function
                      "std::sqrt(const std::complex<long double> &)" is
                      ambiguous by inheritance.
            The argument types are:  (double).
  inline float  vnl_math_sqrt(float x) { return float( vcl_sqrt(double(x))); }
                                                       ^

cc-1282 CC: ERROR File = /home/odin/geirart/download/Insight/Code/Numerics/vxl/vnl/vnl_math.h, Line = 147
  More than one instance of overloaded function "std::sqrt" matches the argument
          list.

            Function symbol function "std::sqrt(const std::complex<float> &)"
                      is ambiguous by inheritance.
            Function symbol function "std::sqrt(const std::complex<double> &)"
                      is ambiguous by inheritance.
            Function symbol function
                      "std::sqrt(const std::complex<long double> &)" is
                      ambiguous by inheritance.

Do you have any suggestions on what may be wrong ?

Regards
Jon

========================================================
Jon Harald Kaspersen                    Tel:            +47 73 59 75 89
Ph.D. Mechanical Engineering            Mob:            +47 93 03 65 90
Senior Scientist                                Pager   +47 96 84 29 94
SINTEF Unimed - Ultralyd                Fax:            +47 73 59 78 73
N-7465 Trondheim
NORWAY                  e-mail: Jon.H.Kaspersen@unimed.sintef.no
                                WEB:    
http://www.us.unimed.sintef.no/
========================================================
</blockquote></x-html>