[Mesa-users] ./mk suddenly failing

Jeremy Sakstein sakstein at sas.upenn.edu
Wed Oct 16 12:29:41 EDT 2019


Hi Everyone,

So today I tried to compile an example in the test_suite and got the
following error:

gfortran -Wno-uninitialized -fno-range-check -fmax-errors=7  -fprotect-parens
-fno-sign-zero -fbacktrace -ggdb -finit-real=snan -fopenmp -fbounds-check
-Wuninitialized -Warray-bounds -ggdb -ffree-form -x f95-cpp-input
-I../../../../include -I/Applications/mesasdk/include -c
../src/run_star_extras.f

gfortran -Wno-uninitialized -fno-range-check -fmax-errors=7  -fprotect-parens
-fno-sign-zero -fbacktrace -ggdb -finit-real=snan -fopenmp -fbounds-check
-Wuninitialized -Warray-bounds -ggdb -ffree-form -x f95-cpp-input
-I../../../../include -I/Applications/mesasdk/include -c
../../../../star/job/run_star.f

gfortran -Wno-uninitialized -fno-range-check -fmax-errors=7  -fprotect-parens
-fno-sign-zero -fbacktrace -ggdb -finit-real=snan -fopenmp -fbounds-check
-Wuninitialized -Warray-bounds -ggdb -ffree-form -x f95-cpp-input
-I../../../../include -I/Applications/mesasdk/include -c ../src/run.f

gfortran -fopenmp -o ../star run_star_extras.o run_star.o  run.o
-L../../../../lib
-lstar -lgyre -lionization -latm -lcolors -lnet -leos -lkap -lrates -lneu
-lchem -linterp_2d -linterp_1d -lnum -lmtx -lconst -lutils -lf2crlibm
-lcrlibm  `mesasdk_lapack_link` `mesasdk_blas_link`
`mesasdk_hdf5_link`  `mesasdk_pgplot_link`
-lz

ld: library not found for -lz

collect2: error: ld returned 1 exit status

make: *** [star] Error 1


I checked the SDK website and it suggested xcode and xquartz may not be
installed so I reinstalled both but this is still not working. I also
googled a bit and tried to set the LD library path and library path to
/user/local/lib but this still doesn't work.

Is anyone able to help me with this?

Cheers,

Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20191016/6b99bf0f/attachment.html>


More information about the Mesa-users mailing list