Bug 14405 - Doesn't build on OS X Leopard
Summary: Doesn't build on OS X Leopard
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL: http://sourceware.org/ml/gdb-patches/...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-26 02:39 UTC by Samuel Bronson
Modified: 2013-01-02 21:08 UTC (History)
5 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
gdb-7.5.1-darwin9.patch (610 bytes, patch)
2012-12-12 12:22 UTC, Fabian Groffen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bronson 2012-07-26 02:39:22 UTC
This is what I'm getting at the moment:

-*- mode: compilation; default-directory: "~/hacking/gdb/build/gdb/" -*-
Compilation started at Wed Jul 25 22:32:06

make -wk WERROR_CFLAGS=''
make: Entering directory `/Users/sam/hacking/gdb/build/gdb'
make[1]: Entering directory `/Users/sam/hacking/gdb/build/gdb'
make[2]: Entering directory `/Users/sam/hacking/gdb/build/gdb/build-gnulib'
make[3]: Entering directory `/Users/sam/hacking/gdb/build/gdb/build-gnulib'
make[4]: Entering directory `/Users/sam/hacking/gdb/build/gdb/build-gnulib/import'
make  all-recursive
make[5]: Entering directory `/Users/sam/hacking/gdb/build/gdb/build-gnulib/import'
make[6]: Entering directory `/Users/sam/hacking/gdb/build/gdb/build-gnulib/import'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/Users/sam/hacking/gdb/build/gdb/build-gnulib/import'
make[5]: Leaving directory `/Users/sam/hacking/gdb/build/gdb/build-gnulib/import'
make[4]: Leaving directory `/Users/sam/hacking/gdb/build/gdb/build-gnulib/import'
make[3]: Leaving directory `/Users/sam/hacking/gdb/build/gdb/build-gnulib'
make[2]: Leaving directory `/Users/sam/hacking/gdb/build/gdb/build-gnulib'
make[1]: Leaving directory `/Users/sam/hacking/gdb/build/gdb'
/usr/local/bin/ccache gcc-4.2 -g -O2   -I. -I../../gdb -I../../gdb/common -I../../gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../gdb/../include/opcode -I../../gdb/../opcodes/.. -I../../gdb/../readline/.. -I../bfd -I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber -I../../gdb/../libdecnumber -I./../intl -I../../gdb/gnulib/import -Ibuild-gnulib/import   -DTUI=1  -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement  -c -o darwin-nat.o -MT darwin-nat.o -MMD -MP -MF .deps/darwin-nat.Tpo ../../gdb/darwin-nat.c
../../gdb/darwin-nat.c: In function 'darwin_read_dyld_info':
../../gdb/darwin-nat.c:1824: error: storage size of 'task_dyld_info' isn't known
../../gdb/darwin-nat.c:1825: error: 'TASK_DYLD_INFO_COUNT' undeclared (first use in this function)
../../gdb/darwin-nat.c:1825: error: (Each undeclared identifier is reported only once
../../gdb/darwin-nat.c:1825: error: for each function it appears in.)
../../gdb/darwin-nat.c:1832: error: 'TASK_DYLD_INFO' undeclared (first use in this function)
make: *** [darwin-nat.o] Error 1
rm -f version.c-tmp version.c
echo '#include "version.h"' >> version.c-tmp
echo 'const char version[] = "'"`sed q ../../gdb/version.in`"'";' >> version.c-tmp
echo 'const char host_name[] = "i386-apple-darwin9.8.0";' >> version.c-tmp
echo 'const char target_name[] = "i386-apple-darwin9.8.0";' >> version.c-tmp
mv version.c-tmp version.c
/usr/local/bin/ccache gcc-4.2 -g -O2   -I. -I../../gdb -I../../gdb/common -I../../gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../gdb/../include/opcode -I../../gdb/../opcodes/.. -I../../gdb/../readline/.. -I../bfd -I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber -I../../gdb/../libdecnumber -I./../intl -I../../gdb/gnulib/import -Ibuild-gnulib/import   -DTUI=1  -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement  -c -o version.o -MT version.o -MMD -MP -MF .deps/version.Tpo version.c
make: Target `all' not remade because of errors.
make: Leaving directory `/Users/sam/hacking/gdb/build/gdb'

Compilation exited abnormally with code 2 at Wed Jul 25 22:32:08
Comment 1 Fabian Groffen 2012-12-12 11:30:38 UTC
Fix for this was posted by Iain Sandoe here:
http://sourceware.org/ml/gdb-patches/2011-12/msg00890.html

I see the problem in 7.5.1
Comment 2 Fabian Groffen 2012-12-12 12:22:21 UTC
Created attachment 6779 [details]
gdb-7.5.1-darwin9.patch

For clarity, here is the (extracted) patch that fixes the issue.
Comment 3 Jan Kratochvil 2012-12-24 03:51:24 UTC
Patches should be posted to gdb-patches mailing list, they won't get processed here.
Comment 4 Mike Frysinger 2012-12-24 03:58:16 UTC
(In reply to comment #3)

they were posted to the mailing list back in Dec 2011
Comment 5 Pedro Alves 2013-01-02 18:26:41 UTC
They should be reposted then, if still necessary.
Comment 6 Fabian Groffen 2013-01-02 18:40:58 UTC
done
Comment 8 Mike Frysinger 2013-01-02 19:04:30 UTC
(In reply to comment #5)

i've also already done that.  it's waiting for a reply.
http://sourceware.org/ml/gdb-patches/2012-12/msg00804.html
Comment 9 Mike Frysinger 2013-01-02 21:08:16 UTC
pushed to HEAD (so it'll be in gdb-7.6)