<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>It actually did add lgfortran, but the static version, as the
      CMakeCache.txt file contains:</p>
    <p><tt>//Path to a library.</tt><tt><br>
      </tt><tt>GFORTRAN_STATIC:FILEPATH=/usr/local/easybuild/.local/easybuild/software/GCCcore/5.4.0/lib64/libgfortran.a</tt><br>
    </p>
    I removed that line and added the following:<br>
    <tt><br>
GFORTRAN_LIB:FILEPATH=/usr/local/easybuild/.local/easybuild/software/GCCcore/5.4.0/lib64/libgfortran.so</tt><br>
    <br>
    But I got the same error. Then, I ran cmake setting the <b><tt>ENABLE_BUILD_DYNAMIC</tt></b>
    to <tt><b>ON</b></tt>, and got the following error:<br>
    <tt><br>
      Linking CXX executable gmsh</tt><tt><br>
    </tt><tt>libGmsh.so.3.0.4: error: undefined reference to
      '_gfortran_concat_string'</tt><tt><br>
    </tt><tt>libGmsh.so.3.0.4: error: undefined reference to
      '_gfortran_st_write'</tt><tt><br>
    </tt><tt>libGmsh.so.3.0.4: error: undefined reference to
      '_gfortran_transfer_character_write'</tt><tt><br>
    </tt><tt>libGmsh.so.3.0.4: error: undefined reference to
      '_gfortran_transfer_integer_write'</tt><tt><br>
    </tt><tt>libGmsh.so.3.0.4: error: undefined reference to
      '_gfortran_st_write_done'</tt><tt><br>
    </tt><tt>libGmsh.so.3.0.4: error: undefined reference to
      '_gfortran_stop_string'</tt><br>
    <br>
    Thanks<br>
    <div class="moz-cite-prefix">On 25/09/17 22:38, Christophe Geuzaine
      wrote:<br>
    </div>
    <blockquote
      cite="mid:40319DE4-C9D4-455E-99AC-698ECA6724C4@ulg.ac.be"
      type="cite">
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">On 25 Sep 2017, at 17:12, Juan A. Cordero Varelaq <a class="moz-txt-link-rfc2396E" href="mailto:bioinformatica-ibis@us.es"><bioinformatica-ibis@us.es></a> wrote:

Hi,

I'm getting the following error when building GMSH with make, after having succesfully run cmake (  make -DCMAKE_INSTALL_PREFIX=/home/soft/pkgs -DCMAKE_PREFIX_PATH="$EBROOTATLAS;/home/soft/pkgs/oce-0.18.2;$EBROOTGCC" -DCMAKE_LIBRARY_PATH=$LD_LIBRARY_PATH -DENABLE_3M=ON -DENABLE_GRAPHICS=ON ..):

</pre>
      </blockquote>
      <pre wrap="">
Seems like cmake forgot to add -lgfortran, required by your blas/lapack libraries (atlas). You can add those manually in your CMakeCache file, or specify your blas libs + gfortran lib directly with -DBLAS_LAPACK_LIBRARIES=...


</pre>
      <blockquote type="cite">
        <pre wrap="">Linking CXX executable gmsh
/usr/local/easybuild/.local/easybuild/software/ATLAS/3.10.2-GCC-5.4.0-2.26-LAPACK-3.6.1/lib/liblapack.a(dgesvd.o):dgesvd.f:function dgesvd_: error: undefined reference to '_gfortran_concat_string'
/usr/local/easybuild/.local/easybuild/software/ATLAS/3.10.2-GCC-5.4.0-2.26-LAPACK-3.6.1/lib/liblapack.a(dgesvd.o):dgesvd.f:function dgesvd_: error: undefined reference to '_gfortran_concat_string'
/usr/local/easybuild/.local/easybuild/software/ATLAS/3.10.2-GCC-5.4.0-2.26-LAPACK-3.6.1/lib/liblapack.a(dhseqr.o):dhseqr.f:function dhseqr_: error: undefined reference to '_gfortran_concat_string'
/usr/local/easybuild/.local/easybuild/software/ATLAS/3.10.2-GCC-5.4.0-2.26-LAPACK-3.6.1/lib/liblapack.a(dormbr.o):dormbr.f:function dormbr_: error: undefined reference to '_gfortran_concat_string'
/usr/local/easybuild/.local/easybuild/software/ATLAS/3.10.2-GCC-5.4.0-2.26-LAPACK-3.6.1/lib/libf77blas.a(xerbla.o):xerbla.f:function xerbla_: error: undefined reference to '_gfortran_st_write'
/usr/local/easybuild/.local/easybuild/software/ATLAS/3.10.2-GCC-5.4.0-2.26-LAPACK-3.6.1/lib/libf77blas.a(xerbla.o):xerbla.f:function xerbla_: error: undefined reference to '_gfortran_transfer_character_write'
/usr/local/easybuild/.local/easybuild/software/ATLAS/3.10.2-GCC-5.4.0-2.26-LAPACK-3.6.1/lib/libf77blas.a(xerbla.o):xerbla.f:function xerbla_: error: undefined reference to '_gfortran_transfer_integer_write'
/usr/local/easybuild/.local/easybuild/software/ATLAS/3.10.2-GCC-5.4.0-2.26-LAPACK-3.6.1/lib/libf77blas.a(xerbla.o):xerbla.f:function xerbla_: error: undefined reference to '_gfortran_st_write_done'
/usr/local/easybuild/.local/easybuild/software/ATLAS/3.10.2-GCC-5.4.0-2.26-LAPACK-3.6.1/lib/libf77blas.a(xerbla.o):xerbla.f:function xerbla_: error: undefined reference to '_gfortran_stop_string'

I would appreciate any hint on solving this issue.

Thanks in advance
_______________________________________________
gmsh mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gmsh@onelab.info">gmsh@onelab.info</a>
<a class="moz-txt-link-freetext" href="http://onelab.info/mailman/listinfo/gmsh">http://onelab.info/mailman/listinfo/gmsh</a>
</pre>
      </blockquote>
      <pre wrap="">
</pre>
    </blockquote>
    <br>
  </body>
</html>