Bug 254893

Summary: 12.2-RELEASE-p6 make installworld DESTDIR=/path/jail fails
Product: Base System Reporter: anttijuhani.nikkila
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Many People    
Priority: ---    
Version: 12.2-RELEASE   
Hardware: amd64   
OS: Any   

Description anttijuhani.nikkila 2021-04-08 19:43:40 UTC
I upgraded the source tree from 12.2-RELEASE-p4 to 12.2-RELEASE-p6
(At revision 369571)

Next, I am trying to update a jail:
cd /usr/src
make -j10 buildworld
make installworld DESTDIR=/path/jail

After the "make installworld" I get the following error:

env NEWVERS_SH=/usr/src/sys/conf/newvers.sh PARAMFILE=/usr/src/sys/sys/param.h SYSDIR=/usr/src/sys  sh /usr/src/include/mk-osreldate.sh
/tmp/install.NV4C5Rqp/sh: env: not found
*** Error code 127

Stop.
make[4]: stopped in /usr/src/include
*** Error code 1
*** Error code 1
*** Error code 1

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

----------------

I have used this procedure to install and update a jail for a long time and newer had such problem. Is this possibly a bug?

Antti
Comment 1 anttijuhani.nikkila 2021-04-08 19:55:43 UTC
(In reply to anttijuhani.nikkila from comment #0)
output of uname -a
FreeBSD nasu 12.2-RELEASE-p6 FreeBSD 12.2-RELEASE-p6 GENERIC  amd64

output of freebsd-version
12.2-RELEASE-p6
Comment 2 anttijuhani.nikkila 2021-04-09 04:47:02 UTC
This was my mistake. The /usr/obj was not properly cleaned before the new build.

This is now solved.