[Mesa-users] Error while editing "run_stars_extra"

Ebrahim Hassani ee.haji at gmail.com
Sat Apr 17 07:00:37 UTC 2021


Dear Mesa users

I had edited the run_star_extras.f file in MESA-r12778 to include a new
source of energy that comes from dark matter particles annihilation inside
a star. it worked without any problem in MESA-r12778. But When I decided to
use the code in MESA-r15140 it gave me the bellow error message:

gfortran -fopenmp -o ../star  run_star_extras.o run_star.o  run.o
 -L/home/hassani/mesa-r15140/lib -lstar -lgyre -lionization -latm -lcolors
-lstar_data -lnet -leos -lkap -lrates -lneu -lchem -linterp_2d -linterp_1d
-lnum -lauto_diff -lmtx -lconst -lmath -lutils `mesasdk_crmath_link`
`mesasdk_lapack95_link` `mesasdk_lapack_link` `mesasdk_blas_link`
`mesasdk_hdf5_link`  `mesasdk_pgplot_link` -lz
/usr/bin/ld: run_star.o:(.data+0x0): multiple definition of `__BLNK__';
run_star_extras.o:(.data+0x20): first defined here
collect2: error: ld returned 1 exit status
make: *** [/home/hassani/mesa-r15140/star/work_standard_makefile:23: star]
Error 1

The attached files are the run_stars_extra files that I used in MESA-r12778
and MESA-r15140.

Would you please help me know what might be the reason for the error?
It is worth mentioning that I am using MESA in Linux-ubuntu-20.04.

Best regards
Ebrahim Hassani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20210417/e5d55c4d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: run_star_extras_15140.f90
Type: text/x-fortran
Size: 41439 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20210417/e5d55c4d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: run_star_extras_12778.f
Type: text/x-fortran
Size: 37548 bytes
Desc: not available
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20210417/e5d55c4d/attachment-0001.bin>


More information about the Mesa-users mailing list