Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Michael D. Crawford" <crawford@goingware.com>
To: gdb@sources.redhat.com
Subject: Trouble building Apple gdb on Linux
Date: Sat, 11 Dec 2004 21:44:00 -0000	[thread overview]
Message-ID: <41BB6B33.6050902@goingware.com> (raw)

Hi,

I'm building Apple's gdb-2.9.2 on Linux by following the instructions in "Useing 
non-Darwin systems as Darwin/Mac OS X kernel debugging hosts":

http://pknet.com/~joe/apple-cross-gdb.html

I'm trying to build Apple's gdb on my Debian sarge PC so I can debug a kernel 
extension (device driver) on my Mac OS X Mac over ethernet.  I need to do this 
because the ethernet port is busted on my other Mac and I'm not able to get it 
repaired right away.

The page advises one not to run ./configure in the main source directory, but to 
configure and build each library one at a time and then to build gdb.  This goes 
well most of the way but when building gdb, from Apple's gdb-292 source with 
some patches applied, I get these errors:

gcc -c -g -O2 -DTARGET_POWERPC -I./macosx   -I. -I. -I./config 
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode 
-I./../readline/.. -I../bfd -I./../bfd  -I./../include -I../intl -I./../intl 
-DMI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses 
-Wpointer-arith -Wuninitialized  dwarf2read.c
dwarf2read.c: In function `dwarf2_attach_fields_to_type':
dwarf2read.c:2225: error: assignment of read-only member `private_field_bits'
dwarf2read.c:2229: error: assignment of read-only member `protected_field_bits'
dwarf2read.c:2233: error: assignment of read-only member `ignore_field_bits'
dwarf2read.c:2246: error: assignment of read-only member `virtual_field_bits'
dwarf2read.c:2248: error: assignment of read-only member `n_baseclasses'
dwarf2read.c: In function `dwarf2_attach_fn_fields_to_type':
dwarf2read.c:2445: error: assignment of read-only member `fn_fieldlists'
dwarf2read.c:2463: error: assignment of read-only member `nfn_fields'
dwarf2read.c:2464: error: assignment of read-only member `nfn_fields_total'
make: *** [dwarf2read.o] Error 1

Looking at the source in question, it looks like it's doing something complex 
via a bunch of macros that I don't understand.

Can anyone help me out here?

I will go ahead and try to figure it out but I thought someone might be able to 
help.

Thanks!

Michael D. Crawford
crawford@goingware.com

    Read "GoingWare's Bag of Programming Tricks" at:
         http://www.goingware.com/tips/


             reply	other threads:[~2004-12-11 21:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-11 21:44 Michael D. Crawford [this message]
2004-12-11 22:17 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41BB6B33.6050902@goingware.com \
    --to=crawford@goingware.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox