[Bug 269366] installworld calls cc breaking nanobsd build

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 Feb 2023 09:33:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269366

            Bug ID: 269366
           Summary: installworld calls cc breaking nanobsd build
           Product: Base System
           Version: 13.1-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: eugen@freebsd.org
                CC: cperciva@FreeBSD.org, imp@FreeBSD.org

I have new motherboard that supports BIOS/Legacy CSM with discrete PCIe
videocard only; with Intel video it boots in UEFI mode only. First, extra
videocard was added and I successfully rebuilt my nanobsd image using fresh
stable/13 amd64 source tree, and it boots just fine in BIOS mode.

Now I try to switch it to UEFI boot mode adding NANO_LAYOUT=std-uefi-bios to
nanobsd config but now it fails building image at installworld stage due to
non-existing compiler in the built world (WITHOUT_CLANG, WITHOUT_CPP,
WITHOUT_GCC, WITHOUT_OBJC, WITHOUT_SYSTEM_COMPILER etc.):

===> stand/i386/loader_4th (install)
cc -target x86_64-unknown-freebsd13.2
--sysroot=/home/obj/nanobsd.setup/home/src/amd64.amd64/tmp -B
/home/obj/nanobsd.setup/home/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -fno-common
  -I/home/src/stand
/i386/btx/lib -nostdinc   
-I/home/obj/nanobsd.setup/home/src/amd64.amd64/stand/libsa32 -I/home/src
/stand/libsa -D_STANDALONE -I/home/src/sys -Ddouble=jagged-little-pill
-Dfloat=floaty-mcfloatface -
ffunction-sections -fdata-sections -DLOADER_GELI_SUPPORT
-I/home/src/stand/libsa/geli -DLOADER_DISK
_SUPPORT -m32 -ffreestanding -mno-mmx -mno-sse -mno-avx -mno-avx2 -msoft-float
-march=i386 -mno-rel
ax -I. -Iinclude -I/home/src/stand/common -I/home/src/stand/ficl
-I/home/src/stand/ficl/i386 -I/hom
e/src/stand/common -DBF_DICTSIZE=30000 -DLOADER_CD9660_SUPPORT
-DLOADER_EXT2FS_SUPPORT -DLOADER_MSD
OS_SUPPORT -DLOADER_UFS_SUPPORT -DLOADER_GZIP_SUPPORT -DLOADER_NET_SUPPORT
-DLOADER_NFS_SUPPORT -DL
OADER_TFTP_SUPPORT -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT
-DLOADER_ZFS_SUPPORT -I/home/src/stand
/libsa/zfs -I/home/src/sys/cddl/boot/zfs
-I/home/src/sys/cddl/contrib/opensolaris/uts/common -Wall
-I/home/src/stand/i386 -DLOADER_PREFER_AMD64 -DNDEBUG  -std=gnu99
-Wno-format-zero-length -nobuilti
ninc -idirafter /usr/lib/clang/14.0.5/include -Wsystem-headers
-Wno-pointer-sign -Wno-empty-body -W
no-string-plus-int -Wno-unused-const-variable
-Wno-error=unused-but-set-variable -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-p
arameter -Wno-parentheses  -Oz -Qunused-arguments
-I/home/src/sys/contrib/openzfs/include -I/home/s
rc/sys/contrib/openzfs/include/os/freebsd/zfs  
ERROR-tried-to-rebuild-during-make-install -c /home
/src/stand/i386/loader/main.c -o main.o
/tmp/install.3p4xVTZ8/sh: cc: not found
*** Error code 127

Stop.

-- 
You are receiving this mail because:
You are the assignee for the bug.