<div dir="ltr"><div><div><div>Thanks Satish!<br></div>I am trying to fix the issue following your suggestions.<br><br></div>I will let you know.<br><br></div>Thanks<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Apr 18, 2014 at 12:21 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
detailed logs would have been useful.<br>
<br>
Mostlikely you have multiple version of libgfortran.so - and the wrong<br>
version got linked in.<br>
<br>
Or you have blas [or something else] compiled with a different version<br>
gfortran so its attempting to link with a different libgfortran.so]<br>
<br>
You can look at the link command, and look at all the .so files in the<br>
linkcommand - and do 'ldd libblas.so' etc on all the .so files in the<br>
link command to indentify the differences.<br>
<br>
And after you locate the multiple libgfortran.so files [perhaps with<br>
'locate libgfortran.so'] - you can do the following to indentify the<br>
libgfortran library that you should be using.<br>
<br>
'nm -Ao libgfortran.so |grep _gfortran_transfer_character_write@GFORTRAN_1.4'<br>
<br>
Or use --with-shared-libraries=0 and see if this problem goes away..<br>
<span class="HOEnZb"><font color="#888888"><br>
Satish<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Fri, 18 Apr 2014, Matteo Parsani wrote:<br>
<br>
> Dear PETSc Users and Developers,<br>
> I have compiled successfully PETSc 3.4 with gfortran 4.7.2.<br>
> However, when I compile my code, during the linking phase I get this error:<br>
><br>
> /ump/fldmd/home/pmatteo/research/workspace/codes/ssdc/deps/petsc/lib/libpetsc.so:<br>
> undefined reference to `_gfortran_transfer_character_write@GFORTRAN_1.4'<br>
> /ump/fldmd/home/pmatteo/research/workspace/codes/ssdc/deps/petsc/lib/libpetsc.so:<br>
> undefined reference to `_gfortran_transfer_integer_write@GFORTRAN_1.4'<br>
><br>
><br>
> Any idea?<br>
> Is it related to the gcc compiler options?<br>
><br>
> Thank you,<br>
><br>
><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Matteo<br></div>
</div>