andreww / fox

A Fortran XML library
https://andreww.github.io/fox/
Other
59 stars 50 forks source link

Add -fno-backtrace for gfortran 4.8.0 and above #30

Open andreww opened 11 years ago

andreww commented 11 years ago

Report of errors from make check with gfortran 4.8.0... Part of my reply to Francisco: I think the errors you see when doing "make check" with gfortran 4.8.0 are because new gfortrans will build executables such that they dump a backtrace if they abort (this had to be enabled with a command line switch for earlier versions). FoX will trigger an abort by default in response to things like trying to write a malformed XML document and this is tested in the test suite. The presence of a backtrace is confusing the test harness. You can work around this by adding -fno-backtrace to the FFLAGS line in arch.make after running configure and before running make or make check. We should probably make the configure script test for the presence of a backtrace in this case and turn it off (by adding the flag). That's a non-trivial little project in itself though.

andreww commented 6 years ago

Fix (for travisCI) via d2ad4417480ed3ef15fe5d520fca455d5a0e901f

Need to add a note to the documentation about this too.

andreww commented 3 years ago

There is also the GFORTRAN_ERROR_BACKTRACE. environment variable. Probably a better fix the the CI.