Open certik opened 10 months ago
The version 39fdc09c9f366c82652c94c790a6c7fb7a2f15bb works.
Using git bisect
:
3f98e657dc8cdf95da20be5a40d81ac4a6e99b33 is the first bad commit
commit 3f98e657dc8cdf95da20be5a40d81ac4a6e99b33
Author: Federico Perini <...>
Date: Thu Sep 14 21:58:28 2023 +0200
add `-Ofast` optimization flags for intel compiler (release profile)
src/fpm_compiler.F90 | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Here is the commit: https://github.com/fortran-lang/fpm/commit/3f98e657dc8cdf95da20be5a40d81ac4a6e99b33, it doesn't seem to change things for gfortran, but it causes the generated fpm
binary to segfault. Any ideas what can be causing this?
CC @perazz .
Works on M1, my side, both fpm install
and install.sh
, gfortran (brew) 13.2.0
. That commit did not add anything meaningful that could break the code as far as I can tell. Can I ask you to try install.sh
in debug mode? Just replace the flags in install.sh
with
if [ -z ${FFLAGS+x} ]; then
FFLAGS="-g -fbacktrace -Og -fcheck=all"
fi
and maybe later with -O2
, let's see if there is any optimization issues. (I actually see that fpm is compiled with -O3
right now, maybe it's too much of an optimization for a package manager? gcc -O3
is notoriously buggy). I'll note a couple of things here so we can act:
-O2
when building fpm?gfortran-10
, maybe it's time to update / add more versions
I used the latest version (80869addccf20841d316149d7996fd59d53be8bb), and both
fpm install
and./install.sh
creates an fpm binary that segfaults. I am using:This used to work previously, since I had a working version.
Here is the full log: