Subject: toolchain/20253: libnbcompat built in wrong directory
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mjl@emsi.priv.at>
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
>Closed-Date:
>Last-Modified:
>Originator: Martin J. Laubach
>Release: NetBSD 1.6N
>Organization:
>Environment:
System: NetBSD celery.emsi.priv.at 1.6N NetBSD 1.6N (CELERY) #13: Sun Feb 2 14:38:14 CET 2003 mjl@celery.emsi.priv.at:/home/users/mjl/netbsd/src/sys/arch/macppc/compile/CELERY macppc
Architecture: powerpc
Machine: macppc
>Description:
When trying to build using
./build.sh -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)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: