Replies: 1 comment 2 replies
-
I tired the same installation process, building petsc, slepc, and libmesh, on my MacBook Pro, and got an error while compiling the same file, libmesh_dbg_la-petscdmlibmeshimpl.lo. I have attached the configuration file for your reference. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I was trying to install libmesh using WSL2 and got the following error while compiling src/solvers/petscdmlibmeshimpl.C. I'd appreciate it if someone can help me with the error. Please find the attached files (error messages and config) for your reference.
===============================
src/solvers/petscdmlibmeshimpl.C:881:59: warning: conversion lacks type at end of format [-Wformat=]
src/solvers/petscdmlibmeshimpl.C:881:59: warning: too many arguments for format [-Wformat-extra-args]
In file included from /home/aeronova/library/petsc/petsc-3.18.5/include/petscsys.h:1189:0,
from /home/aeronova/library/petsc/petsc-3.18.5/include/petscbag.h:5,
from /home/aeronova/library/petsc/petsc-3.18.5/include/petsc.h:5,
from ./include/libmesh/petsc_macro.h:66,
from src/solvers/petscdmlibmeshimpl.C:20:
src/solvers/petscdmlibmeshimpl.C: In function ‘PetscErrorCode DMSetUp_libMesh(DM)’:
src/solvers/petscdmlibmeshimpl.C:904:120: error: ‘struct _p_PetscObject’ has no member named ‘type’
SETERRQ2(((PetscObject)dm)->comm, PETSC_ERR_ARG_WRONG, "DM of type %s, not of type %s", ((PetscObject)dm)->type, DMLIB
^
/home/aeronova/library/petsc/petsc-3.18.5/include/petscerror.h:119:127: note: in definition of macro ‘SETERRQ’
ierr_seterrq_petsc = PetscError(comm, LINE, PETSC_FUNCTION_NAME, FILE, ierr, PETSC_ERROR_INITIAL, VA_ARGS
^
src/solvers/petscdmlibmeshimpl.C:904:5: note: in expansion of macro ‘LIBMESH_SETERRQ2’
LIBMESH_SETERRQ2(((PetscObject)dm)->comm, PETSC_ERR_ARG_WRONG, "DM of type %s, not of type %s", ((PetscObject)dm)->
^
Makefile:18873: recipe for target 'src/solvers/libmesh_dbg_la-petscdmlibmeshimpl.lo' failed
make[1]: *** [src/solvers/libmesh_dbg_la-petscdmlibmeshimpl.lo] Error 1
make[1]: Leaving directory '/home/aeronova/build/libmesh-1.7.1'
Makefile:32290: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
libmesh_on_WSL2_installation_error.txt
config.log
Beta Was this translation helpful? Give feedback.
All reactions