[MacPorts] #32161: gdb @7.3 fails to build on Lion/XCode 4.2
#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
#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 ----------------------------------+----------------------------------------- Comment(by gunnlaugur@…): Patching to use `*statbuf` does get past this, but hits another issue. Seems like `gdb` is not ready for `clang`; patching portfile to build with `llvm-gcc-4.2` gets `gdb` to build; will attach. -- Ticket URL: <https://trac.macports.org/ticket/32161#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32161: gdb @7.3 fails to build on Lion/XCode 4.2 ----------------------------------+----------------------------------------- Reporter: gunnlaugur@… | Owner: dweber@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: gdb ----------------------------------+----------------------------------------- Changes (by ryandesign@…): * cc: dweber@… (removed) * owner: macports-tickets@… => dweber@… Comment: If upstream has already fixed this 6 months ago, then we should update gdb to version 7.3.1 (released 2 months ago). -- Ticket URL: <https://trac.macports.org/ticket/32161#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32161: gdb @7.3 fails to build on Lion/XCode 4.2 ----------------------------------+----------------------------------------- Reporter: gunnlaugur@… | Owner: dweber@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: gdb ----------------------------------+----------------------------------------- Comment(by gunnlaugur@…): We probably should, yes, but it seems they didn't put this fix on the 7.3.x branch; I tried updating the portfile to 7.3.1 but it still hit this error (and more, when I patched it) so I didn't post the portfile patch. -- Ticket URL: <https://trac.macports.org/ticket/32161#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32161: gdb @7.3 fails to build with clang -----------------------------------+---------------------------------------- Reporter: gunnlaugur@… | Owner: dweber@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang haspatch Port: gdb | -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * keywords: => clang haspatch * status: new => closed * resolution: => fixed * cc: ryandesign@… (added) Comment: Replying to [comment:1 gunnlaugur@…]:
patching portfile to build with `llvm-gcc-4.2` gets `gdb` to build; will attach.
Thanks. r88366. -- Ticket URL: <https://trac.macports.org/ticket/32161#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32161: gdb @7.3 fails to build with clang -----------------------------------+---------------------------------------- Reporter: gunnlaugur@… | Owner: dweber@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: clang haspatch Port: gdb | -----------------------------------+---------------------------------------- Changes (by jeremyhu@…): * status: closed => reopened * resolution: fixed => Comment: This is an obvious bug in the project (even when built with gcc). -- Ticket URL: <https://trac.macports.org/ticket/32161#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32161: gdb @7.3 fails to build with clang -----------------------------------+---------------------------------------- Reporter: gunnlaugur@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: clang haspatch Port: gdb | -----------------------------------+---------------------------------------- Changes (by jeremyhu@…): * owner: dweber@… => jeremyhu@… * status: reopened => new -- Ticket URL: <https://trac.macports.org/ticket/32161#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32161: gdb @7.3 fails to build with clang -----------------------------------+---------------------------------------- Reporter: gunnlaugur@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: clang haspatch Port: gdb | -----------------------------------+---------------------------------------- Changes (by jeremyhu@…): * status: new => closed * resolution: => fixed Comment: r91326 -- Ticket URL: <https://trac.macports.org/ticket/32161#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts