[Mesa-users] Trouble Installing r-10398 on a Macbook Pro

RICHARD H D TOWNSEND townsend at astro.wisc.edu
Tue Mar 19 19:55:34 EDT 2019



> On Mar 19, 2019, at 6:41 PM, Josiah Schwab <jwschwab at ucsc.edu> wrote:
> 
> > I got Xcode and the command line tools reinstalled and made it past crlibm and got a new error message.
> > gfortran -Wno-uninitialized -fno-range-check -fmax-errors=12  -fprotect-parens -fno-sign-zero -fbacktrace -ggdb -finit-real=snan -fopenmp  -std=f2008 -Wno-error=tabs -I../public -I../private -I../../include -I/Applications/mesasdk/include -Wunused-value -Werror -W -Wno-compare-reals -Wno-unused-parameter -fimplicit-none   -O2 -c -ffree-form -x f95-cpp-input -I../defaults -I../job -I../other ../private/star_private_def.f90
> > ../private/star_private_def.f90:203:47:
> > 
> > ../private/star_private_def.f90:199:37:
> > 
> >           do i=1,num_termination_codes
> >                                      2          
> > ../private/star_private_def.f90:203:47:
> > 
> >                       trim(termination_code_str(i-1)), i
> >                                                1
> > Error: Array reference at (1) out of bounds (0 < 1) in loop beginning at (2) [-Werror=do-subscript]
> > ../private/star_private_def.f90:296:80:
> > 
> > ../private/star_private_def.f90:293:23:
> > 
> >           do i=1,numTlim
> >                        2                                                         
> > ../private/star_private_def.f90:296:80:
> > 
> >                    write(*,2) 'missing dt_why_str following ' // trim(dt_why_str(i-1)), i
> >                                                                                 1
> > Error: Array reference at (1) out of bounds (0 < 1) in loop beginning at (2) [-Werror=do-subscript]
> > f951: all warnings being treated as errors
> > make: *** [star_private_def.o] Error 1
> > 
> > /Users/chloekeeling/Research/Code/Mesa/mesa/star/make
> > FAILED
> > 
> > 
> > /Users/chloekeeling/Research/Code/Mesa/mesa/star
> > ./build_and_test FAILED
> > 
> 
> Hmm, now it looks as if an older compiler is being used. What's the output from the following two commands:
> 
> gfortran -v
> 
> which gfortran
> 
> Why do you say that Rich?  To me, this looks like a newer compiler, since the do-subscript warnings didn't start showing up until the 8 series.
> 

Agreed, it may indeed be newer.

> Chloe, you can open up your utils/makefile_header, find where -Werror is specified, and just delete that bit.  Those warning are safe to ignore.
> 

This may resolve the problem, but it doesn't address why the problem occurred. I'd like to see if Chloe is indeed using the SDK compiler. So, Chloe, please could you go ahead and send the output from the commands above.

cheers,

Rich

> Josiah




More information about the Mesa-users mailing list