https://sourceware.org/bugzilla/show_bug.cgi?id=32466
Bug ID: 32466 Summary: nrun build error Product: binutils Version: 2.44 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: euloanty at live dot com Target Milestone: --- /home/cqwrteur/toolchains_build/binutils-gdb/sim/common/nrun.c:150:23: error: assignment to 'void (*)(void)' from incompatible pointer type '__sighandler_t' {aka 'void (*)(int)'} [-Wincompatible-pointer-types] 150 | prev_sigint = signal (SIGINT, cntrl_c); | ^ /home/cqwrteur/toolchains_build/binutils-gdb/sim/common/nrun.c:152:27: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 152 | signal (SIGINT, prev_sigint); | ^~~~~~~~~~~ | | | void (*)(void) In file included from ../gnulib/import/signal.h:52, from /home/cqwrteur/toolchains_build/binutils-gdb/sim/common/nrun.c:20: /home/cqwrteur/toolchains/x86_64-linux-gnu/x86_64-linux-gnu/sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ /home/cqwrteur/toolchains_build/binutils-gdb/sim/common/nrun.c:175:23: error: assignment to 'void (*)(void)' from incompatible pointer type '__sighandler_t' {aka 'void (*)(int)'} [-Wincompatible-pointer-types] 175 | prev_sigint = osa.sa_handler; | ^ /home/cqwrteur/toolchains_build/binutils-gdb/sim/common/nrun.c:180:27: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 180 | signal (SIGINT, prev_sigint); | ^~~~~~~~~~~ | | | void (*)(void) /home/cqwrteur/toolchains/x86_64-linux-gnu/x86_64-linux-gnu/sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ yes checking for execinfo.h... yes make[3]: *** [Makefile:5167: aarch64/nrun.o] Error 1 make[3]: *** Waiting for unfinished jobs.... -- You are receiving this mail because: You are on the CC list for the bug.