Building OpenMPI 5.0.8 or 5.0.9 with gcc 16

1 view
Skip to first unread message

Patrick Begou

unread,
Feb 6, 2026, 3:50:33 PMFeb 6
to Open MPI users

Hi !

I'm trying to build openMPI 5.0.9 (or 5.0.8) with the latest version of Gnu compiler ( 16, built from the git repository) but it fails.

Is there a way to solve this recursive inlining detected ? 

In function ‘mca_part_persist_start’,
    inlined from ‘mca_part_persist_start’ at ../../../../../ompi/mca/part/persist/part_persist.h:500:23,
    inlined from ‘mca_part_persist_start’ at ../../../../../ompi/mca/part/persist/part_persist.h:500:23,
    inlined from ‘mca_part_persist_start’ at ../../../../../ompi/mca/part/persist/part_persist.h:500:23,
    inlined from ‘mca_part_persist_start’ at ../../../../../ompi/mca/part/persist/part_persist.h:500:23,
    inlined from ‘mca_part_persist_start’ at ../../../../../ompi/mca/part/persist/part_persist.h:500:23:
../../../../../ompi/mca/part/persist/part_persist.h:484:1: error: inlining failed in call to ‘always_inline’ ‘mca_part_persist_start’: recursive inlining

I've tried to unset the inlining directive in part_persist.h but it fails later with a multiply defined function.

I've set some option at config time for CFLAGS and CXXFLAGS:

-DOPAL_DISABLE_INLINE -DOMPI_DISABLE_INLINE --param max-inline-insns-single=2000

as first problem was insufficient max-inline-insns-single value but increasing the value to 2000 fails now with the recursive inlining detected.

Thanks

Patrick

Joseph Schuchart

unread,
Feb 8, 2026, 1:04:45 PMFeb 8
to us...@lists.open-mpi.org
Thanks for the report. I opened
https://github.com/open-mpi/ompi/issues/13721. It's not clear to me
where the recursion occurs but it's probably best to outline that
function anyway.

Thanks
Joseph

On 2/6/26 15:50, 'Patrick Begou' via Open MPI users wrote:
>
> Hi !
>
> I'm trying to build openMPI 5.0.9 (or 5.0.8) with the latest version
> of Gnu compiler ( 16, built from the git repository) but it fails.
>
> Is there a way to solve this recursive inlining detected ?
>
> *In function ‘mca_part_persist_start’,
>     inlined from ‘mca_part_persist_start’ at
> ../../../../../ompi/mca/part/persist/part_persist.h:500:23,
>     inlined from ‘mca_part_persist_start’ at
> ../../../../../ompi/mca/part/persist/part_persist.h:500:23,
>     inlined from ‘mca_part_persist_start’ at
> ../../../../../ompi/mca/part/persist/part_persist.h:500:23,
>     inlined from ‘mca_part_persist_start’ at
> ../../../../../ompi/mca/part/persist/part_persist.h:500:23,
>     inlined from ‘mca_part_persist_start’ at
> ../../../../../ompi/mca/part/persist/part_persist.h:500:23:
> ../../../../../ompi/mca/part/persist/part_persist.h:484:1: error:
> inlining failed in call to ‘always_inline’ ‘mca_part_persist_start’:
> recursive inlining
> *
> I've tried to unset the inlining directive in part_persist.h but it
> fails later with a multiply defined function.
>
> I've set some option at config time for CFLAGS and CXXFLAGS:
>
> *-DOPAL_DISABLE_INLINE -DOMPI_DISABLE_INLINE --param
> max-inline-insns-single=2000*
>
> as first problem was insufficient max-inline-insns-single value but
> increasing the value to 2000 fails now with the recursive inlining
> detected.
>
> Thanks
>
> Patrick
>
> To unsubscribe from this group and stop receiving emails from it, send
> an email to users+un...@lists.open-mpi.org.

Reply all
Reply to author
Forward
0 new messages