-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-106962: Detect mpicc in configure.ac #106961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
hen compiling Python with the MPI wrapper around the GNU C-compilers: mpicc, the configure script that determines the compiler options sees mpicc as the intel compiler because of the 'icc' in the name, and applies the fp-model strict option to the arguments, which is invalid syntax for GCC, causing multiple compile time errors with recent GCC versions: gcc: error: unrecognized command-line option ‘-fp-model’; did you mean ‘-fipa-modref’? By first filtering out the mpicc compiler case, this error is prevented.
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
This does not only apply to configure.ac, but exactly the same thing to the main configure script. Have created issue number: 106962 |
You also need to regenerate |
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
@@ -2656,6 +2656,9 @@ yes) | |||
esac | |||
|
|||
case "$CC" in | |||
*mpicc*) | |||
CFLAGS_NODIST="$CFLAGS_NODIST" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strictly, this line is not needed; we could for example do:
CFLAGS_NODIST="$CFLAGS_NODIST" |
I'm also fine with the current line.
Thanks @LukasvdWiel for the PR, and @erlend-aasland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
GH-107081 is a backport of this pull request to the 3.12 branch. |
Don't let autoconf mistake MPI compilers for Intel compilers; filter out the MPI case to prevent Intel specific options from being applied. (cherry picked from commit 9a6b278) Co-authored-by: Lukas van de Wiel <[email protected]>
Don't let autoconf mistake MPI compilers for Intel compilers; filter out the MPI case to prevent Intel specific options from being applied. (cherry picked from commit 9a6b278) Co-authored-by: Lukas van de Wiel <[email protected]>
Don't let autoconf mistake MPI compilers for Intel compilers; filter out the MPI case to prevent Intel specific options from being applied.
Don't let autoconf mistake MPI compilers for Intel compilers; filter out the MPI case to prevent Intel specific options from being applied.
title:
Fixing Python configure script to handle MPI wrapper around GCC compiler.
summary of the changes made:
Added mpicc to the list of possible compilers that the configure script checks for.
Issue: gh-106962
Full description:
When compiling Python with the MPI wrapper around the GNU C-compilers: mpicc, the configure script that determines the compiler options sees mpicc as the intel compiler because of the 'icc' in the name, and applies the fp-model strict option to the arguments, which is invalid syntax for GCC, causing multiple compile time errors with recent GCC versions:
gcc: error: unrecognized command-line option ‘-fp-model’; did you mean ‘-fipa-modref’?
By first filtering out the mpicc compiler case, this error is prevented.