<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
It actually did add lgfortran, but the static version, as the
CMakeCache.txt file contains:<br>
<div class="moz-forward-container"> <tt><br>
//Path to a library.</tt><tt><br>
GFORTRAN_STATIC:FILEPATH=/usr/local/easybuild/.local/easybuild/software/GCCcore/5.4.0/lib64/libgfortran.a</tt><br>
<br>
I removed that line and added the following:<tt><br>
<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>
<br>
<tt>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>
<blockquote cite="mid:28fec0af-668d-74f1-b033-8d9ae6bcfdce@us.es"
type="cite">
<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">
<blockquote type="cite">
<pre wrap="">On 25 Sep 2017, at 17:12, Juan A. Cordero Varelaq <a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:gmsh@onelab.info">gmsh@onelab.info</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://onelab.info/mailman/listinfo/gmsh">http://onelab.info/mailman/listinfo/gmsh</a>
</pre>
</blockquote>
</blockquote>
<br>
</blockquote>
<br>
</div>
</body>
</html>