Creating a 13/STABLE chroot from source

From: Jonathan Chen <>
Date: Sun, 13 Jun 2021 08:35:32 +1200

I'm trying installkernel/installworld to create a chroot'd system,
using the output from a pre-built source tree. The following command
used to work with 12/STABLE, but it's now failing on 13/STABLE:

src,8:27am# make DESTDIR=/tmp/t installkernel installworld
make[1]: "/usr/obj/usr/src/amd64.amd64/" line 1:
Using cached toolchain metadata from build at
on Sun 30 May 2021 11:27:02 NZST
>>> Install check world
mkdir -p /tmp/install.kZJR36et
progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown cmp cp
date echo egrep find grep id install   ln make mkdir mtree mv pwd_mkdb
 rm sed services_mkdb sh sort strip sysctl test true uname wc  zic
tzsetup  makewhatis; do  if progpath=`env
which $prog`; then  echo $progpath;  else  echo "Required tool $prog
not found in PATH ($PATH)." >&2;  exit 1;  fi;  done);  if [ -z "" ] ;
then  libs=$(ldd -f "%o %p\n" -f "%o %p\n" $progs 2>/dev/null | sort
-u |  while read line; do  set -- $line;  if [ "$2 $3" != "not found"
]; then  echo $2;  else  echo "Required library $1 not found." >&2;
exit 1;  fi;  done);  fi;  cp $libs $progs /tmp/install.kZJR36et
Required library not found.
*** Error code 1

make[1]: stopped in /usr/src
*** Error code 1

make: stopped in /usr/src

Is there a new way to do this?

Jonathan Chen <>
Received on Sat Jun 12 2021 - 20:35:32 UTC

Original text of this message