Re: Stuck on ERROR-tried-to-rebuild-during-make-install- How to move past?

From: parv/FreeBSD <parv.0zero9+freebsd_at_gmail.com>
Date: Sat, 24 Jun 2023 09:06:24 UTC
On Thu, Jun 15, 2023 at 1:14 AM parv/FreeBSD  wrote:

>  Hi there,
>
> I am stuck in "installworld" step due to
> ERROR-tried-to-rebuild-during-make-install when going
> from 1cebc9298cf to b98fbf3781 on one host, or from
> 9fbeeb6e3831 to dfa1982352ee on another host.
>
> What should I be looking for?
>
>
> 1cebc9298cf-to-b98fbf3781:
> log:
> ...
> install  -d -m 0755 -o root  -g wheel  /boot
> install  -o root  -g wheel -m 444  loader.help.efi /boot/loader.help.efi
> cc -target x86_64-unknown-freebsd14.0
> --sysroot=/build/world/freebsd/src/amd64.amd64/tmp
> -B/build/world/freebsd/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -fno-common
> -Wformat -fshort-wchar -mno-red-zone -nostdinc
>  -I/build/world/freebsd/src/amd64.amd64/stand/libsa
> -I/freebsd/src/stand/libsa -D_STANDALONE -I/freebsd/src/sys
> -Ddouble=jagged-little-pill -Dfloat=floaty-mcfloatface -ffunction-sections
> -fdata-sections -DLOADER_GELI_SUPPORT -I/freebsd/src/stand/libsa/geli
> -DLOADER_DISK_SUPPORT -ffreestanding -mno-mmx -mno-sse -mno-avx -mno-avx2
> -msoft-float -fPIC -mno-red-zone -mno-relax -I. -Iinclude
> -I/freebsd/src/stand/efi/loader_4th/../loader
> -I/freebsd/src/stand/libsa/zfs -I/freebsd/src/sys/contrib/openzfs/include
> -I/freebsd/src/sys/contrib/openzfs/include/os/freebsd/zfs -DEFI_ZFS_BOOT
> -fPIC -I/freebsd/src/stand/efi/loader_4th
> -I/freebsd/src/stand/efi/loader_4th/arch/amd64
> -I/freebsd/src/stand/efi/include -I/freebsd/src/stand/efi/include/amd64
> -I/freebsd/src/sys/contrib/dev/acpica/include
> -I/freebsd/src/stand/i386/libi386 -DEFI -I/freebsd/src/stand/common -fPIC
> -I/freebsd/src/stand/ficl -I/freebsd/src/stand/ficl/amd64
> -I/freebsd/src/stand/common -DBF_DICTSIZE=30000 -DLOADER_MSDOS_SUPPORT
> -DLOADER_UFS_SUPPORT -DLOADER_NET_SUPPORT -DLOADER_GPT_SUPPORT
> -DLOADER_MBR_SUPPORT -DLOADER_ZFS_SUPPORT -I/freebsd/src/stand/libsa/zfs
> -I/freebsd/src/sys/cddl/boot/zfs
> -I/freebsd/src/sys/cddl/contrib/opensolaris/uts/common
> -DHELP_FILENAME=\"loader.help.efi\" -mretpoline
> -ftrivial-auto-var-init=zero
>  -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
> -g -gz=zlib  -std=gnu99 -Wno-format-zero-length -Wsystem-headers -Werror
> -Wno-pointer-sign -Wdate-time -Wno-empty-body -Wno-string-plus-int
> -Wno-unused-const-variable -Wno-error=unused-but-set-variable
> -Wno-error=array-parameter -Wno-error=deprecated-non-prototype
> -Wno-error=unused-but-set-parameter -Wno-tautological-compare
> -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
> -Wno-enum-conversion -Wno-unused-local-typedef
> -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum
> -Wno-knr-promoted-parameter -Wno-parentheses  -Oz -Qunused-arguments    ERROR-tried-to-rebuild-during-make-install
> -c /freebsd/src/stand/efi/loader_4th/../loader/efiserialio.c -o
> efiserialio.o
> /tmp/install.PjBzUKhv0k/sh: cc: not found
> *** Error code 127
>
> Stop.
> make[6]: stopped in /freebsd/src/stand/efi/loader_4th
> ...
>
> /etc/{make,src}*conf: attached 1cebc9298cf-to-b98fbf3781.etc.list
>
...

Also asked at https://mastodon.social/@parvXm/110598357680164603
where I note that ...

ERROR-tried-to-rebuild-during-make-install

... was introduced in c 2017 per
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212877#c21 .