[MacPorts] #32161: gdb @7.3 fails to build on Lion/XCode 4.2
MacPorts
noreply at macports.org
Sun Nov 20 14:33:17 PST 2011
#32161: gdb @7.3 fails to build on Lion/XCode 4.2
----------------------------------+-----------------------------------------
Reporter: gunnlaugur@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: | Port: gdb
----------------------------------+-----------------------------------------
Salient bit from `main.log`:
{{{
:info:build bfdio.c:580:3: error: argument to 'sizeof' in
'__builtin___memset_chk' call is the same expression as the destination;
did you mean to dereference it? [-Werror,-Wsizeof-pointer-memaccess]
:info:build memset (statbuf, 0, sizeof (statbuf));
:info:build ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build /usr/include/secure/_string.h:77:41: note: instantiated from:
:info:build ? __builtin___memset_chk (dest, val, len, __darwin_obsz0
(dest)) \
:info:build ^
:info:build bfdio.c:580:31: note: instantiated from:
:info:build memset (statbuf, 0, sizeof (statbuf));
:info:build ~~~~~~~ ^~~~~~~
}}}
The compiler has a point there, and upstream has patched this 6 months
ago:
http://sourceware.org/cgi-
bin/cvsweb.cgi/src/bfd/bfdio.c.diff?r1=1.27&r2=1.28&cvsroot=src
--
Ticket URL: <https://trac.macports.org/ticket/32161>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list