<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=""><div class="">It’s certainly would be great if I could rely on using gcc 4.8+ for building the distributions for SimpleITK. But my understanding for several situations 4.1 is still essentially required.</div><div class=""><br class=""></div>So you saying you are dropping support for compilers SimpleITK needs for some distributions?<div class=""><br class=""></div><div class="">Your blog post solution for static linking in un-accetable as I don’t want to use a GPL license. Along with static linking not being recommended with PEP 513, and lastly it can cause conflicts when used in a loaded module with an older libc version.</div><div class=""><br class=""></div><div class="">PEP 513 clearly says:</div><div class=""><pre class="literal-block" style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1.3125em; padding: 0.5em; border: 0px; font-family: Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 15px; line-height: 1.875; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word; background-image: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-size: inherit; -webkit-box-shadow: 0px 0px 0px 0px; box-shadow: 0px 0px 0px 0px; color: rgb(68, 68, 68);">GCC <= 4.2.0</pre><pre class="literal-block" style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1.3125em; padding: 0.5em; border: 0px; font-family: Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 15px; line-height: 1.875; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word; background-image: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-size: inherit; -webkit-box-shadow: 0px 0px 0px 0px; box-shadow: 0px 0px 0px 0px; color: rgb(68, 68, 68);"><span style="white-space: normal; font-family: Helvetica;" class="">I’ll have to explore the manylinux1 docker image more…</span></pre><pre class="literal-block" style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1.3125em; padding: 0.5em; border: 0px; line-height: 1.875; vertical-align: baseline; word-wrap: break-word; background-image: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-size: inherit; -webkit-box-shadow: 0px 0px 0px 0px; box-shadow: 0px 0px 0px 0px;"><font face="Helvetica" class=""><span style="white-space: normal;" class="">We know the macro in ITK which needs to be fixed. I don’t understand the resistance…</span></font></pre><pre class="literal-block" style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1.3125em; padding: 0.5em; border: 0px; line-height: 1.875; vertical-align: baseline; word-wrap: break-word; background-image: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-size: inherit; -webkit-box-shadow: 0px 0px 0px 0px; box-shadow: 0px 0px 0px 0px;"><span style="white-space: normal; font-family: Helvetica;" class="">Brad</span></pre><pre class="literal-block" style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1.3125em; padding: 0.5em; border: 0px; line-height: 1.875; vertical-align: baseline; word-wrap: break-word; background-image: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-size: inherit; -webkit-box-shadow: 0px 0px 0px 0px; box-shadow: 0px 0px 0px 0px;"><font face="Helvetica" class=""><span style="white-space: normal;" class=""><br class=""></span></font></pre></div><div class=""><div><blockquote type="cite" class=""><div class="">On Jan 21, 2016, at 2:41 PM, Matt McCormick <<a href="mailto:matt.mccormick@kitware.com" class="">matt.mccormick@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">PEP 513 proposes using GCC 4.8.2 in a CentOS 5 Docker image.  This was<br class="">discussed here:<br class=""><br class="">  <a href="http://kitware.com/blog/home/post/986" class="">http://kitware.com/blog/home/post/986</a><br class=""><br class="">Our planned compiler support does not explicitly mention GCC 4.1, but<br class="">it says GCC 4.2 should be phased out this year:<br class=""><br class="">  <a href="http://www.itk.org/Wiki/ITK_Release_4/Modern_C%2B%2B" class="">http://www.itk.org/Wiki/ITK_Release_4/Modern_C%2B%2B</a><br class=""><br class="">Matt<br class=""><br class="">On Thu, Jan 21, 2016 at 2:27 PM, Bradly Lowekamp <<a href="mailto:blowekamp@mail.nih.gov" class="">blowekamp@mail.nih.gov</a>> wrote:<br class=""><blockquote type="cite" class="">Just to re-iterate the importance of maintain full support for GCC 4.1 with<br class="">the ability is instantiate ITK templates, here is the new Python PEP 513[1],<br class="">which suggests using CentOS with gcc 4.1<br class=""><br class="">Also note my working around for disabling SimpleITK’s explicit template<br class="">instantiation, did not work [2] yet.<br class=""><br class="">Brad<br class=""><br class=""><br class="">[1] <a href="https://www.python.org/dev/peps/pep-0513/" class="">https://www.python.org/dev/peps/pep-0513/</a><br class="">[2] <a href="https://open.cdash.org/index.php?project=SimpleITK" class="">https://open.cdash.org/index.php?project=SimpleITK</a><br class=""><br class="">On Jan 20, 2016, at 10:00 AM, Bradly Lowekamp <<a href="mailto:blowekamp@mail.nih.gov" class="">blowekamp@mail.nih.gov</a>><br class="">wrote:<br class=""><br 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<br class="">with Redhat 5 and Fedora 5 and used for distributions such as Anaconda’s<br class="">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<br class="">OK with GCC 4.1.<br class=""><br class="">As a work around for SimpleITK I have disabled the SimpleITK Explicit<br class="">library for now [1], this is not an optimal solution, and we should try to<br class="">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="">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=""><br class="">Hello,<br class=""><br class="">Le 19/01/2016 21:19, Bradley Lowekamp a écrit :<br class=""><br 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=""><br class="">[...]<br class=""><br class=""><br class="">I’ll look into alternatives...<br class=""><br class=""><br class="">Can you isolate the error on a simple test case that reproduce the issue?<br class=""><br class=""><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=""><br class=""><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=""><br class=""><br class=""><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=""><br class=""></blockquote></div></div></blockquote></div><br class=""></div></body></html>