Open
Description
Summary
When trying to build and test with fpm
, an apparent error in parsing results fpm
looking for the wrong file and crashing.
System Configuration
-
Windows 10 on AWS virtual machine t3.XL
- Edition: Windows Server 2016 Datacenter
- Version: 1607
- OS build: 14393.4467
- System type: 64-bit operating System, x64-based processor
-
Compiler
- Intel Fortran:
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.2.0 Build 20210228_000000
- Intel Fortran:
-
fpm
versions 0.3.0 (latest release version as of 07/09/2021)
Error Description and Relevant Code
I create a brand new project with fpm
by typing in the Windows command prompt:
Z:\Documents\GitHub>fpm new BUG
The command prompt output is:
+ mkdir BUG
+ cd BUG
+ mkdir BUG\src
+ mkdir BUG\app
+ mkdir BUG\test
+ git init BUG
Initialized empty Git repository in Z:/Documents/GitHub/BUG/.git/
fpm: Leaving directory 'Z:'
I then run the following commands to build my new fpm
default project and it crashes:
Z:\Documents\GitHub>cd BUG
Z:\Documents\GitHub\BUG>set FLAGS=--flag /standard-semantics --flag /Qcoarray=single --flag /Z7 --flag /fpp
Z:\Documents\GitHub\BUG>fpm build --compiler ifort %FLAGS%
+ mkdir build\dependencies
At line 86 of file .\src\fpm_source_parsing.f90
Fortran runtime error: Cannot open file 'app\main.f90\main.f90': No such file or directory
Error termination. Backtrace:
Could not print backtrace: libbacktrace could not find executable to open
#0 0xffffffff
#1 0xffffffff
#2 0xffffffff
#3 0xffffffff
#4 0xffffffff
#5 0xffffffff
#6 0xffffffff
#7 0xffffffff
#8 0xffffffff
#9 0xffffffff
#10 0xffffffff
#11 0xffffffff
#12 0xffffffff
#13 0xffffffff
#14 0xffffffff
#15 0xffffffff
#16 0xffffffff
Here is the default fpm.toml
file (updated with my contact info):
name = "BUG"
version = "0.1.0"
license = ""
author = "NRC"
maintainer = "[email protected]"
copyright = "2021 NRC"
[build]
auto-executables = true
auto-tests = true
auto-examples = true
[install]
library = false
The correct file path for the file that crashes fpm
is 'app/main.f90'. For some reason, the file parser seems to be appending the file name twice after the path, which results in an incorrect file path.
Please help!