Skip to content
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

fails to build with mpich 4.0.1 #1912

Closed
jedwards4b opened this issue Mar 4, 2022 · 4 comments
Closed

fails to build with mpich 4.0.1 #1912

jedwards4b opened this issue Mar 4, 2022 · 4 comments

Comments

@jedwards4b
Copy link
Contributor

Using gcc 9 and mpich 4.0.1 generates errors in build.

@jedwards4b
Copy link
Contributor Author

the issue is that variable MPI_OFFSET seems to be redefined.

@jedwards4b
Copy link
Contributor Author

The problem is with the code in pio_internal.h:

#ifndef MPI_Offset
/** This is the type used for PIO_Offset. */
#define MPI_Offset long long
#endif

MPI_Offset is in mpi.h as:

typedef long MPI_Offset;

But for some reason the Macro resolves to false and redefines as long long.

@jedwards4b
Copy link
Contributor Author

@edhartnett I am inclined to just remove this code - can you remind me of why we need it?

@edwardhartnett
Copy link
Collaborator

Remove it and if everything works, great.

I cannot remember the reasons for this, I'm afraid. It was a long time ago!

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

No branches or pull requests

2 participants