Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Aug 2021 14:35:22 +0200
From:      Wolfram Schneider <wosch@freebsd.org>
To:        current@freebsd.org, Wolfram Schneider <wosch@freebsd.org>
Subject:   Re: git: 99feb137f5f6 - main - `make buildworld' with time logging for each stage
Message-ID:  <CAMWY7CBBBaBnn_aQAQyokw4hE=N=v7tUTf3jZXm_vbWiUPd_1w@mail.gmail.com>
In-Reply-To: <YQaTCIIgmA7tU%2BiS@albert.catwhisker.org>
References:  <YQaTCIIgmA7tU%2BiS@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi David,

Thanks for the investigation. I will prepare a fix soon.

BTW, should we care about the error message

"sh: pkg: not found" ?

-Wolfram



On Sun, 1 Aug 2021 at 14:26, David Wolfskill <david@catwhisker.org> wrote:
>
> I believe that src/Makefile.inc1 needs a tweak to add "time" to the list
> of "Required install tools to be saved in a scratch dir for safety" --
> something like:
>
> diff --git a/Makefile.inc1 b/Makefile.inc1
> index 3d54a088d070..213b32a97ed3 100644
> --- a/Makefile.inc1
> +++ b/Makefile.inc1
> @@ -1300,7 +1300,7 @@ _sysctl=3Dsysctl
>  ITOOLS=3D        [ awk cap_mkdb cat chflags chmod chown cmp cp \
>         date echo egrep find grep id install ${_install-info} \
>         ln make mkdir mtree mv pwd_mkdb \
> -       rm sed services_mkdb sh sort strip ${_sysctl} test true uname wc =
\
> +       rm sed services_mkdb sh sort strip ${_sysctl} test time true unam=
e wc \
>         ${_zoneinfo} ${LOCAL_ITOOLS}
>
>  # Needed for share/man
>
>
> Because when I tried to update from main-n248391-f7f76c200a8c to
> main-n248404-60fb9e10c74c, I saw:
>
> ...
> =3D=3D=3D> etc (install)
> =3D=3D=3D> etc/sendmail (install)
> cd /usr/src/share/man; make makedb
> makewhatis /usr/share/man
> makewhatis /usr/share/openssl/man
> cd /usr/src; make -f Makefile.inc1 install32
> sh: pkg: not found
> cd /usr/src/lib; time env MACHINE_CPU=3D"i686 mmx sse sse2" MACHINE=3Di38=
6 MACHINE_ARCH=3Di386 PATH=3D/common/S4/obj/usr/src/amd64.amd64/tmp/bin:/co=
mmon/S4/obj/usr/src/amd64.amd64/tmp/usr/sbin:/common/S4/obj/usr/src/amd64.a=
md64/tmp/usr/bin:/common/S4/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/co=
mmon/S4/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/common/S4/obj/usr/src/a=
md64.amd64/tmp/legacy/bin:/common/S4/obj/usr/src/amd64.amd64/tmp/legacy/usr=
/libexec::/common/S4/obj/usr/src/amd64.amd64/tmp/bin:/common/S4/obj/usr/src=
/amd64.amd64/tmp/usr/sbin:/common/S4/obj/usr/src/amd64.amd64/tmp/usr/bin:/c=
ommon/S4/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/common/S4/obj/usr/src=
/amd64.amd64/tmp/legacy/usr/bin:/common/S4/obj/usr/src/amd64.amd64/tmp/lega=
cy/bin:/common/S4/obj/usr/src/amd64.amd64/tmp/legacy/usr/libexec::/tmp/inst=
all.Z8rMzNyp SYSROOT=3D/common/S4/obj/usr/src/amd64.amd64/obj-lib32/tmp LIB=
DIR=3D/usr/lib32 SHLIBDIR=3D/usr/lib32 DTRACE=3D"dtrace" make AS=3D"as --32=
" LD=3D"ld -m elf_i386_fbsd" NM=3D"nm" OBJCOPY=3D"objcopy" -DCOMPAT_32BIT C=
C=3D"cc -target x86_64-unknown-freebsd14.0 --sysroot=3D/common/S4/obj/usr/s=
rc/amd64.amd64/tmp -B/common/S4/obj/usr/src/amd64.amd64/tmp/usr/bin -DCOMPA=
T_32BIT -march=3Di686 -mmmx -msse -msse2 -target x86_64-unknown-freebsd14.0=
 -m32  --sysroot=3D/common/S4/obj/usr/src/amd64.amd64/obj-lib32/tmp  -B/com=
mon/S4/obj/usr/src/amd64.amd64/tmp/usr/bin -B/common/S4/obj/usr/src/amd64.a=
md64/obj-lib32/tmp/usr/lib32" CXX=3D"c++  -target x86_64-unknown-freebsd14.=
0 --sysroot=3D/common/S4/obj/usr/src/amd64.amd64/tmp -B/common/S4/obj/usr/s=
rc/amd64.amd64/tmp/usr/bin  -DCOMPAT_32BIT -march=3Di686 -mmmx -msse -msse2=
 -target x86_64-unknown-freebsd14.0 -m32  --sysroot=3D/common/S4/obj/usr/sr=
c/amd64.amd64/obj-lib32/tmp  -B/common/S4/obj/usr/src/amd64.amd64/tmp/usr/b=
in -B/common/S4/obj/usr/src/amd64.amd64/obj-lib32/tmp/usr/lib32" CPP=3D"cpp=
 -target x86_64-unknown-freebsd14.0 --sysroot=3D/common/S4/obj/usr/src/amd6=
4.amd64/tmp -B/common/S4/obj/usr/src/amd64.amd64/tmp/usr/bin -DCOMPAT_32BIT=
 -march=3Di686 -mmmx -msse -msse2 -target x86_64-unknown-freebsd14.0 -m32  =
--sysroot=3D/common/S4/obj/usr/src/amd64.amd64/obj-lib32/tmp  -B/common/S4/=
obj/usr/src/amd64.amd64/tmp/usr/bin -B/common/S4/obj/usr/src/amd64.amd64/ob=
j-lib32/tmp/usr/lib32" -DNO_CPU_CFLAGS MK_CTF=3Dno -DNO_LINT MK_TESTS=3Dno =
OBJTOP=3D/common/S4/obj/usr/src/amd64.amd64/obj-lib32 OBJROOT=3D'${OBJTOP}/=
' MAKEOBJDIRPREFIX=3D MK_MAN=3Dno MK_HTML=3Dno    -DLIBRARIES_ONLY install
> /tmp/install.Z8rMzNyp/sh: time: not found
> *** Error code 127
>
> Stop.
> make[3]: stopped in /usr/src
> *** Error code 1
>
> Stop.
> make[2]: stopped in /usr/src
>       149.85 real        65.62 user        35.05 sys
> *** Error code 1
>
> Stop.
> make[1]: stopped in /usr/src
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src
>
> Command exit status: 1
> Script done on Sun Aug  1 05:17:29 2021
>
>
> Making the above change, then re-running the "make installworld" has work=
ed.
>
> Peace,
> david
> --
> David H. Wolfskill                              david@catwhisker.org
> Life is not intended to be a zero-sum game.
>
> See https://www.catwhisker.org/~david/publickey.gpg for my public key.



--=20
Wolfram Schneider <wosch@FreeBSD.org> https://wolfram.schneider.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMWY7CBBBaBnn_aQAQyokw4hE=N=v7tUTf3jZXm_vbWiUPd_1w>