Bug 229744 - WITHOUT=LIB32 breaks installworld
Summary: WITHOUT=LIB32 breaks installworld
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 11.2-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-12 21:45 UTC by Mikhail Teterin
Modified: 2018-08-12 14:30 UTC (History)
2 users (show)

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 2018-07-12 21:45:31 UTC
I don't have any 32-bit binaries and added LIB32 to the WITHOUT-list. The installworld broke:

....
===> stand/i386/libi386 (install)
===> stand/i386/loader (install)
cc -target x86_64-unknown-freebsd11.2 --sysroot=/usr/obj/symbion/src/tmp -B/usr/obj/symbion/src/tmp/usr/bin -O2 -pipe -march=ivybridge -I/symbion/src/stand/i386/btx/lib -nostdinc -I/usr/obj/symbion/src/stand/libsa32 -I/symbion/src/stand/libsa -D_STANDALONE -I/symbion/src/sys -Ddouble=jagged-little-pill -Dfloat=floaty-mcfloatface -DLOADER_GELI_SUPPORT -I/symbion/src/stand/geli -DLOADER_DISK_SUPPORT -m32 -ffreestanding -mno-mmx -mno-sse -mno-avx -msoft-float -march=i386 -I. -I/symbion/src/stand/common -I/symbion/src/stand/ficl -I/symbion/src/stand/ficl/i386 -I/symbion/src/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 -Wall -I/symbion/src/stand/i386 -DLOADER_PREFER_AMD64 -std=gnu99 -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-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 -Qunused-arguments ERROR-tried-to-rebuild-during-make-install  -nostdlib -static -Ttext 0x0 -o loader.sym /usr/obj/symbion/src/stand/i386/btx/lib/crt0.o 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 dev_net.o bcache.o isapnp.o pnp.o interp_forth.o  /usr/obj/symbion/src/stand/ficl32/libficl.a   /usr/obj/symbion/src/stand/i386/libi386/libi386.a /usr/obj/symbion/src/stand/geli/libgeliboot.a /usr/obj/symbion/src/stand/libsa32/libsa32.a
/tmp/install.XPLrpoDl/sh: cc: not found
*** Error code 127

Stop.
make[6]: stopped in /symbion/src/stand/i386/loader
*** Error code 1

Stop.
make[5]: stopped in /symbion/src/stand/i386
*** Error code 1
Comment 1 Kyle Evans freebsd_committer 2018-07-12 21:48:33 UTC
CC imp@, seems reasonable that we should probably be honored MK_LIB32 before we add the LIB32LIST to SUBDIR in stand/Makefile.
Comment 2 Kyle Evans freebsd_committer 2018-07-13 02:45:41 UTC
(In reply to Kyle Evans from comment #1)

It occurs to me that it's trying to compile during install, which is generally a no-no and I thought we had some measures to prevent that.

I think WITHOUT_LIB32 is a red herring, and I don't think it actually makes sense to gate the 32-bit libs here behind it since they're not installed but used to build other important bits.
Comment 3 Warner Losh freebsd_committer 2018-07-13 03:48:38 UTC
confirm your system time is good. We've had issues in the past when the time is in the past and so some files are always newer than the sources which causes builds during install...
Comment 4 Mikhail Teterin freebsd_committer 2018-07-13 16:22:37 UTC
(In reply to Warner Losh from comment #3)
Confirming. The build is local -- no NFS involved at all.

install succeeded after I manually did "make" in stand/i386/loader and then in another child of stand/i386/pxeldr.