Skip to content

abi: Fix header parser to support multiline function prototypes - #7941

Merged
hzhou merged 1 commit into
pmodels:mainfrom
dalcinl:fix-gen-abi
Aug 26, 2026
Merged

abi: Fix header parser to support multiline function prototypes#7941
hzhou merged 1 commit into
pmodels:mainfrom
dalcinl:fix-gen-abi

Conversation

@dalcinl

@dalcinl dalcinl commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Pull Request Description

The maint/gen_abi.py script had a slightly broken C header parser and code generator. If a function prototype would span multiple lines, the generated code missed the MPICH_API_PUBLIC annotation, thus affecting symbol visibility and, ultimately, the exposed symbols in libmpi_abi.so.

Partially addresses some of the concerns raised in #7938.

Author Checklist

  • Provide Description
    Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
  • Commits Follow Good Practice
    Commits are self-contained and do not do two things at once.
    Commit message is of the form: module: short description
    Commit message explains what's in the commit.
  • Passes All Tests
    Whitespace checker. Warnings test. Additional tests via comments.
  • Contribution Agreement
    For non-Argonne authors, check contribution agreement.
    If necessary, request an explicit comment from your companies PR approval manager.

The `maint/gen_abi.py` script had a slightly broken C header parser and
code generator. If a function prototype would span multiple lines, the
generated code missed the `MPICH_API_PUBLIC` annotation, thus affecting
symbol visibility and, ultimately, the exposed symbols in libmpi_abi.so.
@dalcinl

dalcinl commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator Author

@hzhou Could you please trigger the ABI tests on your side?

@hzhou hzhou added the test-mpi4py Run mpi4py tests via github actions label Aug 26, 2026
@hzhou

hzhou commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

test:mpich/custom
config: mpi-abi

@hzhou hzhou left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dalcinl

dalcinl commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator Author

@dalcinl

dalcinl commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator Author

@hzhou This easy one is ready to go.

@hzhou
hzhou merged commit f3960ec into pmodels:main Aug 26, 2026
60 of 62 checks passed
@dalcinl
dalcinl deleted the fix-gen-abi branch August 26, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-mpi4py Run mpi4py tests via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants