Skip to content

PyPI version of fpm crashes with MPI dependency #1207

@aradi

Description

@aradi

Description

Install fpm 12.0 via pip:

pip install fpm

Create a project with fpm:

fpm new hello

Add MPI-dependency by using the default fpm.toml with the necessary minimal modifications:

# fpm.toml file
name = "hello"
version = "0.1.0"
license = "license"
author = "Bálint Aradi"
maintainer = "aradi@uni-bremen.de"
copyright = "Copyright 2025, Bálint Aradi"
[build]
auto-executables = true
auto-tests = true
auto-examples = true
module-naming = false
[install]
library = false
test = false
[fortran]
implicit-typing = true
implicit-external = true
source-form = "free"
[dependencies]
mpi = "*"

Try to trigger build with subsequent run:

fpm run

I received segfault on Linux/x86_64 on Fedora current as well as on the Ubuntu LTS 24.04 (on the GitHub CI):

❯ fpm run     
 + which mpiexec

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Could not print backtrace: unrecognized DWARF version in .debug_info at 6
#0  0x7fe63fa1ce3a
#1  0x7fe63fa1c013
#2  0x7fe63f4262bf
#3  0x7fe63f5536d9
#4  0x7fe63fc33f5a
#5  0x527cde
#6  0x46df4b
#7  0x473c24
#8  0x5761d2
#9  0x40255e
#10  0x7fe63f40f5b4
#11  0x7fe63f40f667
#12  0x40258e
#13  0xffffffffffffffff

Expected Behaviour

It should run through without segfault 😉

The conda version of fpm seems to be OK

Version of fpm

0.12.0

Platform and Architecture

Linux/x86_64

Additional Information

No response

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