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

Antonio T. sagitter sagitter at fedoraproject.org
Wed May 12 04:51:19 CDT 2021


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

/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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: text/x-log
Size: 972129 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20210512/11c70cfa/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmake.log
Type: text/x-log
Size: 707 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20210512/11c70cfa/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x29FBC85D7A51CC2F.asc
Type: application/pgp-keys
Size: 4213 bytes
Desc: OpenPGP public key
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20210512/11c70cfa/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20210512/11c70cfa/attachment-0001.sig>


More information about the petsc-dev mailing list