-
Notifications
You must be signed in to change notification settings - Fork 43
Description
lis 2.1.0 fails to build with -std=gnu23, works fine with -std=gnu17
make[2]: Entering directory '/builddir/build/BUILD/lis-2.1.10-build/lis-2.1.10/omp/src/precon'
/bin/sh ../../libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I../../../src/precon -I../../include -I../../../include -O3 -fomit-frame-pointer -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -std=gnu23 -c -o lis_precon.lo ../../../src/precon/lis_precon.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../../src/precon -I../../include -I../../../include -O3 -fomit-frame-pointer -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -std=gnu23 -c ../../../src/precon/lis_precon.c -fPIC -DPIC -o .libs/lis_precon.o
make[2]: Leaving directory '/builddir/build/BUILD/lis-2.1.10-build/lis-2.1.10/omp/src/precon'
../../../src/precon/lis_precon.c: In function ‘lis_precon_destroy’:
../../../src/precon/lis_precon.c:344:19: error: too many arguments to function ‘(void ()(void))f_clear_matrix_ptr’; expected 0, have 1
344 | ((void (*)())f_clear_matrix_ptr)(&precon->level_num);
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:352: lis_precon.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/builddir/build/BUILD/lis-2.1.10-build/lis-2.1.10/omp/src/precon'