<div dir="ltr"><div dir="ltr">On Wed, May 12, 2021 at 5:51 AM Antonio T. sagitter <<a href="mailto:sagitter@fedoraproject.org">sagitter@fedoraproject.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all.<br>
<br>
I'm sorry if using python-3.10 is not in your plan yet and this mail is <br>
inappropriate now.<br>
<br>
This is an error from a build of PETSc-3.15 in a Python-3.10.0b1 (on <br>
Fedora 35<br>
, GCC-11.1.1):<br>
<br>
+ make V=1 MAKE_NP=2 <br>
PETSC_DIR=/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0 <br>
PETSC_ARCH=x86_64 all<br></blockquote><div><br></div><div>We need makefile parsing, which is currently in distutils. Casual Googling does not find it in</div><div>any other packages. Where has Python moved it? I am assuming they have not just dropped</div><div>it on the floor.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
/usr/bin/python3 ./config/gmakegen.py --petsc-arch=x86_64<br>
<br>
/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/./config/gmakegen.py:4: <br>
DeprecationWarning: The distutils package is deprecated and slated for <br>
removal in Python 3.12. Use setuptools or check PEP 632 for potential <br>
alternatives<br>
<br>
   from distutils.sysconfig import parse_makefile<br>
<br>
/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/./config/gmakegen.py:4: <br>
DeprecationWarning: The distutils.sysconfig module is deprecated, use <br>
sysconfig instead<br>
<br>
   from distutils.sysconfig import parse_makefile<br>
<br>
Traceback (most recent call last):<br>
<br>
   File <br>
"/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/./config/gmakegen.py", <br>
line 345, in <module><br>
<br>
     main(petsc_arch=opts.petsc_arch, pkg_dir=opts.pkg_dir, <br>
pkg_name=opts.pkg_name, pkg_arch=opts.pkg_arch, pkg_pkgs=opts.pkg_pkgs, <br>
output=opts.output, verbose=opts.verbose)<br>
<br>
   File <br>
"/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/./config/gmakegen.py", <br>
line 328, in main<br>
<br>
     petsc.summary()<br>
<br>
   File <br>
"/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/./config/gmakegen.py", <br>
line 255, in summary<br>
<br>
     self.mistakes.summary()<br>
<br>
   File <br>
"/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/./config/gmakegen.py", <br>
line 79, in summary<br>
<br>
     raise RuntimeError('PETSc makefiles contain mistakes or files are <br>
missing on filesystem.\n%s\nPossible reasons:\n\t1. Files were deleted <br>
locally, try "hg revert filename" or "git checkout filename".\n\t2. <br>
Files were deleted from repository, but were not removed from makefile. <br>
Send mail to <a href="mailto:petsc-maint@mcs.anl.gov" target="_blank">petsc-maint@mcs.anl.gov</a>.\n\t3. Someone forgot to "add" new <br>
files to the repository. Send mail to <a href="mailto:petsc-maint@mcs.anl.gov" target="_blank">petsc-maint@mcs.anl.gov</a>.' % <br>
('\n'.join(self.mistakes)))<br>
<br>
RuntimeError: PETSc makefiles contain mistakes or files are missing on <br>
filesystem.<br>
<br>
Makefile contains directory not on filesystem: <br>
/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/src/sys: ['\\']<br>
<br>
Makefile contains directory not on filesystem: <br>
/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/src/mat/impls/aij/seq: <br>
['\\']<br>
<br>
Makefile contains directory not on filesystem: <br>
/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/src/ksp/ksp/impls: ['\\']<br>
<br>
Makefile contains directory not on filesystem: <br>
/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/src/ksp/pc/impls: ['ml\\']<br>
<br>
Makefile contains directory not on filesystem: <br>
/builddir/build/BUILD/petsc-3.15.0/petsc-3.15.0/src/tao/complementarity/impls: <br>
['#', 'isls', 'rscs']<br>
<br>
Possible reasons:<br>
<br>
        1. Files were deleted locally, try "hg revert filename" or "git <br>
checkout filename".<br>
<br>
        2. Files were deleted from repository, but were not removed from <br>
makefile. Send mail to <a href="mailto:petsc-maint@mcs.anl.gov" target="_blank">petsc-maint@mcs.anl.gov</a>.<br>
<br>
        3. Someone forgot to "add" new files to the repository. Send mail to <br>
<a href="mailto:petsc-maint@mcs.anl.gov" target="_blank">petsc-maint@mcs.anl.gov</a>.<br>
<br>
gmakefile:67: x86_64/lib/petsc/conf/files: No such file or directory<br>
<br>
Can you say me what's cause it? (Same configuration works with Python-3.9)?<br>
<br>
<br>
Regards.<br>
-- <br>
---<br>
Antonio Trande<br>
Fedora Project<br>
mailto: <a href="mailto:sagitter@fedoraproject.org" target="_blank">sagitter@fedoraproject.org</a><br>
GPG key: 0x29FBC85D7A51CC2F<br>
GPG key server: <a href="https://keys.gnupg.net/" rel="noreferrer" target="_blank">https://keys.gnupg.net/</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>