<head><!-- BaNnErBlUrFlE-HeAdEr-start -->
<style>
  #pfptBanner7c46yvx { all: revert !important; display: block !important; 
    visibility: visible !important; opacity: 1 !important; 
    background-color: #D0D8DC !important; 
    max-width: none !important; max-height: none !important }
  .pfptPrimaryButton7c46yvx:hover, .pfptPrimaryButton7c46yvx:focus {
    background-color: #b4c1c7 !important; }
  .pfptPrimaryButton7c46yvx:active {
    background-color: #90a4ae !important; }
</style>

<!-- BaNnErBlUrFlE-HeAdEr-end -->
</head><!-- BaNnErBlUrFlE-BoDy-start -->
<!-- Preheader Text : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">
 I am currently working on integrating petsc4py, but I am encountering persistent compilation issues related to Cython. Below are the details of my setup and the errors I am facing. I would greatly appreciate any assistance or guidance on how
</div>
<!-- Preheader Text : END -->

<!-- Email Banner : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerStart</div>

<!--[if ((ie)|(mso))]>
  <table border="0" cellspacing="0" cellpadding="0" width="100%" style="padding: 16px 0px 16px 0px; direction: ltr" ><tr><td>
    <table border="0" cellspacing="0" cellpadding="0" style="padding: 0px 10px 5px 6px; width: 100%; border-radius:4px; border-top:4px solid #90a4ae;background-color:#D0D8DC;"><tr><td valign="top">
      <table align="left" border="0" cellspacing="0" cellpadding="0" style="padding: 4px 8px 4px 8px">
        <tr><td style="color:#000000; font-family: 'Arial', sans-serif; font-weight:bold; font-size:14px; direction: ltr">
          This Message Is From an External Sender
        </td></tr>
        <tr><td style="color:#000000; font-weight:normal; font-family: 'Arial', sans-serif; font-size:12px; direction: ltr">
          This message came from outside your organization.
        </td></tr>

      </table>

    </td></tr></table>
  </td></tr></table>
<![endif]-->

<![if !((ie)|(mso))]>
  <div dir="ltr"  id="pfptBanner7c46yvx" style="all: revert !important; display:block !important; text-align: left !important; margin:16px 0px 16px 0px !important; padding:8px 16px 8px 16px !important; border-radius: 4px !important; min-width: 200px !important; background-color: #D0D8DC !important; background-color: #D0D8DC; border-top: 4px solid #90a4ae !important; border-top: 4px solid #90a4ae;">
    <div id="pfptBanner7c46yvx" style="all: unset !important; float:left !important; display:block !important; margin: 0px 0px 1px 0px !important; max-width: 600px !important;">
      <div id="pfptBanner7c46yvx" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-weight:bold !important; font-weight:bold; font-size:14px !important; line-height:18px !important; line-height:18px">
        This Message Is From an External Sender
      </div>
      <div id="pfptBanner7c46yvx" style="all: unset !important; display:block !important; visibility: visible !important; background-color: #D0D8DC !important; color:#000000 !important; color:#000000; font-weight:normal; font-family: 'Arial', sans-serif !important; font-family: 'Arial', sans-serif; font-size:12px !important; line-height:18px !important; line-height:18px; margin-top:2px !important;">
This message came from outside your organization.
      </div>

    </div>

    <div style="clear: both !important; display: block !important; visibility: hidden !important; line-height: 0 !important; font-size: 0.01px !important; height: 0px"> </div>
  </div>
<![endif]>

<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;">ZjQcmQRYFpfptBannerEnd</div>
<!-- Email Banner : END -->

<!-- BaNnErBlUrFlE-BoDy-end -->
<div dir="ltr"><p>I am currently working on integrating <code>petsc4py</code>, but I am encountering persistent compilation issues related to Cython. Below are the details of my setup and the errors I am facing. I would greatly appreciate any assistance or guidance on how to resolve these issues.</p><h3>System Configuration:</h3><ul><li><strong>PETSc Architecture</strong>: <code>linux-gnu-c-debug</code></li><li><strong>Python Environment</strong>: Python 3.6 (virtual environment)</li><li><strong>Cython Version</strong>: 3.0.10</li><li><strong>Compiler</strong>: <code>/gcc11.2/bin/gcc</code></li></ul><div> During the build process, I received multiple warnings and errors related to the use of <code>noexcept</code>, <code>nogil</code>, and <code>except</code> in function declarations. Here are some of the specific errors:  <font face="monospace"><br></font></div><div><br></div><div>cythonizing 'petsc4py.PETSc.pyx' -> 'petsc4py.PETSc.c'<br>warning: petsc4py.PETSc.pyx:1:0: Dotted filenames ('petsc4py.PETSc.pyx') are deprecated. Please use the normal Python package directory layout.<br>/home/maitri.ksh/Maitri/petsc/petsc4py/myenv/lib64/python3.6/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: include/petsc4py/PETSc.pxd<br>  tree = Parsing.p_module(s, pxd, full_module_name)<br>warning: PETSc/PETSc.pyx:53:48: The keyword 'nogil' should appear at the end of the function signature line. Placing it before 'except' or 'noexcept' will be disallowed in a future version of Cython.<br>warning: PETSc/petscvec.pxi:406:79: The keyword 'nogil' should appear at the end of the function signature line. Placing it before 'except' or 'noexcept' will be disallowed in a future version of Cython.<br>warning: PETSc/petscvec.pxi:411:79: The keyword 'nogil' should appear at the end of the function signature line. Placing it before 'except' or 'noexcept' will be disallowed in a future version of Cython.<br>...<br><br>Error compiling Cython file:<br>...<br>PETSc/petscobj.pxi:91:29: Cannot assign type 'int (void *) except? -1 nogil' to 'int (*)(void *) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to the type of 'PetscDelPyDict'.<br>...<br>PETSc/cyclicgc.pxi:34:20: Cannot assign type 'int (PyObject *, visitproc, void *) except? -1' to 'traverseproc *'. Exception values are incompatible. Suggest adding 'noexcept' to the type of 'tp_traverse'.<br>...<br>PETSc/cyclicgc.pxi:35:20: Cannot assign type 'int (PyObject *) except? -1' to 'inquiry *'. Exception values are incompatible. Suggest adding 'noexcept' to the type of 'tp_clear'.<br>...<br>PETSc/PETSc.pyx:351:17: Cannot assign type 'void (void) except * nogil' to 'void (*)(void) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to the type of 'finalize'.<br>error: Cython failure: 'petsc4py.PETSc.pyx' -> 'petsc4py.PETSc.c'<br></div><div><br></div><div>Any advice on building <code>petsc4py</code> in environments similar to mine would be greatly appreciated.</div><div>Thanks,</div><div>Maitri  <br></div></div>