[petsc-dev] Error of petsc-3.15 with python-3.10

Matthew Knepley knepley at gmail.com
Wed May 12 07:17:54 CDT 2021


On Wed, May 12, 2021 at 5:51 AM Antonio T. sagitter <
sagitter at fedoraproject.org> wrote:

> Hi all.
>
> I'm sorry if using python-3.10 is not in your plan yet and this mail is
> inappropriate now.
>
> This is an error from a build of PETSc-3.15 in a Python-3.10.0b1 (on
> Fedora 35
> , GCC-11.1.1):
>
> + make V=1 MAKE_NP=2
> PETSC_DIR=/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0
> PETSC_ARCH=x86_64 all
>

We need makefile parsing, which is currently in distutils. Casual Googling
does not find it in
any other packages. Where has Python moved it? I am assuming they have not
just dropped
it on the floor.

  Thanks,

     Matt


> /usr/bin/python3 ./config/gmakegen.py --petsc-arch=x86_64
>
> /builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/./config/gmakegen.py:4:
> DeprecationWarning: The distutils package is deprecated and slated for
> removal in Python 3.12. Use setuptools or check PEP 632 for potential
> alternatives
>
>    from distutils.sysconfig import parse_makefile
>
> /builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/./config/gmakegen.py:4:
> DeprecationWarning: The distutils.sysconfig module is deprecated, use
> sysconfig instead
>
>    from distutils.sysconfig import parse_makefile
>
> Traceback (most recent call last):
>
>    File
> "/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/./config/gmakegen.py",
> line 345, in <module>
>
>      main(petsc_arch=opts.petsc_arch, pkg_dir=opts.pkg_dir,
> pkg_name=opts.pkg_name, pkg_arch=opts.pkg_arch, pkg_pkgs=opts.pkg_pkgs,
> output=opts.output, verbose=opts.verbose)
>
>    File
> "/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/./config/gmakegen.py",
> line 328, in main
>
>      petsc.summary()
>
>    File
> "/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/./config/gmakegen.py",
> line 255, in summary
>
>      self.mistakes.summary()
>
>    File
> "/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/./config/gmakegen.py",
> line 79, in summary
>
>      raise RuntimeError('PETSc makefiles contain mistakes or files are
> missing on filesystem.\n%s\nPossible reasons:\n\t1. Files were deleted
> locally, try "hg revert filename" or "git checkout filename".\n\t2.
> Files were deleted from repository, but were not removed from makefile.
> Send mail to petsc-maint at mcs.anl.gov.\n\t3. Someone forgot to "add" new
> files to the repository. Send mail to petsc-maint at mcs.anl.gov.' %
> ('\n'.join(self.mistakes)))
>
> RuntimeError: PETSc makefiles contain mistakes or files are missing on
> filesystem.
>
> Makefile contains directory not on filesystem:
> /builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/src/sys: ['\\']
>
> Makefile contains directory not on filesystem:
> /builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/src/mat/impls/aij/seq:
> ['\\']
>
> Makefile contains directory not on filesystem:
> /builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/src/ksp/ksp/impls: ['\\']
>
> Makefile contains directory not on filesystem:
> /builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/src/ksp/pc/impls: ['ml\\']
>
> Makefile contains directory not on filesystem:
> /builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/src/tao/complementarity/impls:
>
> ['#', 'isls', 'rscs']
>
> Possible reasons:
>
>         1. Files were deleted locally, try "hg revert filename" or "git
> checkout filename".
>
>         2. Files were deleted from repository, but were not removed from
> makefile. Send mail to petsc-maint at mcs.anl.gov.
>
>         3. Someone forgot to "add" new files to the repository. Send mail
> to
> petsc-maint at mcs.anl.gov.
>
> gmakefile:67: x86_64/lib/petsc/conf/files: No such file or directory
>
> Can you say me what's cause it? (Same configuration works with Python-3.9)?
>
>
> Regards.
> --
> ---
> Antonio Trande
> Fedora Project
> mailto: sagitter at fedoraproject.org
> GPG key: 0x29FBC85D7A51CC2F
> GPG key server: https://keys.gnupg.net/
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20210512/7d56bdec/attachment.html>


More information about the petsc-dev mailing list