[Gmsh] error: undefined reference to '_gfortran_*

Juan A. Cordero Varelaq bioinformatica-ibis at us.es
Thu Sep 28 11:35:13 CEST 2017


It actually did add lgfortran, but the static version, as the 
CMakeCache.txt file contains:

//Path to a library.
GFORTRAN_STATIC:FILEPATH=/usr/local/easybuild/.local/easybuild/software/GCCcore/5.4.0/lib64/libgfortran.a

I removed that line and added the following:

GFORTRAN_LIB:FILEPATH=/usr/local/easybuild/.local/easybuild/software/GCCcore/5.4.0/lib64/libgfortran.so

But I got the same error. Then, I ran cmake setting the 
*ENABLE_BUILD_DYNAMIC* to *ON*, and got the following error:

Linking CXX executable gmsh
libGmsh.so.3.0.4: error: undefined reference to '_gfortran_concat_string'
libGmsh.so.3.0.4: error: undefined reference to '_gfortran_st_write'
libGmsh.so.3.0.4: error: undefined reference to 
'_gfortran_transfer_character_write'
libGmsh.so.3.0.4: error: undefined reference to 
'_gfortran_transfer_integer_write'
libGmsh.so.3.0.4: error: undefined reference to '_gfortran_st_write_done'
libGmsh.so.3.0.4: error: undefined reference to '_gfortran_stop_string'

Thanks
> On 25/09/17 22:38, Christophe Geuzaine wrote:
>>> On 25 Sep 2017, at 17:12, Juan A. Cordero Varelaq<bioinformatica-ibis at us.es>  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 ..):
>>>
>> 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=...
>>
>>
>>> 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
>>> gmsh at onelab.info
>>> http://onelab.info/mailman/listinfo/gmsh
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20170928/29d344a9/attachment.html>


More information about the gmsh mailing list