fortran-lang / stdlib

Fortran Standard Library
https://stdlib.fortran-lang.org
MIT License
1.1k stars 171 forks source link

Build error with fpm (gfortran) #618

Open omaclaren opened 2 years ago

omaclaren commented 2 years ago

Description

Hi!

I don't really know what I'm doing, but following the stdlib fpm build instructions I get to here:

fpm build --profile release

at which point I get the error message:

It's probably something that someone more up on things than me would be able to fix (see see comment below), but figured might be worth reporting anyway. I tried updating gfortran (not sure if this impacts fpm) from conda-forge but still no joy.

I also get the same error when trying to include stdlib in an fpm project toml file.

Expected Behaviour

I expected the build to work :-)

Version of stdlib

v0.1.0

Platform and Architecture

Ubuntu 20.04.3 (x86_64)

Additional Information

fpm info:

Version: 0.5.0, alpha Program: fpm(1) Description: A Fortran package manager and build system Home Page: https://github.com/fortran-lang/fpm License: MIT OS Type: Linux

running:

gfortran --version gives GNU Fortran (GCC) 9.4.0

omaclaren commented 2 years ago

Update: using --flag -fno-range-check with fpm (as suggested by the error message) works, but I'm not sure if turning off this check is desirable or not.