NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-powerpc/43043: linking powerpc64 gdb fails with undefined references



>Number:         43043
>Category:       port-powerpc
>Synopsis:       linking powerpc64 gdb fails with undefined references
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    port-powerpc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 23 10:05:00 +0000 2010
>Originator:     Dennis Ferguson
>Release:        very recent 5.99.24
>Organization:
>Environment:
Darwin dennisbigmac.akit-ferguson.com 10.2.0 Darwin Kernel Version 10.2.0: Tue 
Nov  3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386

>Description:
Building a powerpc64 gdb fails while linking with
undefined references:

#      link  gdb/gdb
[...]
/Users/dennis/NetBSD/5.0-current/src/gnu/usr.bin/gdb6/libgdb/obj/libgdb.a(ppcnbsd-nat.o):(.toc+0x18):
 undefined reference to `nbsd_pid_to_exec_file'
/Users/dennis/NetBSD/5.0-current/src/gnu/usr.bin/gdb6/libgdb/obj/libgdb.a(ppcnbsd-nat.o):(.toc+0x58):
 undefined reference to `ppcnbsd_gregset'
/Users/dennis/NetBSD/5.0-current/src/gnu/usr.bin/gdb6/libgdb/obj/libgdb.a(ppcnbsd-nat.o):(.toc+0x78):
 undefined reference to `ppcnbsd_fpregset'
collect2: ld returned 1 exit status

*** Failed target:  gdb

The missing functions are present in the sources, in
src/gnu/dist/gdb6/gdb/ppcnbsd-tdep.c.

>How-To-Repeat:
Do a:

    MACHINE=macppc64 ./build.sh distribution
>Fix:
I believe the problem is that the generated build
configuration files in src/gnu/usr.bin/gdb6/arch/powerpc64/
are out of date and need to be regenerated.  While
I apparently lack the right juju to follow the instructions
for doing this myself, I know that copying the more
recently made versions of config.h, defs.mk and init.c
from the powerpc/ directory into powerpc64/ made the
problem go away so I strongly suspect that making
new files the proper way will do so too. 



Home | Main Index | Thread Index | Old Index