<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div><div><div><div><div>1) At Ubuntu 14.04, Intel Fortran 2015 xe<br></div>   Download mpich-3.13<br></div><div>   It works well with general purpose <br></div>2) I need compile the fortran code with -static to run on machine without Intel Fortran environment so I use -static option to compile both MPICH and FORTRAN code. I met the following error <br><br>    /mpich/lib/libmpi.a(lib_libmpi_la-tcp_init.o): In function `MPID_nem_tcp_get_business_card':<br>src/mpid/ch3/channels/nemesis/netmod/tcp/tcp_init.c:(.text+0x319): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking<br>/mpich/lib/libmpi.a(ad_iwrite.o): In function `ADIOI_GEN_IwriteContig':<br>adio/common/ad_iwrite.c:(.text+0xb7): undefined reference to `aio_write64'<br>/mpich/lib/libmpi.a(ad_iwrite.o): In function `ADIOI_GEN_aio':<br>adio/common/ad_iwrite.c:(.text+0x2dc): undefined reference to `aio_write64'<br>adio/common/ad_iwrite.c:(.text+0x2e6): undefined reference to `aio_read64'<br>/mpich/lib/libmpi.a(ad_iwrite.o): In function `ADIOI_GEN_aio_poll_fn':<br>adio/common/ad_iwrite.c:(.text+0x4d0): undefined reference to `aio_error64'<br>adio/common/ad_iwrite.c:(.text+0x4f0): undefined reference to `aio_return64'<br>/mpich/lib/libmpi.a(ad_iwrite.o): In function `ADIOI_GEN_aio_wait_fn':<br>adio/common/ad_iwrite.c:(.text+0x65d): undefined reference to `aio_suspend64'<br>adio/common/ad_iwrite.c:(.text+0x6a0): undefined reference to `aio_error64'<br>adio/common/ad_iwrite.c:(.text+0x6b5): undefined reference to `aio_return64'<br><br></div>    I tried to link librt.a and libaio.a, it does not work with the following option:<br>     -L/usr/lib/x86_64-linux-gnu -lrt -laio<br><br></div>    Any comments and suggestion will be welcome.<br><br></div>Shuchi <br><div><div><div><br></div></div></div></div>