Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1313841

Summary: nasm 2.12 build failure on PowerPC
Product: [Fedora] Fedora Reporter: Michel Normand <normand>
Component: nasmAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: hpa, java-sig-commits, mizdebsk, msimacek, msrb, pbrobinson
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Unspecified   
Whiteboard:
Fixed In Version: nasm-2.12-2.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-03 07:39:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1051573    
Attachments:
Description Flags
nasm_change_unused.patch none

Description Michel Normand 2016-03-02 12:35:50 UTC
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];
===

Comment 1 Michel Normand 2016-03-02 12:37:40 UTC
Created attachment 1132295 [details]
nasm_change_unused.patch

The attached patch is suggested correction

Comment 2 Michel Normand 2016-03-02 13:27:37 UTC
related scratch build passed without error.
http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=3189786

Comment 3 Mikolaj Izdebski 2016-03-03 07:23:09 UTC
Forwarded upstream: http://bugzilla.nasm.us/show_bug.cgi?id=3392339

Comment 4 Mikolaj Izdebski 2016-03-03 07:39:36 UTC
Fixed in nasm-2.12-2.fc24
http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=386004

Comment 5 H. Peter Anvin 2016-03-03 20:26:26 UTC
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.