<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Just to re-iterate the importance of maintain full support for GCC 4.1 with the ability is instantiate ITK templates, here is the new Python PEP 513[1], which suggests using CentOS with gcc 4.1<div class=""><br class=""></div><div class="">Also note my working around for disabling SimpleITK’s explicit template instantiation, did not work [2] yet.</div><div class=""><br class=""></div><div class="">Brad<br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class="">[1] <a href="https://www.python.org/dev/peps/pep-0513/" class="">https://www.python.org/dev/peps/pep-0513/</a></div><div class="">[2] <a href="https://open.cdash.org/index.php?project=SimpleITK" class="">https://open.cdash.org/index.php?project=SimpleITK</a></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 20, 2016, at 10:00 AM, Bradly Lowekamp <<a href="mailto:blowekamp@mail.nih.gov" class="">blowekamp@mail.nih.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello Luc,<br class=""><br class="">Thanks for looking into this.<br class=""><br class="">This bug is related to the older GCC 4.1 compiler that is found standard with Redhat 5 and Fedora 5 and used for distributions such as Anaconda’s Python. I apologize for the incorrect version before.<br class=""><br class="">Here is some ITK code to reproduce the error:<br class=""><a href="http://review.source.kitware.com/#/c/20674/" class="">http://review.source.kitware.com/#/c/20674/</a><br class=""><br class="">Thank you for exploring a minimal test case. Your code does compile and run OK with GCC 4.1.<br class=""><br class="">As a work around for SimpleITK I have disabled the SimpleITK Explicit library for now [1], this is not an optimal solution, and we should try to get explicit instantiation working again with GCC 4.1<br class=""><br class="">Brad<br class=""><br class=""><br class="">https://github.com/SimpleITK/SimpleITK/compare/next#diff-af3b638bc2a3e6c650974192a53c7291<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jan 20, 2016, at 4:39 AM, Luc Hermitte <luc.hermitte@c-s.fr> wrote:<br class=""><br class="">Le 20/01/2016 09:57, Luc Hermitte a écrit :<br class=""><blockquote type="cite" class="">Hello,<br class=""><br class="">Le 19/01/2016 21:19, Bradley Lowekamp a écrit :<br class=""><blockquote type="cite" class="">Hello,<br class=""><br class="">My release builds for SimpleITK are having significant problems with the<br class="">change done here [1] to the itkStaticConstMacro.<br class=""><br class="">My builds on Redhat 5, with gcc 5.1, are filling my disk with errors<br class="">along the following:<br class="">[...]<br class=""></blockquote>[...]<br class=""></blockquote><br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">I’ll look into alternatives...<br class=""></blockquote><br class="">Can you isolate the error on a simple test case that reproduce the issue?<br class=""></blockquote><br class="">I've tried the file attached on https://ideone.com/SGlJ1i but it seems<br class="">valid with GCC 5.1.<br class=""><br class="">However, in C++11, constexpr is required. And my g++ 4.8.2, and clang++<br class="">as well, tell me:<br class=""><br class="">|| g++ -std=c++03 -Werror -Wall -pedantic extern-templ.cpp -o<br class="">extern-templ<br class="">extern-templ.cpp|19 col 24| error: ISO C++ 1998 forbids the use of<br class="">'extern' on explicit instantiations [-Werror=pedantic]<br class="">|| extern template struct Bar<Foo<int>, Foo<double> >;<br class=""><br class=""><br class="">What differs in SimpleITK source code?<br class=""><br class=""><br class="">--Luc<br class=""><extern-templ.cpp><br class=""></blockquote><br class="">_______________________________________________<br class="">Powered by www.kitware.com<br class=""><br class="">Visit other Kitware open-source projects at<br class="">http://www.kitware.com/opensource/opensource.html<br class=""><br class="">Kitware offers ITK Training Courses, for more information visit:<br class="">http://kitware.com/products/protraining.php<br class=""><br class="">Please keep messages on-topic and check the ITK FAQ at:<br class="">http://www.itk.org/Wiki/ITK_FAQ<br class=""><br class="">Follow this link to subscribe/unsubscribe:<br class="">http://public.kitware.com/mailman/listinfo/insight-developers<br class=""></div></div></blockquote></div><br class=""></div></div></body></html>