<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Microsoft already did the same!</div><div class="gmail_default"><font face="verdana, sans-serif"><a href="https://developercommunity.visualstudio.com/comments/6266/view.html">https://developercommunity.visualstudio.com/comments/6266/view.html</a></font><br></div><div class="gmail_default"><br></div><div class="gmail_default">ITK is an excellent stress test case for compilers because of big code size and omnipresent templates :)</div><div class="gmail_default"><br></div><div class="gmail_default">Regards,</div><div class="gmail_default">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 7, 2017 at 1:49 PM, Lefman, Jonathan <span dir="ltr"><<a href="mailto:jonathan.lefman@intel.com" target="_blank">jonathan.lefman@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There is a confirmed bug in the latest release of the Intel Compiler. Any code which compiles in gcc should compile under icc. There is a workaround listed in the last comment here: <a href="https://software.intel.com/en-us/comment/1902247" rel="noreferrer" target="_blank">https://software.intel.com/en-<wbr>us/comment/1902247</a>. I will notify once a fix has been released. I will try to find out if we can include ITK in regular build tests for ICC development.<br>
<span class=""><br>
-Jon<br>
<br>
-----Original Message-----<br>
From: Matt McCormick [mailto:<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@<wbr>kitware.com</a>]<br>
</span><div><div class="h5">Sent: Thursday, April 6, 2017 3:40 PM<br>
To: Lefman, Jonathan <<a href="mailto:jonathan.lefman@intel.com">jonathan.lefman@intel.com</a>><br>
Cc: <a href="mailto:insight-developers@itk.org">insight-developers@itk.org</a><br>
Subject: Re: Build errors using a different C and CXX compiler<br>
<br>
Excellent, thanks, Jon!<br>
<br>
On Thu, Apr 6, 2017 at 3:35 PM, Lefman, Jonathan <<a href="mailto:jonathan.lefman@intel.com">jonathan.lefman@intel.com</a>> wrote:<br>
> Matt,<br>
><br>
> I just met with a technical lead for the Intel compiler front-end group to review this issue. I may have uncovered a bug in the front-end logic. They are investigating to dig into the reason for this anomaly. When I receive their analysis, I will report back what the next steps are.<br>
><br>
> -Jon<br>
><br>
> -----Original Message-----<br>
> From: Matt McCormick [mailto:<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@<wbr>kitware.com</a>]<br>
> Sent: Wednesday, April 5, 2017 5:17 PM<br>
> To: Lefman, Jonathan <<a href="mailto:jonathan.lefman@intel.com">jonathan.lefman@intel.com</a>><br>
> Cc: <a href="mailto:insight-developers@itk.org">insight-developers@itk.org</a><br>
> Subject: Re: Build errors using a different C and CXX compiler<br>
><br>
> Hi Jon,<br>
><br>
> It does not look like we have working builds of ICC on the dashboard [1]. As they say, if it not tested, it is broken. There are two x86_64 ICC builds, but they either have a build system issue, or ITK needs to be updated to use this compiler. What version of the compiler is it?<br>
><br>
> Thanks,<br>
> Matt<br>
><br>
> [1] <a href="https://open.cdash.org/index.php?project=Insight" rel="noreferrer" target="_blank">https://open.cdash.org/index.<wbr>php?project=Insight</a><br>
><br>
> On Wed, Apr 5, 2017 at 4:57 PM, Lefman, Jonathan <<a href="mailto:jonathan.lefman@intel.com">jonathan.lefman@intel.com</a>> wrote:<br>
>> Hi all,<br>
>><br>
>><br>
>><br>
>> I am attempting to build ITK from source (have tried using v4.11.0<br>
>> and<br>
>> master) using a different CXX compiler. To start, I do not have an<br>
>> issue when I utilize the default compiler (gcc) as much compiler.<br>
>> This works fine; tests are successful.<br>
>><br>
>><br>
>><br>
>> The error I encounter on both Ubuntu and Centos systems is the same.<br>
>> It looks like this on the make output:<br>
>><br>
>> [ 58%] Building CXX object<br>
>> Modules/Core/ImageFunction/<wbr>test/CMakeFiles/<wbr>ITKImageFunctionTestDriver.<br>
>> dir/<wbr>itkRayCastInterpolateImageFunc<wbr>tionTest.cxx.o<br>
>><br>
>> /src/ITK/Modules/Core/<wbr>ImageFunction/include/<wbr>itkRayCastInterpolateImageFunc<wbr>tion.hxx(38):<br>
>> error: member "<unnamed>::RayCastHelper<<wbr>TInputImage,<br>
>> TCoordRep>::<wbr>InputImageDimension [with TInputImage=itk::Image<<wbr>unsigned<br>
>> TCoordRep>char,<br>
>> 3U>, TCoordRep=double]" was referenced but not defined<br>
>><br>
>>     itkStaticConstMacro(<wbr>InputImageDimension, unsigned int,<br>
>><br>
>>     ^<br>
>><br>
>><br>
>><br>
>> compilation aborted for<br>
>> /src/ITK/Modules/Core/<wbr>ImageFunction/test/<wbr>itkRayCastInterpolateImageFu<br>
>> n<br>
>> ctionTest.cxx<br>
>> (code 2)<br>
>><br>
>> make[2]: ***<br>
>> [Modules/Core/ImageFunction/<wbr>test/CMakeFiles/<wbr>ITKImageFunctionTestDrive<br>
</div></div>>> r .dir/<wbr>itkRayCastInterpolateImageFunc<wbr>tionTest.cxx.o]<br>
<div><div class="h5">>> Error 2<br>
>><br>
>> make[1]: ***<br>
>> [Modules/Core/ImageFunction/<wbr>test/CMakeFiles/<wbr>ITKImageFunctionTestDrive<br>
>> r<br>
>> .dir/all]<br>
>> Error 2<br>
>><br>
>> make: *** [all] Error 2<br>
>><br>
>><br>
>><br>
>> My cmake setup looks like this:<br>
>><br>
>> CC=/intel/bin/icc CXX=/intel/bin/icc cmake<br>
>> -DCMAKE_CXX_COMPILER:FILEPATH=<wbr>$CXX -DCMAKE_C_COMPILER:FILEPATH=$<wbr>CC<br>
>> -DModule_<wbr>PerformanceBenchmarking:BOOL=<wbr>ON ..<br>
>><br>
>><br>
>><br>
>> Example generated CXX_FLAGS are from:<br>
>> ./Modules/Core/ImageFunction/<wbr>test/CMakeFiles/<wbr>ITKImageFunctionTestDriv<br>
>> e<br>
>> r.dir/flags.make<br>
>><br>
>> # compile CXX with /intel/bin/icc<br>
>><br>
>> CXX_FLAGS =   -w2 -wd1268 -wd981 -wd383 -wd1418 -wd1419 -wd2259 -wd1572<br>
>> -wd424 -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch<br>
>> -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -Wno-deprecated<br>
>> -Wno-invalid-offsetof -Woverloaded-virtual  -O3 -DNDEBUG -fPIE<br>
>> -I/src/ITK/Modules/Core/<wbr>ImageAdaptors/include<br>
>> -I/src/ITK/build_icc/Modules/<wbr>ThirdParty/KWIML/src<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>KWIML/src<br>
>> -I/src/ITK/build_icc/Modules/<wbr>ThirdParty/KWSys/src<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>VNL/src/vxl/v3p/netlib<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>VNL/src/vxl/vcl<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>VNL/src/vxl/core<br>
>> -I/src/ITK/build_icc/Modules/<wbr>ThirdParty/VNL/src/vxl/v3p/<wbr>netlib<br>
>> -I/src/ITK/build_icc/Modules/<wbr>ThirdParty/VNL/src/vxl/vcl<br>
>> -I/src/ITK/build_icc/Modules/<wbr>ThirdParty/VNL/src/vxl/core<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>VNLInstantiation/include<br>
>> -I/src/ITK/build_icc/Modules/<wbr>Core/Common<br>
>> -I/src/ITK/Modules/Core/<wbr>Common/include<br>
>> -I/src/ITK/build_icc/Modules/<wbr>ThirdParty/Netlib<br>
>> -I/src/ITK/Modules/Numerics/<wbr>Statistics/include<br>
>> -I/src/ITK/Modules/Filtering/<wbr>ImageFilterBase/include<br>
>> -I/src/ITK/Modules/Core/<wbr>Transform/include<br>
>> -I/src/ITK/Modules/Core/<wbr>ImageFunction/include<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>DoubleConversion/src/double-<wbr>conversion<br>
>> -I/src/ITK/build_icc/Modules/<wbr>ThirdParty/DoubleConversion/<wbr>src/double-c<br>
>> o<br>
>> nversion<br>
>> -I/src/ITK/Modules/IO/BMP/<wbr>include<br>
>> -I/src/ITK/build_icc/Modules/<wbr>ThirdParty/Expat/src/expat<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>Expat/src/expat<br>
>> -I/src/ITK/build_icc/Modules/<wbr>ThirdParty/ZLIB/src<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>ZLIB/src<br>
>> -I/src/ITK/build_icc/Modules/<wbr>ThirdParty/GDCM<br>
>> -I/src/ITK/build_icc/Modules/<wbr>ThirdParty/GDCM/src/gdcm/<wbr>Source/Common<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>GDCM/src/gdcm/Source/<wbr>MediaStorageAndFil<br>
>> e<br>
>> Format<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>GDCM/src/gdcm/Source/<wbr>DataDictionary<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>GDCM/src/gdcm/Source/Common<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>GDCM/src/gdcm/Source/<wbr>InformationObjectD<br>
>> e<br>
>> finition<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>GDCM/src/gdcm/Source/<wbr>MessageExchangeDef<br>
>> i<br>
>> nition<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>GDCM/src/gdcm/Source/<wbr>DataStructureAndEn<br>
</div></div>>> c odingDefinition -I/src/ITK/Modules/IO/GDCM/<wbr>include<br>
<div class="HOEnZb"><div class="h5">>> -I/src/ITK/Modules/IO/GIPL/<wbr>include<br>
>> -I/src/ITK/build_icc/Modules/<wbr>IO/ImageBase<br>
>> -I/src/ITK/Modules/IO/<wbr>ImageBase/include<br>
>> -I/src/ITK/Modules/IO/JPEG/<wbr>include<br>
>> -I/src/ITK/build_icc/Modules/<wbr>ThirdParty/MetaIO/src/MetaIO/<wbr>src<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>MetaIO/src/MetaIO/src<br>
>> -I/src/ITK/Modules/IO/Meta/<wbr>include<br>
>> -I/src/ITK/Modules/IO/NIFTI/<wbr>include<br>
>> -I/src/ITK/Modules/IO/NRRD/<wbr>include -I/src/ITK/Modules/IO/PNG/<wbr>include<br>
>> -I/src/ITK/Modules/IO/TIFF/<wbr>include -I/src/ITK/Modules/IO/VTK/<wbr>include<br>
>> -I/src/ITK/Modules/Core/<wbr>TestKernel/include<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>VNL/src/vxl/core/vnl/algo<br>
>> -I/src/ITK/Modules/ThirdParty/<wbr>VNL/src/vxl/core/vnl<br>
>><br>
>><br>
>><br>
>> Does anyone have a pointer to see where this error comes from? Thank you.<br>
>><br>
>><br>
>><br>
>> -Jon<br>
>><br>
>><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://kitware.com/products/<wbr>protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-<wbr>developers</a><br>
</div></div></blockquote></div><br></div>