<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">You can also just #define <span style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">HAVE_C11__STATIC_ASSERT 0 in the aforementioned header file to override the bad preprocessor test.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 13, 2018 at 4:36 PM, Jeff Hammond <span dir="ltr"><<a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Why don't you just use a newer ICC? September 28, 2012 was a long time ago...<span class="HOEnZb"><font color="#888888"><div><br></div><div>Jeff</div></font></span></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Jun 13, 2018 at 4:32 PM, Gus Correa <span dir="ltr"><<a href="mailto:gus@ldeo.columbia.edu" target="_blank">gus@ldeo.columbia.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you Jeff and Min!<br>
<br>
Would you know if MPICH 3.2 has the same issue?<br>
I would rather use an older version instead, as long as it builds.<br>
<br>
Many thanks,<br>
Gus Correa<span><br>
<br>
On 06/13/2018 06:34 PM, Min Si wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
I was just creating the issue on MPICH github when Jeff replied.<br>
<br>
Please use this issue to keep track:<br>
<a href="https://github.com/pmodels/mpich/issues/3178" rel="noreferrer" target="_blank">https://github.com/pmodels/mpi<wbr>ch/issues/3178</a><br>
<br>
Min<br>
On 2018/06/13 15:19, Jeff Hammond wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
_Static_assert comes from C11.<br>
<br>
src/include/mpir_assert.h does a direct test for C11 support based upon the GCC version, which is unsafe since ICC (and other non-GCC compilers) define these macros.<br>
<br>
/* GCC 4.6 added support for _Static_assert:<br>
* <a href="http://gcc.gnu.org/gcc-4.6/changes.html" rel="noreferrer" target="_blank">http://gcc.gnu.org/gcc-4.6/cha<wbr>nges.html</a> */<br>
#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) && !defined __cplusplus<br>
#define HAVE_C11__STATIC_ASSERT 1<br>
#endif<br>
<br>
MPICH needs to test for _Static_assert properly using configure. You should file a GitHub issue to track this.<br>
<br>
Jeff<br>
<br></span><div><div class="m_1014655449341899792h5">
On Wed, Jun 13, 2018 at 2:33 PM, Gus Correa <<a href="mailto:gus@ldeo.columbia.edu" target="_blank">gus@ldeo.columbia.edu</a> <mailto:<a href="mailto:gus@ldeo.columbia.edu" target="_blank">gus@ldeo.columbia.edu</a>><wbr>> wrote:<br>
<br>
Hi MPICH experts<br>
<br>
I am trying to build MPICH 3.2.1 with Intel<br>
compilers (icc, ifort).<br>
C++ is disabled.<br>
<br>
The configuration step goes well,<br>
but make fails,<br>
after a lot of stuff is compiled,<br>
with the error below (undefined reference to `_Static_assert').<br>
<br>
FYI, the OS is Linux Fedora Core 26:<br>
<br>
Linux 4.15.17-200.fc26.x86_64 #1 SMP Thu Apr 12 18:28:26 UTC 2018<br>
x86_64 x86_64 GNU/Linux<br>
<br>
The Intel compiler version is 12.1.6:<br>
ifort (IFORT) 12.1.6 20120928<br>
icc (ICC) 12.1.6 20120928<br>
<br>
The Intel compiler environment is set the standard way<br>
recommended by Intel:<br>
<br>
source /path/to/intel/bin/compilervar<wbr>s.sh intel64<br>
<br>
<br>
Any help is appreciated.<br>
Gus Correa<br>
<br>
****** make errror message ******************************<wbr>*******<br>
make[2]: Entering directory<br>
'/home/sw/mpich/inst/3.2.1/mpi<wbr>ch-3.2.1/build_intel-2011.13.3<wbr>67'<br>
CCLD src/env/mpivars<br>
lib/.libs/libmpi.a(lib_libmpi_<wbr>la-ch3_progress.o): In function<br>
`MPIDI_CH3I_Shm_send_progress'<wbr>:<br>
../src/mpid/ch3/channels/nemes<wbr>is/src/ch3_progress.c:(.text+0<wbr>x1ea2): undefined<br>
reference to `_Static_assert'<br>
lib/.libs/libmpi.a(lib_libmpi_<wbr>la-ch3i_eagernoncontig.o): In<br>
function `MPIDI_CH3I_SendNoncontig':<br>
../src/mpid/ch3/channels/nemes<wbr>is/src/ch3i_eagernoncontig.c:(<wbr>.text+0x1d3):<br>
undefined reference to `_Static_assert'<br>
make[2]: *** [Makefile:19701: src/env/mpivars] Error 1<br>
make[2]: Leaving directory<br>
'/home/sw/mpich/inst/3.2.1/mpi<wbr>ch-3.2.1/build_intel-2011.13.3<wbr>67'<br>
make[1]: *** [Makefile:38608: all-recursive] Error 1<br>
make[1]: Leaving directory<br>
'/home/sw/mpich/inst/3.2.1/mpi<wbr>ch-3.2.1/build_intel-2011.13.3<wbr>67'<br>
make: *** [Makefile:10337: all] Error 2<br>
******************************<wbr>******************************<wbr>*******<br>
<br>
______________________________<wbr>_________________<br></div></div>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a> <mailto:<a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>><span><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailma<wbr>n/listinfo/discuss</a><br>
<<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailm<wbr>an/listinfo/discuss</a>><br>
<br>
<br>
<br>
<br>
-- <br>
Jeff Hammond<br>
</span><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a> <mailto:<a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><wbr>><span><br>
<a href="http://jeffhammond.github.io/" rel="noreferrer" target="_blank">http://jeffhammond.github.io/</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
discuss mailing <a href="mailto:listdiscuss@mpich.org" target="_blank">listdiscuss@mpich.org</a><br></span><span>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailma<wbr>n/listinfo/discuss</a><br>
</span></blockquote><span>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailma<wbr>n/listinfo/discuss</a><br>
<br>
</span></blockquote><div class="m_1014655449341899792HOEnZb"><div class="m_1014655449341899792h5">
<br>
______________________________<wbr>_________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailma<wbr>n/listinfo/discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="">-- <br><div class="m_1014655449341899792gmail_signature" data-smartmail="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a></div>
</span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a></div>
</div>