Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
hen compiling Python with the MPI wrapper around the GNU C-compilers: mpicc, the configure scriptthat determines the compiler options sees mpicc as the intel compiler because of the 'icc' in thename, 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.
ghost commentedJul 21, 2023 • edited by ghost
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by ghost
Uh oh!
There was an error while loading.Please reload this page.
bedevere-bot commentedJul 21, 2023
Most changes to Pythonrequire a NEWS entry. Please add it using theblurb_it web app or theblurb command-line tool. |
LukasvdWiel commentedJul 21, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This does not only apply to configure.ac, but exactly the same thing to the main configure script. Have created issue number: 106962 |
sunmy2019 commentedJul 22, 2023
You also need to regenerate |
bedevere-bot commentedJul 22, 2023
Most changes to Pythonrequire a NEWS entry. Please add it using theblurb_it web app or theblurb command-line tool. |
| 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.
miss-islington commentedJul 22, 2023
Thanks@LukasvdWiel for the PR, and@erlend-aasland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
bedevere-bot commentedJul 22, 2023
GH-107081 is a backport of this pull request to the3.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 commit9a6b278)Co-authored-by: Lukas van de Wiel <30800501+LukasvdWiel@users.noreply.github.com>
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 commit9a6b278)Co-authored-by: Lukas van de Wiel <30800501+LukasvdWiel@users.noreply.github.com>
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.
Uh oh!
There was an error while loading.Please reload this page.
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.