Another issue building libmesh on an HPC #29134
Answered
by
TheGreatCid
TheGreatCid
asked this question in
Q&A Getting Started
-
Check these boxes if you have followed the posting rules.
Issue or question about MOOSEI am running into the following error(posted in the errors box) when getting to the compilation step of Any insight would be appreciated. Thanks! (Optional) code in question / simulation log / errors../src/base/libmesh.C:501:28: error: incompatible pointer to integer conversion assigning to 'communicator' (aka 'int') from 'MPI_Comm' (aka 'ompi_communicator_t *')
this->_comm->get() = PETSC_COMM_SELF;
^~~~~~~~~~~~~~~
/ascldap/users/detorre/raccoon/moose/petsc/include/petscsys.h:276:25: note: expanded from macro 'PETSC_COMM_SELF'
#define PETSC_COMM_SELF MPI_COMM_SELF
^~~~~~~~~~~~~
/projects/aue/hpc/deploy/b306e83c/linux-rhel8-x86_64/gcc-12.1.0/openmpi-4.1.6-fa5w34i/include/mpi.h:1165:23: note: expanded from macro 'MPI_COMM_SELF'
#define MPI_COMM_SELF OMPI_PREDEFINED_GLOBAL(MPI_Comm, ompi_mpi_comm_self)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/projects/aue/hpc/deploy/b306e83c/linux-rhel8-x86_64/gcc-12.1.0/openmpi-4.1.6-fa5w34i/include/mpi.h:404:46: note: expanded from macro 'OMPI_PREDEFINED_GLOBAL'
#define OMPI_PREDEFINED_GLOBAL(type, global) (static_cast<type> (static_cast<void *> (&(global))))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/base/libmesh.C:508:7: error: no matching function for call to 'MPI_Abort'
CHKERRABORT(libMesh::GLOBAL_COMM_WORLD,ierr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ascldap/users/detorre/raccoon/moose/petsc/include/petscerror.h:760:32: note: expanded from macro 'CHKERRABORT'
#define CHKERRABORT(comm, ...) PetscCallAbort(comm, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ascldap/users/detorre/raccoon/moose/petsc/include/petscerror.h:725:15: note: expanded from macro 'PetscCallAbort'
(void)MPI_Abort(comm, (PetscMPIInt)ierr_petsc_call_abort_); \
^~~~~~~~~
/projects/aue/hpc/deploy/b306e83c/linux-rhel8-x86_64/gcc-12.1.0/openmpi-4.1.6-fa5w34i/include/mpi.h:1324:20: note: candidate function not viable: no known conversion from 'int' to 'MPI_Comm' (aka 'ompi_communicator_t *') for 1st argument
OMPI_DECLSPEC int MPI_Abort(MPI_Comm comm, int errorcode);
^
../src/base/libmesh.C:521:11: error: no matching function for call to 'MPI_Abort'
CHKERRABORT(libMesh::GLOBAL_COMM_WORLD,ierr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ascldap/users/detorre/raccoon/moose/petsc/include/petscerror.h:760:32: note: expanded from macro 'CHKERRABORT'
#define CHKERRABORT(comm, ...) PetscCallAbort(comm, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ascldap/users/detorre/raccoon/moose/petsc/include/petscerror.h:725:15: note: expanded from macro 'PetscCallAbort'
(void)MPI_Abort(comm, (PetscMPIInt)ierr_petsc_call_abort_); \
^~~~~~~~~
/projects/aue/hpc/deploy/b306e83c/linux-rhel8-x86_64/gcc-12.1.0/openmpi-4.1.6-fa5w34i/include/mpi.h:1324:20: note: candidate function not viable: no known conversion from 'int' to 'MPI_Comm' (aka 'ompi_communicator_t *') for 1st argument
OMPI_DECLSPEC int MPI_Abort(MPI_Comm comm, int errorcode);
^
../src/base/libmesh.C:532:55: error: no matching function for call to 'MPI_Abort'
ierr = DMRegister(DMLIBMESH, DMCreate_libMesh); CHKERRABORT(libMesh::GLOBAL_COMM_WORLD,ierr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ascldap/users/detorre/raccoon/moose/petsc/include/petscerror.h:760:32: note: expanded from macro 'CHKERRABORT'
#define CHKERRABORT(comm, ...) PetscCallAbort(comm, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ascldap/users/detorre/raccoon/moose/petsc/include/petscerror.h:725:15: note: expanded from macro 'PetscCallAbort'
(void)MPI_Abort(comm, (PetscMPIInt)ierr_petsc_call_abort_); \
^~~~~~~~~
/projects/aue/hpc/deploy/b306e83c/linux-rhel8-x86_64/gcc-12.1.0/openmpi-4.1.6-fa5w34i/include/mpi.h:1324:20: note: candidate function not viable: no known conversion from 'int' to 'MPI_Comm' (aka 'ompi_communicator_t *') for 1st argument
OMPI_DECLSPEC int MPI_Abort(MPI_Comm comm, int errorcode);
^
../src/base/libmesh.C:795:9: error: no matching function for call to 'MPI_Abort'
CHKERRABORT(libMesh::GLOBAL_COMM_WORLD, ierr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ascldap/users/detorre/raccoon/moose/petsc/include/petscerror.h:760:32: note: expanded from macro 'CHKERRABORT'
#define CHKERRABORT(comm, ...) PetscCallAbort(comm, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ascldap/users/detorre/raccoon/moose/petsc/include/petscerror.h:725:15: note: expanded from macro 'PetscCallAbort'
(void)MPI_Abort(comm, (PetscMPIInt)ierr_petsc_call_abort_); \
^~~~~~~~~
/projects/aue/hpc/deploy/b306e83c/linux-rhel8-x86_64/gcc-12.1.0/openmpi-4.1.6-fa5w34i/include/mpi.h:1324:20: note: candidate function not viable: no known conversion from 'int' to 'MPI_Comm' (aka 'ompi_communicator_t *') for 1st argument
OMPI_DECLSPEC int MPI_Abort(MPI_Comm comm, int errorcode);
^
../src/base/libmesh.C:799:13: error: no matching function for call to 'MPI_Abort'
CHKERRABORT(libMesh::GLOBAL_COMM_WORLD, ierr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ascldap/users/detorre/raccoon/moose/petsc/include/petscerror.h:760:32: note: expanded from macro 'CHKERRABORT'
#define CHKERRABORT(comm, ...) PetscCallAbort(comm, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ascldap/users/detorre/raccoon/moose/petsc/include/petscerror.h:725:15: note: expanded from macro 'PetscCallAbort'
(void)MPI_Abort(comm, (PetscMPIInt)ierr_petsc_call_abort_); \
^~~~~~~~~
/projects/aue/hpc/deploy/b306e83c/linux-rhel8-x86_64/gcc-12.1.0/openmpi-4.1.6-fa5w34i/include/mpi.h:1324:20: note: candidate function not viable: no known conversion from 'int' to 'MPI_Comm' (aka 'ompi_communicator_t *') for 1st argument
OMPI_DECLSPEC int MPI_Abort(MPI_Comm comm, int errorcode);
^
../src/base/libmesh.C:818:7: error: no matching function for call to 'MPI_Abort'
CHKERRABORT(libMesh::GLOBAL_COMM_WORLD, ierr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ascldap/users/detorre/raccoon/moose/petsc/include/petscerror.h:760:32: note: expanded from macro 'CHKERRABORT'
#define CHKERRABORT(comm, ...) PetscCallAbort(comm, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ascldap/users/detorre/raccoon/moose/petsc/include/petscerror.h:725:15: note: expanded from macro 'PetscCallAbort'
(void)MPI_Abort(comm, (PetscMPIInt)ierr_petsc_call_abort_); \
^~~~~~~~~
/projects/aue/hpc/deploy/b306e83c/linux-rhel8-x86_64/gcc-12.1.0/openmpi-4.1.6-fa5w34i/include/mpi.h:1324:20: note: candidate function not viable: no known conversion from 'int' to 'MPI_Comm' (aka 'ompi_communicator_t *') for 1st argument
OMPI_DECLSPEC int MPI_Abort(MPI_Comm comm, int errorcode);
^
CXX src/error_estimation/libmesh_opt_la-hp_coarsentest.lo
CXX src/error_estimation/libmesh_opt_la-hp_selector.lo
CXX src/error_estimation/libmesh_opt_la-hp_singular.lo
CXX src/error_estimation/libmesh_opt_la-jump_error_estimator.lo
CXX src/error_estimation/libmesh_opt_la-kelly_error_estimator.lo
7 errors generated.
CXX src/error_estimation/libmesh_opt_la-patch_recovery_error_estimator.lo
make[1]: *** [Makefile:26734: src/base/libmesh_opt_la-libmesh.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/detorre/raccoon/moose/libmesh/build'
make: *** [Makefile:34013: all-recursive] Error 1 Encountering Errors? Please include diagnostic output
|
Beta Was this translation helpful? Give feedback.
Answered by
TheGreatCid
Nov 25, 2024
Replies: 1 comment 20 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I may have figured it out. I set those variable before loading the modules with mpicxx and mpicc. Swapping the order now gives me this diag
################################################################################################## Influential Environment Variables CC=/projects/aue/hpc/deploy/b306e83c/linux-rhel8-x86_64/gcc-12.1.0/openmpi-4.1.6-fa5w34i/bin/mpicc CONDA_CHANNEL=https://conda.software.inl.gov/public CONDA_EXE=/home/detorre/miniforge/bin/conda CONDA_PYTHON_EXE=/home/detorre/miniforge/bin/python CONDA_SHLVL=0 CURL_CA_BUNDLE= CXX=/projects/aue/hpc/deploy/b306e83c/linux-rhel8-x86_64/gcc-12.1.0/openmpi-4.1.6-fa5w34i/bin/mpicxx F77=/projects/aue/hpc/deploy/b306e83c/linux-r…