[Mesa-users] Filename expansion causing line truncation compiler warnings/errors
Warrick Ball
W.H.Ball at bham.ac.uk
Fri Mar 1 09:14:05 EST 2019
Hi everyone,
I'm pretty sure this issue has been solved before but I can't seem to find
it in the MESA Users' archive. I've installed MESA on a cluster where the
users are issue folders with fairly long paths. When these are expanded
in some of the MESA macros (usually `mesa_error(__FILE__,__LINE__)`), the
line then exceeds the accepted line length and errors abound. For
example, I've currently got an astero work folder where I get
$ ./mk
gfortran -Wno-uninitialized -fno-range-check -fmax-errors=12 -fprotect-parens -fno-sign-zero -fbacktrace -ggdb -finit-real=snan -fopenmp -fbounds-check -Wuninitialized -Warray-bounds -I/rds/projects/2017/ballwh-stellar-modelling/mesa/10398/include -c -ffree-form -x f95-cpp-input -I/rds/projects/2017/ballwh-stellar-modelling/mesa/10398/star/astero/defaults /rds/projects/2017/ballwh-stellar-modelling/mesa/10398/star/astero/src/astero_data.f
/rds/projects/2017/ballwh-stellar-modelling/mesa/10398/star/astero/src/astero_data.f:851:132:
if (ierr /= 0) call mesa_error(__FILE__,__LINE__)
1
Error: Line truncated at (1) [-Werror=line-truncation]
/rds/projects/2017/ballwh-stellar-modelling/mesa/10398/star/astero/src/astero_data.f:851:43:
if (ierr /= 0) call mesa_error(__FILE__,__LINE__)
1
Error: Missing ')' in statement at or before (1)
...
and then a bunch more of the same. (These issues are a bit strange
because it doesn't *look* like the line is too long but it is once
__FILE__ and __LINE__ are expanded.)
Which is the relevant flag to change in the makefile, and to what?
Unfortunately, just relocating to a shorter path isn't particularly easy.
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
More information about the Mesa-users
mailing list