Bug 263249 - installworld breaks with WITHOUT_LIB32=yes
Summary: installworld breaks with WITHOUT_LIB32=yes
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.3-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-12 23:30 UTC by Mikhail Teterin
Modified: 2022-04-12 23:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Teterin freebsd_committer freebsd_triage 2022-04-12 23:30:18 UTC
When WITHOUT_LIB32 is set to "yes", today's 12.x installworld fails in stand/i386/loader_4th:


===> stand/i386/loader_4th (install)
installing DIRS BINDIR
install  -d -m 0755 -o root  -g wheel  /boot
cc -target x86_64-unknown-freebsd12.3 --sysroot=/spare/green/src/12/amd64.amd64/tmp -B/spare/green/src/12/amd64.amd64/tmp/usr/bin -O2 -pipe -fno-common -I/green/src/12/stand/i386/btx/lib -nostdinc -I/spare/green/src/12/amd64.amd64/stand/libsa32 -I/green/src/12/stand/libsa -D_STANDALONE -I/green/src/12/sys -Ddouble=jagged-little-pill -Dfloat=floaty-mcfloatface -ffunction-sections -fdata-sections -DLOADER_GELI_SUPPORT -I/green/src/12/stand/libsa/geli -DLOADER_DISK_SUPPORT -m32 -ffreestanding -mno-mmx -mno-sse -mno-avx -mno-avx2 -msoft-float -march=i386 -I. -Iinclude -I/green/src/12/stand/common -I/green/src/12/stand/ficl -I/green/src/12/stand/ficl/i386 -I/green/src/12/stand/common -DBF_DICTSIZE=15000 -DLOADER_CD9660_SUPPORT -DLOADER_EXT2FS_SUPPORT -DLOADER_MSDOS_SUPPORT -DLOADER_UFS_SUPPORT -DLOADER_GZIP_SUPPORT -DLOADER_BZIP2_SUPPORT -DLOADER_NET_SUPPORT -DLOADER_NFS_SUPPORT -DLOADER_TFTP_SUPPORT -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT -DLOADER_ZFS_SUPPORT -I/green/src/12/stand/libsa/zfs -I/green/src/12/sys/cddl/boot/zfs -I/green/src/12/sys/cddl/contrib/opensolaris/uts/common -Wall -I/green/src/12/stand/i386 -DLOADER_PREFER_AMD64 -std=gnu99 -Wno-format-zero-length -Wsystem-headers -Wno-pointer-sign -Wno-empty-body -Wno-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-parameter -Wno-parentheses -Oz -Qunused-arguments ERROR-tried-to-rebuild-during-make-install  -nostdlib -static -Wl,--defsym,ORG=0x0,-T,/green/src/12/stand/i386/boot.ldscript -Wl,--gc-sections -Wl,-z,nostart-stop-gc /spare/green/src/12/amd64.amd64/stand/i386/btx/lib/crt0.o -Wl,--no-rosegment  -o loader_4th.sym main.o conf.o vers.o chain.o boot.o commands.o console.o devopen.o interp.o interp_backslash.o interp_parse.o ls.o misc.o module.o load_elf32.o load_elf32_obj.o reloc_elf32.o load_elf64.o load_elf64_obj.o reloc_elf64.o disk.o part.o vdisk.o dev_net.o bcache.o isapnp.o pnp.o interp_forth.o zfs_cmd.o  /spare/green/src/12/amd64.amd64/stand/ficl32/libficl.a  /spare/green/src/12/amd64.amd64/stand/i386/libi386/libi386.a /spare/green/src/12/amd64.amd64/stand/libsa32/libsa32.a 
cc: error: no such file or directory: 'ERROR-tried-to-rebuild-during-make-install'

Manually descending into stand/i386 and running make there works around the problem...

This is similar to, but different from the WITHOUT=LIB32 case (documented in Bug #229744).