<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am attempting to build ITK from source (have tried using v4.11.0 and master) using a different CXX compiler. To start, I do not have an issue when I utilize the default compiler (gcc) as much compiler. This works fine; tests are successful.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The error I encounter on both Ubuntu and Centos systems is the same. It looks like this on the make output:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:Consolas">[ 58%] Building CXX object Modules/Core/ImageFunction/test/CMakeFiles/ITKImageFunctionTestDriver.dir/itkRayCastInterpolateImageFunctionTest.cxx.o<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:Consolas">/src/ITK/Modules/Core/ImageFunction/include/itkRayCastInterpolateImageFunction.hxx(38): error: member "<unnamed>::RayCastHelper<TInputImage, TCoordRep>::InputImageDimension
[with TInputImage=itk::Image<unsigned char, 3U>, TCoordRep=double]" was referenced but not defined<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:Consolas"> itkStaticConstMacro(InputImageDimension, unsigned int,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:Consolas"> ^<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:Consolas">compilation aborted for /src/ITK/Modules/Core/ImageFunction/test/itkRayCastInterpolateImageFunctionTest.cxx (code 2)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:Consolas">make[2]: *** [Modules/Core/ImageFunction/test/CMakeFiles/ITKImageFunctionTestDriver.dir/itkRayCastInterpolateImageFunctionTest.cxx.o] Error 2<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:Consolas">make[1]: *** [Modules/Core/ImageFunction/test/CMakeFiles/ITKImageFunctionTestDriver.dir/all] Error 2<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:Consolas">make: *** [all] Error 2<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My cmake setup looks like this:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:9.0pt;font-family:Consolas">CC=/intel/bin/icc CXX=/intel/bin/icc cmake -DCMAKE_CXX_COMPILER:FILEPATH=$CXX -DCMAKE_C_COMPILER:FILEPATH=$CC -DModule_PerformanceBenchmarking:BOOL=ON ..<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Example generated CXX_FLAGS are from: ./Modules/Core/ImageFunction/test/CMakeFiles/ITKImageFunctionTestDriver.dir/flags.make
<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:Consolas"># compile CXX with /intel/bin/icc<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-size:10.0pt;font-family:Consolas">CXX_FLAGS = -w2 -wd1268 -wd981 -wd383 -wd1418 -wd1419 -wd2259 -wd1572 -wd424 -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wpointer-arith -Wshadow
-Wunused -Wwrite-strings -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -O3 -DNDEBUG -fPIE -I/src/ITK/Modules/Core/ImageAdaptors/include -I/src/ITK/build_icc/Modules/ThirdParty/KWIML/src -I/src/ITK/Modules/ThirdParty/KWIML/src -I/src/ITK/build_icc/Modules/ThirdParty/KWSys/src
-I/src/ITK/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/src/ITK/Modules/ThirdParty/VNL/src/vxl/vcl -I/src/ITK/Modules/ThirdParty/VNL/src/vxl/core -I/src/ITK/build_icc/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I/src/ITK/build_icc/Modules/ThirdParty/VNL/src/vxl/vcl
-I/src/ITK/build_icc/Modules/ThirdParty/VNL/src/vxl/core -I/src/ITK/Modules/ThirdParty/VNLInstantiation/include -I/src/ITK/build_icc/Modules/Core/Common -I/src/ITK/Modules/Core/Common/include -I/src/ITK/build_icc/Modules/ThirdParty/Netlib -I/src/ITK/Modules/Numerics/Statistics/include
-I/src/ITK/Modules/Filtering/ImageFilterBase/include -I/src/ITK/Modules/Core/Transform/include -I/src/ITK/Modules/Core/ImageFunction/include -I/src/ITK/Modules/ThirdParty/DoubleConversion/src/double-conversion -I/src/ITK/build_icc/Modules/ThirdParty/DoubleConversion/src/double-conversion
-I/src/ITK/Modules/IO/BMP/include -I/src/ITK/build_icc/Modules/ThirdParty/Expat/src/expat -I/src/ITK/Modules/ThirdParty/Expat/src/expat -I/src/ITK/build_icc/Modules/ThirdParty/ZLIB/src -I/src/ITK/Modules/ThirdParty/ZLIB/src -I/src/ITK/build_icc/Modules/ThirdParty/GDCM
-I/src/ITK/build_icc/Modules/ThirdParty/GDCM/src/gdcm/Source/Common -I/src/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/MediaStorageAndFileFormat -I/src/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/DataDictionary -I/src/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/Common
-I/src/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/InformationObjectDefinition -I/src/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/MessageExchangeDefinition -I/src/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/DataStructureAndEncodingDefinition -I/src/ITK/Modules/IO/GDCM/include
-I/src/ITK/Modules/IO/GIPL/include -I/src/ITK/build_icc/Modules/IO/ImageBase -I/src/ITK/Modules/IO/ImageBase/include -I/src/ITK/Modules/IO/JPEG/include -I/src/ITK/build_icc/Modules/ThirdParty/MetaIO/src/MetaIO/src -I/src/ITK/Modules/ThirdParty/MetaIO/src/MetaIO/src
-I/src/ITK/Modules/IO/Meta/include -I/src/ITK/Modules/IO/NIFTI/include -I/src/ITK/Modules/IO/NRRD/include -I/src/ITK/Modules/IO/PNG/include -I/src/ITK/Modules/IO/TIFF/include -I/src/ITK/Modules/IO/VTK/include -I/src/ITK/Modules/Core/TestKernel/include -I/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl/algo
-I/src/ITK/Modules/ThirdParty/VNL/src/vxl/core/vnl </span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Does anyone have a pointer to see where this error comes from? Thank you.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Jon<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>