lanl / LaGriT

Los Alamos Grid Toolbox (LaGriT) is a library of user callable tools that provide mesh generation, mesh optimization and dynamic mesh maintenance in two and three dimensions.
https://lanl.github.io/LaGriT/
Other
116 stars 48 forks source link

Issue with flag `-ffpe-summary` on some compiler versions #162

Open daniellivingston opened 5 years ago

daniellivingston commented 5 years ago

gfortran4.8 in TravisCI under Linux is failing when the flag -ffpe-summary is present. It passes under macOS.

Others have experienced this as well.

Consequently, I’m removing it from the Makefile until a cross-compiler version/platform solution is found.

Side-effects: some LaGriT subroutines will raise IEEE warnings such as INTEGER_UNDERFLOW.

travis_time:start:07779713
$ make release CC=$CC FC=$FC CXX=$CXX
/usr/bin/gfortran -fcray-pointer -fdefault-integer-8 -m64 -Dlinx64 -O -ffpe-summary=none -c -o src/lagrit_main.o src/lagrit_main.f
gfortran: error: unrecognized command line option ‘-ffpe-summary=none’
make: *** [src/lagrit_main.o] Error 1
travis_time:end:07779713:start=1555406542364449709,finish=1555406542375299334,duration=10849625
The command "make release CC=$CC FC=$FC CXX=$CXX" exited with 2.

travis_time:start:28d3e452
$ make static  CC=$CC FC=$FC CXX=$CXX
/usr/bin/gfortran -fcray-pointer -fdefault-integer-8 -m64 -Dlinx64 -O -ffpe-summary=none -static -c -o src/lagrit_main.o src/lagrit_main.f
gfortran: error: unrecognized command line option ‘-ffpe-summary=none’
make: *** [src/lagrit_main.o] Error 1
travis_time:end:28d3e452:start=1555406542380378405,finish=1555406542391247097,duration=10868692
The command "make static  CC=$CC FC=$FC CXX=$CXX" exited with 2.