The build with trilinos-ml
fails because Trilinos 16 has deprecated the ML package:
In file included from /usr/include/ml_include.h:16,
from /tmp/petsc-lz1o27i4/config.headers/conftest.cc:3:
/usr/include/ml_common.h:189:2: warning: #warning "The ML package is deprecated" [-Wcpp]
189 | #warning "The ML package is deprecated"
| ^~~~~~~
In file included from /usr/include/ml_defs.h:8,
from /usr/include/ml_include.h:17:
/usr/include/ml_common.h:189:2: warning: #warning "The ML package is deprecated" [-Wcpp]
189 | #warning "The ML package is deprecated"
| ^~~~~~~
/usr/include/ml_defs.h:200:2: warning: #warning "The ML package is deprecated" [-Wcpp]
200 | #warning "The ML package is deprecated"
| ^~~~~~~
In file included from /usr/include/ml_struct.h:26,
from /usr/include/ml_include.h:18:
/usr/include/ml_common.h:189:2: warning: #warning "The ML package is deprecated" [-Wcpp]
189 | #warning "The ML package is deprecated"
| ^~~~~~~
In file included from /usr/include/ml_struct.h:27:
/usr/include/ml_defs.h:200:2: warning: #warning "The ML package is deprecated" [-Wcpp]
200 | #warning "The ML package is deprecated"
| ^~~~~~~
...
These warnings are printed to stderr by the compiler and the Petsc build system treats it as an error when it checks if the #include <ml_include.h>
include statement works.
Pinned Comments
MartinDiehl commented on 2022-10-06 10:26 (UTC)
@jrohwer
When building PETSc (more specifically, petsc4py), one test (ex100 from ksp) will fail if a previous (major) version is installed. I could not figure out why this happens. The solution would be to build in a clean root (which is a little bit complicated due to dependency on other AUR packages) or simply uninstall the old version before.
Any help to solve this issue is welcomed.