Skip to content

Build of 4.0.0 fails with GCC 15 #530

@gruenich

Description

@gruenich

I tried to update openSuse's packe to ior 4.0.0. The build fails, probably due to more restrict evaluation of GCC 15.

[   16s] mpicc -DHAVE_CONFIG_H -I.      -Icheck/include -Icheck/include  -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -c -o ior-aiori-RADOS.o `test -f 'aiori-RADOS.c' || echo './'`aiori-RADOS.c
[   16s] aiori-RADOS.c:71:19: error: initialization of ‘aiori_fd_t * (*)(char *, int,  aiori_mod_opt_t *)’ from incompatible pointer type ‘void * (*)(char *, IOR_param_t *)’ [-Wincompatible-pointer-types]
[   16s]    71 |         .create = RADOS_Create,
[   16s]       |                   ^~~~~~~~~~~~
[   16s] aiori-RADOS.c:71:19: note: (near initialization for ‘rados_aiori.create’)
[   16s] aiori-RADOS.c:52:14: note: ‘RADOS_Create’ declared here
[   16s]    52 | static void *RADOS_Create(char *, IOR_param_t *);
[   16s]       |              ^~~~~~~~~~~~
[   16s] aiori-RADOS.c:72:17: error: initialization of ‘aiori_fd_t * (*)(char *, int,  aiori_mod_opt_t *)’ from incompatible pointer type ‘void * (*)(char *, IOR_param_t *)’ [-Wincompatible-pointer-types]
[   16s]    72 |         .open = RADOS_Open,
[   16s]       |                 ^~~~~~~~~~
[   16s] aiori-RADOS.c:72:17: note: (near initialization for ‘rados_aiori.open’)
[   16s] aiori-RADOS.c:53:14: note: ‘RADOS_Open’ declared here
[   16s]    53 | static void *RADOS_Open(char *, IOR_param_t *);
[   16s]       |              ^~~~~~~~~~
[   16s] aiori-RADOS.c:73:17: error: initialization of ‘IOR_offset_t (*)(int,  aiori_fd_t *, IOR_size_t *, IOR_offset_t,  IOR_offset_t,  aiori_mod_opt_t *)’ {aka ‘long long int (*)(int,  aiori_fd_t *, long long int *, long long int,  long long int,  aiori_mod_opt_t *)’} from incompatible pointer type ‘IOR_offset_t (*)(int,  void *, IOR_size_t *, IOR_offset_t,  IOR_param_t *)’ {aka ‘long long int (*)(int,  void *, long long int *, long long int,  IOR_param_t *)’} [-Wincompatible-pointer-types]
[   16s]    73 |         .xfer = RADOS_Xfer,
[   16s]       |                 ^~~~~~~~~~
[   16s] aiori-RADOS.c:73:17: note: (near initialization for ‘rados_aiori.xfer’)
[   16s] aiori-RADOS.c:54:21: note: ‘RADOS_Xfer’ declared here
[   16s]    54 | static IOR_offset_t RADOS_Xfer(int, void *, IOR_size_t *,
[   16s]       |                     ^~~~~~~~~~

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