Subject: gdb vs. libsim in current (macppc)
To: 'port-macppc@netbsd.org' <port-macppc@netbsd.org>
From: Cliff Neighbors <cliff@allegronetworks.com>
List: port-macppc
Date: 01/29/2002 13:49:19
attempting to build macppc release from current sources yesterday
I ran into problems linking gdb while building the toolchain:
libsim.a was not found.    Here's some paste from my build log:


/e/home/cliff/netbsd/current/build/macppc/tools/bin/powerpc--netbsd-gcc   -o
gdb
 -nostdlib  /e/home/cliff/netbsd/current/build/macppc/dest/usr/lib/crt0.o
/e/hom
e/cliff/netbsd/current/build/macppc/dest/usr/lib/crtbegin.o version.o
blockframe
.o breakpoint.o findvar.o stack.o thread.o source.o values.o eval.o valops.o
val
arith.o valprint.o printcmd.o symtab.o symfile.o symmisc.o infcmd.o infrun.o
com
mand.o expprint.o environ.o event-loop.o event-top.o inf-loop.o gdbarch.o
arch-u
tils.o gdbtypes.o copying.o rs6000-tdep.o solib.o ser-tcp.o ser-unix.o
ser-pipe.
o infptrace.o inftarg.o fork-child.o corelow.o kcore-nbsd.o ppcnbsd-nat.o
remote
.o dcache.o remote-utils.o tracepoint.o ax-general.o ax-gdb.o mem-break.o
target
.o parse.o language.o c-exp.tab.o jv-exp.tab.o f-exp.tab.o m2-exp.tab.o
buildsym
.o kod.o kod-cisco.o gdb-events.o exec.o bcache.o objfiles.o minsyms.o
maint.o d
emangle.o dbxread.o coffread.o elfread.o dwarfread.o dwarf2read.o mipsread.o
sta
bsread.o corefile.o c-lang.o ch-exp.o ch-lang.o f-lang.o ui-out.o cli-out.o
varo
bj.o wrapper.o jv-lang.o jv-valprint.o jv-typeprint.o m2-lang.o scm-exp.o
scm-la
ng.o scm-valprint.o complaints.o typeprint.o c-typeprint.o ch-typeprint.o
f-type
print.o m2-typeprint.o c-valprint.o cp-valprint.o ch-valprint.o f-valprint.o
m2-
valprint.o nlmread.o serial.o mdebugread.o os9kread.o top.o utils.o
ui-file.o tu
i-file.o annotate.o inflow.o gnu-regex.o init.o readline.o vi_mode.o
funmap.o ke
ymaps.o parens.o search.o rltty.o complete.o bind.o isearch.o display.o
signals.
o util.o kill.o undo.o macro.o input.o callback.o terminal.o nls.o history.o
his
texpand.o histfile.o histsearch.o shell.o tilde.o remote-sim.o main.o
-ltermcap 
-lintl -lm -lkvm
-L/e/home/cliff/netbsd/current/build/macppc/obj/gnu/lib/libbfd 
-lbfd -L/e/home/cliff/netbsd/current/build/macppc/obj/gnu/lib/libiberty
-liberty
 -L/e/home/cliff/netbsd/current/src/gnu/usr.bin/sim/ppc -lsim
-L/e/home/cliff/ne
tbsd/current/build/macppc/dest/usr/lib  -lgcc -lc -lgcc
/e/home/cliff/netbsd/cur
rent/build/macppc/dest/usr/lib/crtend.o
/e/home/cliff/netbsd/current/build/macppc/tools/powerpc--netbsd/bin/ld:
cannot f
ind -lsim
collect2: ld returned 1 exit status
*** Error code 1


either we're looking in the wrong place (.../src/gnu/usr.bin/sim/ppc ??)
or libsim.a does not get built (not in my OBJDIR anywhere...).

FWIW I was cross-building from i386 (1.5Y) using the new "build.sh" script.
Cross build worked fine on same sources a couple days ago building sparc64,
so I think the problem is specific to macppc (or powerpc in general?).
also USE_NEW_TOOLCHAIN=yes

hints and suggestions would be appreciated.

thanks,
	-cliff-

---
cliff neighbors
allegro networks, inc.
cliff@allegronetworks.com
408-281-5532
---