<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body 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="moz-cite-prefix">On 2018/10/18 8:28, Zhifeng Yang wrote:<br>
</div>
<blockquote type="cite" cite="mid:CAF92WDMy42wh7qiqhLzwKRzqZ2C0HoM=znPesmi6+ix8=KfAiw@mail.gmail.com">
<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" moz-do-not-send="true">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="mimeAttachmentHeader"></fieldset> <br>
<pre wrap="">_______________________________________________
discuss mailing list     <a class="moz-txt-link-abbreviated" href="mailto:discuss@mpich.org">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a>
</pre>
</blockquote>
<br>
</body>
</html>