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

Compilation error w/ gcc 12.2 #3545

Closed
pshriwise opened this issue May 9, 2023 · 3 comments
Closed

Compilation error w/ gcc 12.2 #3545

pshriwise opened this issue May 9, 2023 · 3 comments

Comments

@pshriwise
Copy link
Contributor

I'm seeing the following compilation error with gcc 12.2 and openmpi 4.1.4.

In file included from ../../../../contrib/timpi/src/utilities/include/timpi/timpi_call_mpi.h:29,
                 from ../../../../contrib/timpi/src/parallel/include/timpi/data_type.h:23,
                 from ../../../../contrib/timpi/src/parallel/include/timpi/standard_type.h:23,
                 from ../../../../contrib/timpi/src/parallel/include/timpi/communicator.h:23,
                 from ../../../../contrib/timpi/src/utilities/src/timpi_assert.C:24:
/usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:400:47: error: cast from ‘void*’ is not allowed
  400 | #define OMPI_PREDEFINED_GLOBAL(type, global) (static_cast<type> (static_cast<void *> (&(global))))
      |                                              ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/openmpi/include/mpi.h:855:26: note: in expansion of macro ‘OMPI_PREDEFINED_GLOBAL’
  855 | #define MPI_REQUEST_NULL OMPI_PREDEFINED_GLOBAL(MPI_Request, ompi_request_null)
      |                          ^~~~~~~~~~~~~~~~~~~~~~
../../../../contrib/timpi/src/parallel/include/timpi/request.h:112:43: note: in expansion of macro ‘MPI_REQUEST_NULL’
  112 |   static constexpr request null_request = MPI_REQUEST_NULL;
      |                                           ^~~~~~~~~~~~~~~~

I've attached my configuration log here in case that's helpful.

config.log

@pshriwise
Copy link
Contributor Author

Whoops, forgot the commit I was using: 8049421

@jwpeterson
Copy link
Member

Looks like the same thing as libMesh/TIMPI#122. This has been fixed in TIMPI and the TIMPI in libmesh has been updated, so you should just need to update.

@pshriwise
Copy link
Contributor Author

Thanks @jwpeterson! I'll pass that message on.

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