Description of problem: nasm 2.12 build failure on PowerPC as reported by koji http://ppc.koji.fedoraproject.org/kojifiles/work/tasks/7405/3187405/build.log === gcc -c -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -W -Wall -std=c99 -pedantic -Werror=implicit -Werror=missing-braces -Werror=return-type -Werror=trigraphs -Werror=pointer-arith -Werror=missing-prototypes -Werror=missing-declarations -Werror=comment -Werror=vla -DHAVE_CONFIG_H -I. -I. -o realpath.o realpath.c In file included from /usr/include/bits/sigcontext.h:27:0, from /usr/include/signal.h:306, from /usr/include/sys/param.h:28, from realpath.c:47: /usr/include/asm/sigcontext.h:17:23: error: expected identifier or '(' before '[' token unsigned long _unused[4]; ===
Created attachment 1132295 [details] nasm_change_unused.patch The attached patch is suggested correction
related scratch build passed without error. http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=3189786
Forwarded upstream: http://bugzilla.nasm.us/show_bug.cgi?id=3392339
Fixed in nasm-2.12-2.fc24 http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=386004
There is more to it than that. The symbol "_unused" is in application namespace, and this code leaks it. It should be changed to __unused or something else that isn't in application namespace.