Build failure with probe patch

Steve Ellcey sellcey@imgtec.com
Wed Feb 18 17:51:00 GMT 2015


Is anyone else seeing this error when building the top-of-tree gdb:


cc1: warnings being treated as errors
/scratch/sellcey/gdb-bug/src/gdb/gdb/dtrace-probe.c: In function 'dtrace_get_probes':
/scratch/sellcey/gdb-bug/src/gdb/gdb/dtrace-probe.c:624: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [dtrace-probe.o] Error 1


I get this when building gdb on a CentOS 5 system with GCC 4.1.2 but I do not
see it when building on a Ubuntu 12.04 system with GCC 4.6.3.  I am not sure
if this is due to the old GCC or if it is a legitimate error.

Steve Ellcey
sellcey@imgtec.com



More information about the Gdb-patches mailing list