Building port with GCC 11 gives the following error message (full log in URL): ebl_syscall_abi.c:37:64: error: argument 5 of type 'int *' declared as a pointer [-Werror=array-parameter=] 37 | ebl_syscall_abi (Ebl *ebl, int *sp, int *pc, int *callno, int *args) | ~~~~~^~~~ In file included from ./libeblP.h:34, from ebl_syscall_abi.c:33: ./libebl.h:248:46: note: previously declared as an array 'int[6]' 248 | int *callno, int args[6]); | ~~~~^~~~~~~ cc1: all warnings being treated as errors
Note, this blocks the update of GCC_DEFAULT from GCC 10 to GCC 11 (where GCC 12 is going to be released soon). Also, maybe once this is addressed USE_GCC can be removed in favor of using the default clang compiler?
Once the patch from bug#263594 is committed this issue should be closed because elfutils would not depend on gcc any more.
Thanks for your help Yuri. I am unsure the issue can be closed now that USE_GCC has been removed from elfutils: the build would still fail if a user attempted to compile the port with GCC 11. But the issue is indeed solved when the port is built with the default compiler. So I remove the block to the update of GCC_DEFAULT from GCC 10 to GCC 11.
(In reply to Lorenzo Salvadore from comment #3) Lorenzo, You are right, the current version fails with gcc, even with gcc-10: https://sourceware.org/bugzilla/show_bug.cgi?id=29158 This is a regression. Yuri
*** Bug 264085 has been marked as a duplicate of this bug. ***
Is this fixed after ports d966de5a7dd68918795218e7ee75da149fb17e06?