[Mesa-users] Problems at ./mk stage

Warrick Ball W.H.Ball at bham.ac.uk
Tue Jan 25 21:37:55 UTC 2022


Hi Emma,

I think the compiler error is basically saying exactly what's happened.  On line 511 of your `run_star_extras.f` there's a call to a subroutine called `output_star_model`.  As indicated in the error message, this isn't defined anywhere.  I'm not sure which specific `run_star_extras.f` you got from the Renzo+ page but the `inlist_to_cc.tar.gz` archive has a `run_star_extras.f` that includes a matching subroutine:

     subroutine output_to_file(filename, id, ierr)
        use utils_lib, only:alloc_iounit, free_iounit
        use write_model
        character (len=*) :: filename
        integer, intent(in) :: id
        integer, intent(out) :: ierr

        integer :: iounit, k
        type (star_info), pointer :: s
        character(len=256) :: iomsg

        include 'formats'

        call get_star_ptr(id, s, ierr)
        if (ierr /= 0) return

        iounit = alloc_iounit(ierr); if (ierr /= 0) return
        open(iounit, file=trim(filename), action='write', &
           status='replace', iostat=ierr, iomsg=iomsg, form='unformatted')
        if (ierr == 0) then
           s% most_recent_photo_name = trim(filename)
           ! call output_star_model(s, iounit)
           close(iounit)
        else
           write(*,*) trim(iomsg)
        endif
        call free_iounit(iounit)

     end subroutine output_to_file

Try adding this to you `run_star_extras.f`.  I can't guarantee that there isn't anything else you'll need (or that there's a different `output_to_file` in another file on the Renzo+ page) but hopefully you can see how the compiler errors can help you find other parts you need.

Cheers,
Warrick


___________

Warrick Ball
Postdoc, School of Physics and Astronomy
University of Birmingham, Edgbaston, Birmingham B15 2TT
W.H.Ball at bham.ac.uk
+44 (0)121 414 4552

On Tue, 25 Jan 2022, Emma Beasor wrote:

> Hi Warrick
> I've attached the run_stars_extra, it actually just comes from the Renzo+ inlists (https://stellarcollapse.org/Renzo2017.html) and I haven't started changing anything yet. I can't spot a typo but I'll keep digging.. I'm running on MacOS Mojave. 
> 
> Cheers
> Emma
> 
> On Tue, Jan 25, 2022 at 1:28 PM Warrick Ball <W.H.Ball at bham.ac.uk> wrote:
>       Hi Emma,
>
>       Could you attach your `run_star_extras.f`?  And hat sort of system is this (Mac/Linux, OS version)?  It looks like you're trying to call a procedure you haven't defined, so check for a typo in the procedure name.  Also, try running
>       `./clean` before `./mk` in your work folder (if you haven't already).
>
>       Cheers,
>       Warrick
>
>       ___________
>
>       Warrick Ball
>       Postdoc, School of Physics and Astronomy
>       University of Birmingham, Edgbaston, Birmingham B15 2TT
>       W.H.Ball at bham.ac.uk
>       +44 (0)121 414 4552
>
>       On Tue, 25 Jan 2022, mesa-users at lists.mesastar.org wrote:
>
>       > Hi everyone 
>       > I'm trying to run models using MESA v7624 which has been installed using the correct SDK with no issues. However, when I try to compile my model with ./mk I get the following error:
>       >
>       > Undefined symbols for architecture x86_64:
>       >
>       >   "_output_star_model_", referenced from:
>       >
>       >       _output_to_file.10484 in run_star_extras.o
>       >
>       > ld: symbol(s) not found for architecture x86_64
>       >
>       > collect2: error: ld returned 1 exit status
>       >
>       > make: *** [star] Error 1
>       >
>       >
>       > FAILED
>       >
>       >
>       > I'm a bit stumped about what this means (but I'm assuming it's something fortran-y?), so any suggestions would be super helpful!
>       >
>       >
>       > Cheers
>       >
>       > Emma 
>       >
>       >
>       >
> 
> 
>


More information about the Mesa-users mailing list