Subject: /usr/bin/bzip2 won't build with make -j
To: None <current-users@netbsd.org>
From: Dave Huang <khym@azeotrope.org>
List: current-users
Date: 06/08/2001 00:50:47
An attempt to make build with NBUILDJOBS set to 2 died while building
bzip2:

yerfable /usr/src.local/usr.bin/bzip2# make -j2 dependall
--- .depend ---
mkdep -a /usr/src.local/usr.bin/bzip2/../../dist/bzip2/bzip2.c
--- afterdepend ---
--- dependall ---
--- bzip2.cat1 ---
--- bzip2.o ---
nroff -Tascii -mandoc
/usr/src.local/usr.bin/bzip2/../../dist/bzip2/bzip2.1 > bzip2.cat1
cc -O2 -pipe -mcpu=ev56 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-uninitialized -Werror   -c
/usr/src.local/usr.bin/bzip2/../../dist/bzip2/bzip2.c
--- bzip2 ---
cc  -static -o bzip2 bzip2.o -L--- print-objdir ---
/usr/src.local/lib/libbz2/obj.alpha -lbz2
cc: print-objdir: No such file or directory
*** Error code 1
1 error

make: stopped in /usr/src.local/usr.bin/bzip2
*** Error code 2
1 error

make: stopped in /usr/src.local/usr.bin/bzip2

Looks like the
LDDIR!=    cd ${.CURDIR}/../../lib/libbz2 ; make print-objdir

line in the Makefile is the problem... the "make print-objdir" prints
"--- print-objdir ---" as the first line, which gets assigned to LDDIR.
-- 
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 25 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++