Failed to build new tree / make: don't know how to make distrib-dirs. Stop

Hello,

I tried to upgrade FreeBSD 13.2-RELEASE to FreeBSD 15.0-CURRENT for armv7. I've got some errors. I would like to know how to fix them. Thanks.

Code:
root@freebsd:/usr/freebsd-src # make KERNCONF=GENERIC TARGET=arm TARGET_ARCH=armv7 -DWITHOUT_CLEAN -DNO_KERNELCLEAN buildworld buildkernel

root@freebsd:/usr/freebsd-src # etcupdate -p
Failed to build new tree.

root@freebsd:/usr/freebsd-src # make installworld
no errors.

root@freebsd:/usr/freebsd-src # etcupdate -B
Failed to build new tree.

root@freebsd:/usr/freebsd-src # etcupdate resolve
no errors

root@freebsd:/usr/freebsd-src # nano /var/db/etcupdate/log

>>> update command: rerun= tarball= preworld=
>>> Building tree at /var/db/etcupdate/etcupdate-qcKPX9R with make  -DNO_FILEMON
make: don't know how to make distrib-dirs. Stop

make: stopped in /usr/src
 
Hello,

I also had this error when tried to do etcupdate from a custom source directory (i.e. /usr/src/releng/14.1).
After some search have found the solution from etcupdate(8):
Code:
-s source      Specify an alternate source tree to use when building or
               extracting a “current” tree.  The default source tree is
               /usr/src.
Hope it would help you too.
 
Back
Top