<br>Hi Mike,<br><br>It would seem that the VXL code is assuming that your compiler is<br>GCC and it trying to compile the Rounding section of code that <br>corresponds to the option:<br><br><br>#elif GCC_USE_FAST_IMPL // Fast gcc asm implementation<br>
<br>inline int vnl_math_rnd_halfinttoeven(float  x)<br>{<br># ifdef VNL_CHECK_FPU_ROUNDING_MODE<br>  assert(fegetround()==FE_TONEAREST);<br># endif<br>  int r;<br>  __asm__ __volatile__ (&quot;fistpl %0&quot; : &quot;=m&quot;(r) : &quot;t&quot;(x) : &quot;st&quot;);<br>
  return r;<br>}<br>inline int vnl_math_rnd_halfinttoeven(double  x)<br>{<br># ifdef VNL_CHECK_FPU_ROUNDING_MODE<br>  assert(fegetround()==FE_TONEAREST);<br># endif<br>  int r;<br>  __asm__ __volatile__ (&quot;fistpl %0&quot; : &quot;=m&quot;(r) : &quot;t&quot;(x) : &quot;st&quot;);<br>
  return r;<br>}<br><br>#elif VC_USE_FAST_IMPL<br><br><br><br>Did you set your CC and CXX environment variables<br>before running CMake ?<br><br><br>Are you sure that they are pointing to the SGI compiler ?<br>and to to GCC ?<br>
<br><br>     Luis<br><br><br>----------------------------------------------------------------<br><div class="gmail_quote">On Sat, Aug 15, 2009 at 3:53 PM, Mike Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am trying to compile ITK 3.14.0 on an IA64 platform (SGI Altix<br>
3500). I get the following error:<br>
<br>
[ 86%] Building CXX object<br>
Code/Numerics/CMakeFiles/ITKNumerics.dir/itkSPSAOptimizer.o<br>
cd /work1/jacksonm/InsightToolkit-3.14.0/Build/Code/Numerics &amp;&amp;<br>
/usr/bin/c++    -ftemplate-depth-50 -Wall -Wno-deprecated -O3 -DNDEBUG<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Build<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Code/Algorithms<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Code/BasicFilters<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Code/Common<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Code/Numerics<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Code/IO<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Code/Numerics/FEM<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Code/Numerics/NeuralNetworks<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Code/SpatialObject<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Utilities/MetaIO<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Utilities/NrrdIO<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Build/Utilities/NrrdIO<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Utilities/DICOMParser<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Build/Utilities/DICOMParser<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Build/Utilities/expat<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Utilities/expat<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Utilities/nifti/niftilib<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Utilities/nifti/znzlib<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Utilities/itkExtHdrs<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Build/Utilities<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Utilities<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Code/Numerics/Statistics<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Utilities/vxl/v3p/netlib<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Utilities/vxl/vcl<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Utilities/vxl/core<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Build/Utilities/vxl/v3p/netlib<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Build/Utilities/vxl/vcl<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Build/Utilities/vxl/core<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Build/Utilities/gdcm<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Utilities/gdcm/src<br>
-I/work1/jacksonm/InsightToolkit-3.14.0/Code/Review   -o<br>
CMakeFiles/ITKNumerics.dir/itkSPSAOptimizer.o -c<br>
/work1/jacksonm/InsightToolkit-3.14.0/Code/Numerics/itkSPSAOptimizer.cxx<br>
/work1/jacksonm/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:<br>
In member function ‘virtual void<br>
itk::SPSAOptimizer::GenerateDelta(unsigned int)’:<br>
/work1/jacksonm/InsightToolkit-3.14.0/Utilities/vxl/core/vnl/vnl_math.h:220:<br>
error: unknown register name ‘st’ in ‘asm’<br>
make[2]: *** [Code/Numerics/CMakeFiles/ITKNumerics.dir/itkSPSAOptimizer.o]<br>
Error 1<br>
make[2]: Leaving directory `/work1/jacksonm/InsightToolkit-3.14.0/Build&#39;<br>
make[1]: *** [Code/Numerics/CMakeFiles/ITKNumerics.dir/all] Error 2<br>
make[1]: Leaving directory `/work1/jacksonm/InsightToolkit-3.14.0/Build&#39;<br>
make: *** [all] Error 2<br>
<br>
Linux XXXX-0 2.6.16.54-0.2.12-default #1 SMP Fri Oct 24 02:16:38 UTC<br>
2008 ia64 ia64 ia64 GNU/Linux<br>
<br>
Here is from the CpuInfo:<br>
<br>
processor  : 0<br>
vendor     : GenuineIntel<br>
arch       : IA-64<br>
family     : Itanium 2<br>
model      : 2<br>
revision   : 1<br>
archrev    : 0<br>
features   : branchlong<br>
cpu number : 0<br>
cpu regs   : 4<br>
cpu MHz    : 1600.000000<br>
itc MHz    : 1600.000000<br>
BogoMIPS   : 2392.06<br>
siblings   : 1<br>
<br>
Thanks<br>
_________________________________________________________<br>
Mike Jackson                  <a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software                    <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer                  Dayton, Ohio<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>