Skip to content

Conversation

@bwbarrett
Copy link
Member

Reorder some of the early configure tests to avoid
accidently calling AC_PROG_CC before the C compiler
section, which will also ensure those tests are run
with the same option flags as the rest of the tests.

To keep this from happening again, cause an Autoconf
error if Autoconf expands AC_PROG_CC before the
call to OPAL_SETUP_CC.

Signed-off-by: Brian Barrett [email protected]

@bwbarrett bwbarrett requested a review from jsquyres September 30, 2021 22:56
@ibm-ompi
Copy link

The IBM CI (GNU/Scale) build failed! Please review the log, linked below.

Gist: https://gist.github.com/3137d930c96fe10b9f151381c36261cf

@jsquyres
Copy link
Member

jsquyres commented Oct 1, 2021

@bwbarrett Something in there ended up zeroing out the wrapper compiler specification:

--> running make all in examples
mpicc -g  hello_c.c  -o hello_c
--------------------------------------------------------------------------
No underlying compiler was specified in the wrapper compiler data file
(e.g., mpicc-wrapper-data.txt)
--------------------------------------------------------------------------

@bwbarrett bwbarrett force-pushed the cleanup/avoid-early-ac-prog-cc-calls branch 3 times, most recently from 9f84187 to b4b0309 Compare October 5, 2021 19:24
Reorder some of the early configure tests to avoid
accidently calling AC_PROG_CC before the C compiler
section, which will also ensure those tests are run
with the same option flags as the rest of the tests.

Reorder the wrapper compiler initialization, as it
depended on these accidental calls to AC_PROG_CC.
To make the late call to the wrapper compiler
code work, save the "bare" CC (before Autoconf
macros add stuff to it) in the env variable
OPAL_CC, similar to the AC_DEFINE of the same
name.

To keep this from happening again, cause an Autoconf
error if Autoconf expands AC_PROG_CC before the
call to OPAL_SETUP_CC, and put in some AC_REQUIRE
statements to better state dependencies.

Signed-off-by: Brian Barrett <[email protected]>
@bwbarrett bwbarrett force-pushed the cleanup/avoid-early-ac-prog-cc-calls branch from b4b0309 to fcbec27 Compare October 5, 2021 23:59
@bwbarrett
Copy link
Member Author

bot:aws:retest (java error)

@rhc54
Copy link
Contributor

rhc54 commented Oct 6, 2021

Do we need any of this in PMIx/PRRTE?

@bwbarrett
Copy link
Member Author

Do we need any of this in PMIx/PRRTE?

It's mostly defensive code. There were a couple bugs in OMPI that don't look like they are in PMIx (based on a quick look). The patch almost certainly won't apply cleanly, so I'm not sure how much I'd worry about it.

@bwbarrett bwbarrett merged commit 855b523 into open-mpi:master Oct 6, 2021
@bwbarrett bwbarrett deleted the cleanup/avoid-early-ac-prog-cc-calls branch October 6, 2021 15:40
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.

4 participants