8000 Migration of deprecated m4 `TRY_COMPILE` macro by TApplencourt · Pull Request #408 · argonne-lcf/THAPI · GitHub
[go: up one dir, main page]

Skip to content
8000

Migration of deprecated m4 TRY_COMPILE macro - #408

Merged
TApplencourt merged 3 commits into
develfrom
fix_try_compile_deprecation
Sep 18, 2025
Merged

TApplencourt merged 3 commits into
develfrom
fix_try_compile_deprecation

Conversation

@TApplencourt
Copy link
Copy Markdown
Collaborator

Saw the

configure.ac:71: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.ac:71: You should run autoupdate. /tmp/tapplencourt/spack-stage/spack-stage-autoconf-2.72-xrxejj5ycteoh5ki3zjhqlcjsxbr3bes/spack-src/lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... m4/ax_mpi.m4:69: AX_MPI is expanded from... /tmp/tapplencourt/spack-stage/spack-stage-autoconf-2.72-xrxejj5ycteoh5ki3zjhqlcjsxbr3bes/spack-src/lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... configure.ac:71: the top level configure.ac:73: 
warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.ac:73: You should run autoupdate. /tmp/tapplencourt/spack-stage/spack-stage-autoconf-2.72-xrxejj5ycteoh5ki3zjhqlcjsxbr3bes/spack-src/lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... m4/ax_mpi_session.m4:12: AX_MPI_SESSION is expanded from... /tmp/tapplencourt/spack-stage/spack-stage-autoconf-2.72-xrxejj5ycteoh5ki3zjhqlcjsxbr3bes/spack-src/lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... configure.ac:73: the top level /bin/sh ./config.status --recheck

warning one too many time

@TApplencourt TApplencourt changed the title Migration of deprecated m4 TRY_COMPILE macro [Draft] Migration of deprecated m4 TRY_COMPILE macro Sep 17, 2025
@TApplencourt
Copy link
Copy Markdown
Collaborator Author

Look like I screweup something

Comment thread m4/ax_mpi.m4 Resolved
@thilinarmtb
Copy link
Copy Markdown
Contributor

Look like I screweup something

Yes, based on the error messages, seems like the tests are run with MPI sync daemon set to yes/true
but it is not build for some reason.

Comment thread m4/ax_mpi.m4 Resolved
Comment thread m4/ax_mpi.m4 Resolved
@Kerilk
Kerilk commented Sep 17, 2025
Copy link
Copy Markdown
Collaborator

From the doc:

— Macro: AC_TRY_COMPILE (includes, function-body, [action-if-true], [action-if-false])

    Same as:

              AC_COMPILE_IFELSE(
                [AC_LANG_PROGRAM([[includes]],
                   [[function-body]])],
                [action-if-true],
                [action-if-false])

TApplencourt and others added 2 commits September 17, 2025 16:49
Co-authored-by: Brice Videau <bvideau@anl.gov>
@Kerilk
Kerilk commented Sep 17, 2025 •
Copy link
Copy Markdown
Collaborator

Most probably missin the #as well as @thilinarmtb mentioned above, I missed this as well.

@TApplencourt
Copy link
Copy Markdown
Collaborator Author

Sorry, I eddit the wrong mesage. I didn't even knew you can edit other people message...

I was askiing "Do you know what is [[...]] , aka [[ mean in the doc? I guess I can just google :'D "

Thanks a lot guys , let see if that pass! 🤞🏽

@TApplencourt TApplencourt changed the title [Draft] Migration of deprecated m4 TRY_COMPILE macro Migration of deprecated m4 TRY_COMPILE macro Sep 17, 2025
@TApplencourt
Copy link
Copy Markdown
Collaborator Author

Tada, it's passing! Thanks guys!

@Kerilk
Kerilk commented Sep 17, 2025
Copy link
Copy Markdown
Collaborator

This seems helpful: https://stackoverflow.com/a/53621802

@TApplencourt
TApplencourt merged commit 299c784 into devel Sep 18, 2025
@TApplencourt
TApplencourt deleted the fix_try_compile_deprecation branch September 24, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0