[Mesa-users] Trouble Installing r-10398 on a Macbook Pro
Sandoval, Chloe
ckeeling at vols.utk.edu
Wed Mar 20 10:26:24 EDT 2019
gfortran -v:
Using built-in specs.
COLLECT_GCC=/Applications/mesasdk/bin/gfortran.exec
COLLECT_LTO_WRAPPER=/Applications/mesasdk/libexec/gcc/x86_64-apple-darwin18.2.0/8.3.0/lto-wrapper
Target: x86_64-apple-darwin18.2.0
Configured with: /Users/townsend/devel/mesasdk-src/gcc/configure CC='gcc
-D_FORTIFY_SOURCE=0' --build=x86_64-apple-darwin18.2.0
--prefix=/Applications/mesasdk --with-gmp=/Applications/mesasdk
--with-mpfr=/Applications/mesasdk --with-mpc=/Applications/mesasdk
--enable-languages=c,c++,fortran --disable-multilib --disable-nls
--disable-libsanitizer
--with-sysroot=/Users/townsend/devel/mesasdk-src/MacOSX10.12.sdk
Thread model: posix
gcc version 8.3.0 (GCC)
which gfortran:
/Applications/mesasdk/bin/gfortran
Just double checking. Once I removed the error flag in the makefile and
recompile I should be good to go, correct?
Thank you all for your help!
-Chloe
On Tue, Mar 19, 2019 at 7:55 PM RICHARD H D TOWNSEND <
townsend at astro.wisc.edu> wrote:
>
>
> > 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20190320/cd1235a5/attachment.html>
More information about the Mesa-users
mailing list