[Gmsh] error: undefined reference to '_gfortran_*

Christophe Geuzaine cgeuzaine at ulg.ac.be
Mon Sep 25 22:38:13 CEST 2017


> 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

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Free software: http://gmsh.info | http://getdp.info | http://onelab.info




More information about the gmsh mailing list