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
build: Error message when it needs -fallow-argument-mismatch #5811
Comments
MPICH now only need |
I was compiling the last release of mpich-4.0 with gcc-11.2.0 :
This leads to
Using
does not produce any error |
I see. That error is from configuring the test suite. The main branch detached the test suite from the main mpich configure, so it wouldn't be an issue anymore. @raffenet We probably should patch the error message in the 4.0.x branch since the |
Will add it to the list of 4.0.x fixes needed. |
This is fixed in the 4.0.x stable branch via PR #5820 |
Greetings MPICH team I am trying to build mpich-4.0.2 from MacPorts, it is a dependency for the Octave math software I'm trying to install.
I have tried adding these flags manually to the command as well as to several of the configure & make files (in the macports build directory: As I have no experience whatsoever with cmake, I don't know what to do. I don't know where exactly these flags should be added, nor what syntax to use. What is the recommended solution for an error like this? |
@dubf Try set environment variables
|
@hzhou Thanks a lot for your reply. I had tried your suggestion in a similar way before; unfortunately it doesn't work. These are the last 11 lines of the
I've attached main.log and config.log. Two things have caught my attention:
This leads me to ask two questions:
Thanks a lot for your support. |
You're environment settings are likely getting lost because of |
@raffenet Interesting idea, thanks for the input. It didn't make any difference though. |
How about |
@hzhou Had tried that one already. Just confirmed it gives the same result. |
Ahh, thanks. Apparently, macport always blindly overwrites user-set compiler flags. I took a look at their repository -- https://github.com/macports/macports-ports/blob/3dcd708af94761a0e313f4acdddf631cb4443a87/science/mpich/Portfile#L286-L293 |
@hzhou Thanks a lot for finding that out! I'll file an issue at MacPorts. Could you tell me how exactly I replace |
I just tried building it manually, using the options macports provided. Had to remove several flags which weren't recognized: Added the flags: So this was the command used: This seemed to work well, until it gave me the following error:
This seems to confirm your hypothesis. I then removed the F90 flag and added the flag: Now it worked! |
@hzhou @raffenet
I copied
outside of the if-statement which tests for The Thanks for the support. |
mpich/configure.ac
Line 1995 in 9d9d208
It might be helpful to replace
Rerun configure with FCFLAGS=$addarg
withRerun configure with FFLAGS=$addarg and FCFLAGS=$addarg
The text was updated successfully, but these errors were encountered: