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
Darwin 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

Building a powerpc64 gdb fails while linking with
undefined references:

#      link  gdb/gdb
 undefined reference to `nbsd_pid_to_exec_file'
 undefined reference to `ppcnbsd_gregset'
 undefined reference to `ppcnbsd_fpregset'
collect2: ld returned 1 exit status

*** Failed target:  gdb

The missing functions are present in the sources, in

Do a:

    MACHINE=macppc64 ./ distribution
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, 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