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 1315750

Summary: FTBFS with gcc-6.0.0-0.15.fc24
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: jakub, nickc
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-17 21:10:47 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: 467765    

Description Dan Horák 2016-03-08 14:09:55 UTC
current binutils fail to build with gcc-6.0.0-0.15.fc24, please see "strict aliasing" warnings/errors in the build.log

koji scratch build - http://koji.fedoraproject.org/koji/taskinfo?taskID=13274927

libtool: compile:  x86_64-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I. -I./../include -DHAVE_x86_64_elf64_vec -DHAVE_i386_elf32_vec -DHAVE_iamcu_elf32_vec -DHAVE_x86_64_elf32_vec -DHAVE_i386_aout_linux_vec -DHAVE_i386_pei_vec -DHAVE_x86_64_pei_vec -DHAVE_l1om_elf64_vec -DHAVE_k1om_elf64_vec -DHAVE_elf64_le_vec -DHAVE_elf64_be_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec -DHAVE_plugin_vec -DBINDIR=\"/usr/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -I./../zlib -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 -mtune=generic -c aout32.c  -fPIC -DPIC -o .libs/aout32.o
In file included from aout32.c:24:0:
aoutx.h: In function 'aout_32_write_syms':
aoutx.h:1877:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
    H_PUT_16 (abfd, aout_symbol (g)->desc,  nsp.e_desc);
    ^~~~~~~~
aoutx.h:1878:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
    H_PUT_8  (abfd, aout_symbol (g)->other, nsp.e_other);
    ^~~~~~~
aoutx.h:1879:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
    H_PUT_8  (abfd, aout_symbol (g)->type,  nsp.e_type);
    ^~~~~~~
aoutx.h: In function 'aout_32_get_symbol_info':
aoutx.h:2510:7: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
       int type_code = aout_symbol (symbol)->type & 0xff;
       ^~~
aoutx.h:2521:7: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
       ret->stab_other = (unsigned) (aout_symbol (symbol)->other & 0xff);
       ^~~
aoutx.h:2522:7: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
       ret->stab_desc = (unsigned) (aout_symbol (symbol)->desc & 0xffff);
       ^~~
aoutx.h: In function 'aout_32_print_symbol':
aoutx.h:2543:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
         (unsigned) (aout_symbol (symbol)->desc & 0xffff),
         ^
aoutx.h:2544:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
         (unsigned) (aout_symbol (symbol)->other & 0xff),
         ^
aoutx.h:2545:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
         (unsigned) (aout_symbol (symbol)->type));
         ^
aoutx.h:2555:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
    (unsigned) (aout_symbol (symbol)->desc & 0xffff),
    ^
aoutx.h:2556:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
    (unsigned) (aout_symbol (symbol)->other & 0xff),
    ^
aoutx.h:2557:4: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
    (unsigned) (aout_symbol (symbol)->type & 0xff));
    ^
...

and more

See also bug 1315191 (gdb) with the same problem.


Version-Release number of selected component (if applicable):
binutils-2.26-14.fc25

Comment 1 Dan Horák 2016-03-08 14:12:47 UTC
And before I finished this report, the gdb one got closed with a fix :-)

Comment 2 Dan Horák 2016-03-09 09:26:15 UTC
very likely https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70143 as it coincides with bug 1315191 (and others)

Comment 3 Dan Horák 2016-03-17 21:10:47 UTC
no more an issue with gcc-6.0.0-0.16.fc24