Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Feb 2023 09:33:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 269366] installworld calls cc breaking nanobsd build
Message-ID:  <bug-269366-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269366

            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=3Dstd-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.):

=3D=3D=3D> stand/i386/loader_4th (install)
cc -target x86_64-unknown-freebsd13.2
--sysroot=3D/home/obj/nanobsd.setup/home/src/amd64.amd64/tmp -B
/home/obj/nanobsd.setup/home/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -fno-co=
mmon
  -I/home/src/stand
/i386/btx/lib -nostdinc=20=20=20
-I/home/obj/nanobsd.setup/home/src/amd64.amd64/stand/libsa32 -I/home/src
/stand/libsa -D_STANDALONE -I/home/src/sys -Ddouble=3Djagged-little-pill
-Dfloat=3Dfloaty-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-fl=
oat
-march=3Di386 -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=3D30000 -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=3Dgnu99
-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=3Dunused-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=20=20
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269366-227>