Thanks Hui,

The patch worked very well. Thanks again for the prompt resolution.

Best Regards,
Amit Ruhela

From: Zhou, Hui <zhouh@anl.gov>
Sent: Saturday, February 5, 2022 10:25 AM
To: discuss@mpich.org <discuss@mpich.org>
Cc: Amit Ruhela <aruhela@tacc.utexas.edu>
Subject: Re: Compile issue with QMPI
 
Hi Amit,

Could you try this pull request: https://github.com/pmodels/mpich/pull/5831/files?

You could apply the patch to release tarball, then run
```
    python3 maint/gen_binding_c.py
```
to fix all the generated code.

--
Hui Zhou


From: Amit Ruhela via discuss <discuss@mpich.org>
Sent: Friday, February 4, 2022 5:34 PM
To: discuss@mpich.org <discuss@mpich.org>
Cc: Amit Ruhela <aruhela@tacc.utexas.edu>
Subject: [mpich-discuss] Compile issue with QMPI
 
Hi Mpich team,

I see the following issue with the latest 4.0 release of MPICH while adding QMPI support at configure time?

make[2]: Entering directory `/scratch1/05231/aruhela/libs/mpich/tar-mpich-4.0'
  CC       src/binding/c/attr/lib_libmpi_la-attr_delete.lo
src/binding/c/attr/attr_delete.c(63): error: attributes are not permitted in a function definition
  int QMPI_Attr_delete(QMPI_Context context, int tool_id, MPI_Comm comm, int keyval) MPICH_API_PUBLIC
                                                                                                                                                                 ^

compilation aborted for src/binding/c/attr/attr_delete.c (code 2)
make[2]: *** [src/binding/c/attr/lib_libmpi_la-attr_delete.lo] Error 1

Any suggestions to resolve the build error?

Amit Ruhela, Ph.D. 

HPC Software Tools Group 

Texas Advanced Computing Center 

The University of Texas at Austin 

Email: aruhela@tacc.utexas.edu