<div dir="ltr"><div>(cc: insight-devel)</div><div><br></div><div>We are also seeing this issue, and several SimpleITK dashboards are failing with the same error for the OS X 10.9 (since bumping to ITK 4.9) and 10.10 (since yesterday) dashboards:</div><div><a href="https://open.cdash.org/buildSummary.php?buildid=4188623" target="_blank">https://open.cdash.org/buildSummary.php?buildid=4188623</a><br></div><div><br></div><div>It looks like this is essentially caused by SimpleITK being compiled with `-std=c++11`, whereas ITK (and VXL) are not. So, there is a mismatch between the configured definition of `VCL_CONSTEXPR` and the `<span style="font-size:12.8px">VCL_STATIC_CONST_INIT_*</span><span style="font-size:12.8px">` macros.</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">For reference, VCL_CONSTEXPR was introduced here:</span></div><div><span style="font-size:12.8px"><a href="http://review.source.kitware.com/#/c/20386/">http://review.source.kitware.com/#/c/20386/</a></span><br></div><div><br></div><div>A proposed patch [1] is attached.</div><div><br></div><div>Best,</div><div>Isaiah</div><div><br></div><div>[1] <a href="https://github.com/ihnorton/ITK/commit/0f748d8c86ffb2369c3a343c0db5ca87b067843e">https://github.com/ihnorton/ITK/commit/0f748d8c86ffb2369c3a343c0db5ca87b067843e</a><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 11, 2016 at 11:21 AM, Steve Pieper <span dir="ltr"><<a href="mailto:pieper@isomics.com" target="_blank">pieper@isomics.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="ltr">
<p><span>Hi - </span></p>
<p><span>This morning with Xcode 7.2 on mac 10.11.2 I get the build errors pasted below. This was in a fresh build directory. With SimpleITK turned off the build completes and everything works as expected.</span></p>
<p><span>I found an old issue with similar errors [1] but nothing lately. </span></p>
<p><span>-Steve</span></p>
<p><span>[1] <a href="https://issues.itk.org/jira/browse/ITK-2976" target="_blank">
https://issues.itk.org/jira/browse/ITK-2976</a><br>
</span></p>
<p><span><br>
</span></p>
<p><span><br>
</span></p>
<p><br>
</p>
<p><span>In file included from /Users/pieper/slicer4/latest/Slicer-superbuild/ITKv4/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_c_vector.h:26:</span></p>
<p><span><b>/Users/pieper/slicer4/latest/Slicer-superbuild/ITKv4/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:388:41:
</b></span><span><b>error: </b></span><span><b>declaration of constexpr static data member</b></span></p>
<p><span><b> 'zero' requires an initializer</b></span></p>
<p><span> static VNL_EXPORT VCL_CONSTEXPR float zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0F);</span></p>
<p><span><b> ^</b></span></p>
<p><span><b>/Users/pieper/slicer4/latest/Slicer-superbuild/ITKv4/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:390:41:
</b></span><span><b>error: </b></span><span><b>declaration of constexpr static data member</b></span></p>
<p><span><b> 'one' requires an initializer</b></span></p>
<p><span> static VNL_EXPORT VCL_CONSTEXPR float one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0F);</span></p>
<p><span><b> ^</b></span></p>
<p><span><b>/Users/pieper/slicer4/latest/Slicer-superbuild/ITKv4/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:392:41:
</b></span><span><b>error: </b></span><span><b>declaration of constexpr static data member</b></span></p>
<p><span><b> 'maxval' requires an initializer</b></span></p>
<p><span> static VNL_EXPORT VCL_CONSTEXPR float maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(3.40282346638528860e+38F);</span></p>
<p><span><b> ^</b></span></p>
<p><span><b>/Users/pieper/slicer4/latest/Slicer-superbuild/ITKv4/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:411:42:
</b></span><span><b>error: </b></span><span><b>declaration of constexpr static data member</b></span></p>
<p><span><b> 'zero' requires an initializer</b></span></p>
<p><span> static VNL_EXPORT VCL_CONSTEXPR double zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0);</span></p>
<p><span><b> ^</b></span></p>
<p><span><b>/Users/pieper/slicer4/latest/Slicer-superbuild/ITKv4/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:413:42:
</b></span><span><b>error: </b></span><span><b>declaration of constexpr static data member</b></span></p>
<p><span><b> 'one' requires an initializer</b></span></p>
<p><span> static VNL_EXPORT VCL_CONSTEXPR double one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0);</span></p>
<p><span><b> ^</b></span></p>
<p><span><b>/Users/pieper/slicer4/latest/Slicer-superbuild/ITKv4/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:415:42:
</b></span><span><b>error: </b></span><span><b>declaration of constexpr static data member</b></span></p>
<p><span><b> 'maxval' requires an initializer</b></span></p>
<p><span> static VNL_EXPORT VCL_CONSTEXPR double maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(1.7976931348623157E+308);</span></p>
<p><span><b> ^</b></span></p>
<p><span><b>/Users/pieper/slicer4/latest/Slicer-superbuild/ITKv4/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:434:47:
</b></span><span><b>error: </b></span><span><b>declaration of constexpr static data member</b></span></p>
<p><span><b> 'zero' requires an initializer</b></span></p>
<p><span> static VNL_EXPORT VCL_CONSTEXPR long double zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0);</span></p>
<p><span><b> ^</b></span></p>
<p><span><b>/Users/pieper/slicer4/latest/Slicer-superbuild/ITKv4/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:436:47:
</b></span><span><b>error: </b></span><span><b>declaration of constexpr static data member</b></span></p>
<p><span><b> 'one' requires an initializer</b></span></p>
<p><span> static VNL_EXPORT VCL_CONSTEXPR long double one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0);</span></p>
<p><span><b> ^</b></span></p>
<p><span><b>/Users/pieper/slicer4/latest/Slicer-superbuild/ITKv4/Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_numeric_traits.h:438:47:
</b></span><span><b>error: </b></span><span><b>declaration of constexpr static data member</b></span></p>
<p><span><b> 'maxval' requires an initializer</b></span></p>
<p><span> static VNL_EXPORT VCL_CONSTEXPR long double maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(1.7976931348623157E+308);</span></p>
<p><span><b> ^</b></span></p>
<p><span>9 errors generated.</span></p>
<p><span>make[8]: *** [Code/Explicit/src/CMakeFiles/SimpleITKExplicit.dir/sitkExplicitITKComposeImageFilter.cxx.o] Error 1</span></p>
<p><span>make[7]: *** [Code/Explicit/src/CMakeFiles/SimpleITKExplicit.dir/all] Error 2</span></p>
<p><span>make[6]: *** [all] Error 2</span></p>
<p><span>make[5]: *** [SimpleITK-prefix/src/SimpleITK-stamp/SimpleITK-build] Error 2</span></p>
<p><span>make[4]: *** [CMakeFiles/SimpleITK.dir/all] Error 2</span></p>
<p><span>make[3]: *** [all] Error 2</span></p>
<p><span>make[2]: *** [SimpleITK-prefix/src/SimpleITK-stamp/SimpleITK-build] Error 2</span></p>
<p><span>make[1]: *** [CMakeFiles/SimpleITK.dir/all] Error 2</span></p>
<p><span>make: *** [all] Error 2</span></p>
</div>
</div>
<br>_______________________________________________<br>
slicer-devel mailing list<br>
<a href="mailto:slicer-devel@bwh.harvard.edu">slicer-devel@bwh.harvard.edu</a><br>
<a href="http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel" rel="noreferrer" target="_blank">http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel</a><br>
To unsubscribe: send email to <a href="mailto:slicer-devel-request@bwh.harvard.edu">slicer-devel-request@bwh.harvard.edu</a> with unsubscribe as the subject<br>
<a href="http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ" rel="noreferrer" target="_blank">http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ</a><br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br></blockquote></div><br></div>