Bug 2178710 - scalapack: Build in C89 mode
Summary: scalapack: Build in C89 mode
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: scalapack
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PortingToModernCExemptions
TreeView+ depends on / blocked
 
Reported: 2023-03-15 15:52 UTC by Arjun Shankar
Modified: 2023-08-16 09:23 UTC (History)
4 users (show)

Fixed In Version: scalapack-2.2.0-4.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-16 12:01:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
A partial patch to fix some implicit function declarations (1.46 KB, patch)
2023-03-15 15:52 UTC, Arjun Shankar
no flags Details | Diff

Description Arjun Shankar 2023-03-15 15:52:28 UTC
Created attachment 1951049 [details]
A partial patch to fix some implicit function declarations

This package has several implicitly defined functions due to which it cannot build in C99 mode.

Somewhat related, it also occasionally declares function prototypes right before use instead of including the prototypes via a header. Here's an example from scalapack-2.2.0/scalapack-2.2.0/BLACS/SRC/blacs_map_.c:

#if (INTFACE == C_CALL)
void Cblacs_gridmap(Int *ConTxt, Int *usermap, Int ldup, Int nprow0, Int npcol0)
#else
F_VOID_FUNC blacs_gridmap_(Int *ConTxt, Int *usermap, Int *ldup, Int *nprow0,
                           Int *npcol0)
#endif
{
   void Cblacs_pinfo(Int *, Int *);
   void Cblacs_get(Int, Int, Int *);
   ...

...the above two functions are then used later on in the function.

Building this package as C99 leads to several implicit function declaration errors, and in some cases fixing them would presumably involve declarations (currently missed) such as the example above.

I am attaching a partial patch to fix up some implicit function declarations, but eventually decided that it is easier to simply build this package as C89 for now.

C99 porting should be deferred until it's fixed upstream and rebased.


Note You need to log in before you can comment on or make changes to this bug.