<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div dir="ltr">Hi Min,<div><br></div><div>Thank you very much for your help. Now I installed MPICH successfully.</div><div><br></div><div>However, when I use it for another weather model. It has the following error.</div><div><br></div><div><div>time mpif90    -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -fopenmp   -o test_io_idx test_io_idx.f -L. -lwrfio_int</div><div><br></div><div>real    0m0.234s</div><div>user    0m0.076s</div><div>sys     0m0.042s</div><div>if [ -f ../../frame/pack_utils.o -a -f ../../frame/clog.o ] ; then \</div><div>          time mpif90    -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -fopenmp   -I../ioapi_share -o diffwrf diffwrf.f \</div><div>                ../../frame/pack_utils.o ../../frame/module_internal_header_util.o ../../frame/module_driver_constants.o ../../frame/module_machine.o ../../frame/module_wrf_error.o ../../frame/wrf_debug.o  libwrfio_int.a ; \</div><div>        fi</div><div>/umbc/xfs1/zzbatmos/users/vy57456/application/gfortran/mpich-3.2.1/lib/libmpi.so: undefined reference to `_intel_fast_memset'</div><div>/umbc/xfs1/zzbatmos/users/vy57456/application/gfortran/mpich-3.2.1/lib/libmpi.so: undefined reference to `_intel_fast_memcpy'</div><div>/umbc/xfs1/zzbatmos/users/vy57456/application/gfortran/mpich-3.2.1/lib/libmpi.so: undefined reference to `__intel_sse2_strlen'</div><div>/umbc/xfs1/zzbatmos/users/vy57456/application/gfortran/mpich-3.2.1/lib/libmpi.so: undefined reference to `__intel_sse2_strncmp'</div><div>collect2: error: ld returned 1 exit status</div><div>0.03user 0.06system 0:00.31elapsed 31%CPU (0avgtext+0avgdata 9716maxresident)k</div><div>144inputs+48outputs (0major+10999minor)pagefaults 0swaps</div><div>make[3]: [test_io_idx] Error 1 (ignored)</div><div>make[3]: Leaving directory `/umbc/xfs1/zzbatmos/users/vy57456/model/gfortran/wrfchem4_0_c/WRF/external/io_int'</div></div><div><br></div><div>It seems that I used ifort to compile MPICH. But I used gfortran. Any help?</div><div><br></div><div>Zhifeng</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 18, 2018 at 10:19 AM Si, Min <<a href="mailto:msi@anl.gov">msi@anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div text="#000000" bgcolor="#FFFFFF">
Hi Zhifeng,<br>
<br>
It looks like the Intel c++ compiler icpc is used for linking. Maybe you did not specify `CXX=g++` at configure time.<br>
<br>
Please try this (make sure all compilers are with the same version)<br>
./configure <other config options> CC=gcc CXX=g++ FC=gfortran F77=gfortran<br>
<br>
If you still see the installation error, please send us the config.log at your build directory together with the error message.<br>
<br>
Min<br>
<div class="m_1278357343293943118moz-cite-prefix">On 2018/10/18 8:28, Zhifeng Yang wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div>Hi </div>
<div><br>
</div>
<div>I tried to install mpich using gcc. However, while make, I got the following error message.</div>
<div><br>
</div>
<div>libtool: link: icpc -shared  src/binding/cxx/.libs/initcxx.o   -Wl,-rpath,/home/vy57456/zzbatmos_user/application/gfortran/source_code/mpich-3.2.1/lib/.libs -Wl,-rpath,/cm/shared/apps/gcc/4.8.4/lib/../lib -Wl,-rpath,/home/vy57456/zzbatmos_user/application/gfortran/mpich-3.2.1/lib
 -Wl,-rpath,/cm/shared/apps/gcc/4.8.4/lib/../lib lib/.libs/libmpi.so -lpthread -L/cm/shared/apps/intel/composer_xe/2015.5.223/ipp/../compiler/lib/intel64 -L/cm/shared/apps/intel/composer_xe/2015.5.223/ipp/lib/intel64 -L/cm/shared/apps/intel/composer_xe/2015.5.223/compiler/lib/intel64
 -L/cm/shared/apps/intel/composer_xe/2015.5.223/mkl/lib/intel64 -L/cm/shared/apps/intel/composer_xe/2015.5.223/tbb/lib/intel64/gcc4.4 -L/cm/shared/apps/slurm/14.11.11/lib64/slurm -L/cm/shared/apps/slurm/14.11.11/lib64 -L/usr/cluster/contrib/hdf5/install-1.8.16/lib
 -L/cm/shared/apps/acml/current/ifort64/lib -L/cm/shared/apps/slurm/14.11.11/lib64/../lib64 -L/cm/shared/apps/slurm/14.11.11/lib64/../lib64/ -L/cm/shared/apps/gcc/4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/ -L/cm/shared/apps/gcc/4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../lib64
 -L/cm/shared/apps/gcc/4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../../lib64/ -L/lib/../lib64 -L/lib/../lib64/ -L/usr/lib/../lib64 -L/usr/lib/../lib64/ -L/cm/shared/apps/intel/composer_xe/2015.5.223/ipp/../compiler/lib/intel64/ -L/cm/shared/apps/intel/composer_xe/2015.5.223/ipp/lib/intel64/
 -L/cm/shared/apps/intel/composer_xe/2015.5.223/compiler/lib/intel64/ -L/cm/shared/apps/intel/composer_xe/2015.5.223/mkl/lib/intel64/ -L/cm/shared/apps/intel/composer_xe/2015.5.223/tbb/lib/intel64/gcc4.4/ -L/cm/shared/apps/slurm/14.11.11/lib64/slurm/ -L/cm/shared/apps/slurm/14.11.11/lib64/
 -L/usr/cluster/contrib/hdf5/install-1.8.16/lib/ -L/cm/shared/apps/acml/current/ifort64/lib/ -L/cm/shared/apps/gcc/4.8.4/lib/gcc/x86_64-unknown-linux-gnu/4.8.4/../../../ -L/lib64 -L/lib/ -L/usr/lib64 -L/usr/lib -limf -lirng -lm -lipgo -ldecimal -lcilkrts /cm/shared/apps/gcc/4.8.4/lib/../lib/libstdc++.so
 -lintlc -lsvml -lgcc -lgcc_s -lirc_s -ldl -lc  -O2   -Wl,-soname -Wl,libmpicxx.so.12 -o lib/.libs/libmpicxx.so.12.1.1</div>
<div>/cm/shared/apps/gcc/4.8.4/lib/../lib/libstdc++.so: could not read symbols: File in wrong format</div>
<div>make[2]: *** [lib/<a href="http://libmpicxx.la" target="_blank">libmpicxx.la</a>] Error 1</div>
<div>make[2]: Leaving directory `/umbc/xfs1/zzbatmos/users/vy57456/application/gfortran/source_code/mpich-3.2.1'</div>
<div>make[1]: *** [all-recursive] Error 1</div>
<div>make[1]: Leaving directory `/umbc/xfs1/zzbatmos/users/vy57456/application/gfortran/source_code/mpich-3.2.1'</div>
<div>make: *** [all] Error 2</div>
<div><br>
</div>
<div><br>
</div>
<div>Do you have any experience on this error? Thank you</div>
<div><br>
</div>
<div>Zhifeng</div>
</div>
</div>
<br>
<fieldset class="m_1278357343293943118mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
discuss mailing list     <a class="m_1278357343293943118moz-txt-link-abbreviated" href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a class="m_1278357343293943118moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a>
</pre>
</blockquote>
<br>
</div>

_______________________________________________<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/mailman/listinfo/discuss</a><br>
</blockquote></div>