This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug build/11359] New: Build fails: dereferencing pointer '__u' does break strict-aliasing rules
- From: "far at illumenos dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 8 Mar 2010 22:06:15 -0000
- Subject: [Bug build/11359] New: Build fails: dereferencing pointer '__u' does break strict-aliasing rules
- Reply-to: sourceware-bugzilla at sourceware dot org
Building GDB 7.0.1 or 7.0.0 with GCC 4.4.3 fails. I get the following error during the build of bfd. As
a simple workaround I removed the -O2 option from bfd/Makefile.
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DTRAD_CORE -I. -I. -
I./../include -DBINDIR='"/usr/bin"' -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g
-O2 -MT archive.lo -MD -MP -MF .deps/archive.Tpo -c -o archive.lo archive.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -DTRAD_CORE -I. -I. -I./../include -DBINDIR=\"/usr/bin\"
-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT archive.lo -MD -MP -MF
.deps/archive.Tpo -c archive.c -o archive.o
cc1: warnings being treated as errors
archive.c: In function '_bfd_archive_bsd_update_armap_timestamp':
archive.c:2357: error: dereferencing pointer '__u' does break strict-aliasing rules
archive.c:2357: note: initialized from here
archive.c:2357: error: dereferencing pointer '__u' does break strict-aliasing rules
archive.c:2357: note: initialized from here
archive.c:2357: error: dereferencing pointer '__u' does break strict-aliasing rules
archive.c:2357: note: initialized from here
make[4]: *** [archive.lo] Error 1
--
Summary: Build fails: dereferencing pointer '__u' does break
strict-aliasing rules
Product: gdb
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: build
AssignedTo: unassigned at sourceware dot org
ReportedBy: far at illumenos dot com
CC: gdb-prs at sourceware dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=11359
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.