Skip to content

Dependency-only cpp preprocessor settings do not work #782

@zoziha

Description

@zoziha

Description

The top-level app project does not setup the cpp preprocessor, and using dependencies that have cpp preprocessor settings will report an error:

At line 118 of file .\src\fpm.f90
Fortran runtime error: Index '1' of dimension 1 of array 'package%preprocess' below lower bound of 1919167860

Error termination. Backtrace:

Could not print backtrace: libbacktrace could not find executable to open
#0  0x5ea3965a
#1  0x5e9c0181
#2  0x5e97f55a
#3  0x76edc6d3
#4  0x76ecd183
#5  0x76ec232f
#6  0x76ec2900
#7  0x76ec13ad
#8  0x76ec14e5
#9  0xd0a3244c
#10  0xd22edf77
#11  0xffffffff
<ERROR> Execution failed for object " fpm.exe "
<ERROR>*cmd_run*:stopping due to failed executions
STOP 1

Expected Behaviour

fpm should run properly and the preprocessing settings for the dependencies will activate the compiler -cpp/-fpp flags.

Version of fpm

latest commit

Platform and Architecture

Windows 11, msys2-ucrt64-gfortran 12.2.0

Additional Information

I will try to submit the patch later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions