Skip to content

Argument mismatch errors in C code with GCC-15 #129

Open
@nncarlson

Description

@nncarlson

I'm trying to build scalapack-2.2.2 using the new gcc-15 compiler and am encountering this error, and many others like it, in C code:

/opt/src/scalapack/scalapack-2.2.2/TOOLS/reshape.c:32:4: error: too many arguments to function ‘Cblacs_gridinfo’; expected 0, have 5
   32 |    Cblacs_gridinfo( context_in, &nprow_in, &npcol_in, &myrow_in, &mycol_in );
      |    ^~~~~~~~~~~~~~~  ~~~~~~~~~~
/opt/src/scalapack/scalapack-2.2.2/TOOLS/reshape.c:15:9: note: declared here
   15 |    void Cblacs_gridinfo();
      |         ^~~~~~~~~~~~~~~

It seems gcc has gotten stricter since version 12, which compiles this without error. Is there a gcc option that downgrades this to a warning (like exists for Fortran)? I'm not seeing anything that jumps out at me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions