Subject: toolchain/20253: libnbcompat built in wrong directory
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/08/2003 18:05:15
>Number:         20253
>Category:       toolchain
>Synopsis:       libnbcompat built in wrong directory
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 08 09:06:01 PST 2003
>Originator:     Martin J. Laubach
>Release:        NetBSD 1.6N
System: NetBSD 1.6N NetBSD 1.6N (CELERY) #13: Sun Feb 2 14:38:14 CET 2003 macppc
Architecture: powerpc
Machine: macppc

  When trying to build using

./ -T ~/local/netbsd/tools -D ~/local/netbsd/snap.macppc \
	-R ~/local/netbsd/release -M ~/local/netbsd/obj.macppc   \
	-r tools

  this stops at building binstall:

mv getid.lo.o getid.lo
cc -O -I/home/users/mjl/local/netbsd/obj.macppc/amd/cactus/home/users/mjl/netbsd/src/tools/compat -I/home/users/mjl/local/netbsd/obj.macppc/amd/cactus/home/users/mjl/netbsd/src/tools/compat/include  -I/amd/cactus/home/users/mjl/netbsd/src/tools/binstall/../compat -DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  -I/amd/cactus/home/users/mjl/netbsd/src/bin/ls -I/amd/cactus/home/users/mjl/netbsd/src/usr.sbin/mtree   -o xinstall xinstall.lo getid.lo -L/home/users/mjl/local/netbsd/obj.macppc/amd/cactus/home/users/mjl/netbsd/src/tools/compat -lnbcompat -lz
ld: cannot find -lnbcompat
*** Error code 1

  A few lines earlier, libcompat is built:

ar cq /amd/cactus/home/users/mjl/netbsd/src/tools/compat/libnbcompat.a basename.lo dirname.lo [...] rec_close.lo rec_delete.lo rec_get.lo rec_open.lo rec_put.lo rec_search.lo rec_seq.lo rec_utils.lo

  So it seems it is installed in the wrong directory. Indeed, doing a

cp /amd/cactus/home/users/mjl/netbsd/src/tools/compat/libnbcompat.a /home/users/mjl/local/netbsd/obj.macppc/amd/cactus/home/users/mjl/netbsd/src/tools/compat

  lets the build continue.

  So it seems that using -M is confusing the build somehow... 

  (Note that ~ == /home/users/mjl == /amd/cactus/home/users/mjl, if
that matters somehow)