Bug 273283 - Trying to build world (upgrade from 13.1 to 13.2) from source fails
Summary: Trying to build world (upgrade from 13.1 to 13.2) from source fails
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 13.2-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-22 09:19 UTC by Mohammad S. Babaei
Modified: 2023-08-25 12:07 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mohammad S. Babaei 2023-08-22 09:19:44 UTC
I have been upgrading this server since 12.2-RELEASE using source and all has been working fine up to 13.1-RELEASE. I had 13.1-RELEASE-p6 so I built one last time after git pull to 13.1-RELEASE-p9 and it worked fine.

Then, I decided to update to 13.2-RELEASE by doing:

$ git pull
$ git checkout releng/13.2
$ cd /usr/src/ && make clean
$ cd /usr/obj/ && rm -rf *
$ cd /usr/src/ && make buildworld -j3 && make buildkernel -j3 KERNCONF=CUSTOM

It fails with the following:

--- _bootstrap-tools ---
--------------------------------------------------------------
>>> stage 1.2: bootstrap tools
--------------------------------------------------------------
cd /usr/src; INSTALL="sh /usr/src/tools/install.sh"  TOOLS_PREFIX=/usr/obj/usr/src/amd64.amd64/tmp  PATH=/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/libexec:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/usr/obj/usr/src/amd64.amd64/tmp  MAKEFLAGS="-m /usr/src/tools/build/mk  -j 3 -J 15,16 -m /usr/src/share/mk" make  -f Makefile.inc1  DESTDIR=  OBJTOP='/usr/obj/usr/src/amd64.amd64/tmp/obj-tools'  OBJROOT='${OBJTOP}/'  MAKEOBJDIRPREFIX=  BOOTSTRAPPING=1301000  BWPHASE=bootstrap-tools  -DNO_CPU_CFLAGS  -DNO_LINT  -DNO_PIC  -DNO_SHARED  MK_CTF=no  MK_CLANG_EXTRAS=no  MK_CLANG_FORMAT=no  MK_CLANG_FULL=no  MK_HTML=no  MK_MAN=no  MK_PROFILE=no  MK_RETPOLINE=no  MK_SSP=no  MK_TESTS=no  MK_WERROR=no  MK_INCLUDES=yes  MK_MAN_UTILS=yes MK_LLVM_TARGET_ALL=no bootstrap-tools
--- _bootstrap-tools-link-m4 ---
--- _bootstrap-tools-link-lex ---
--- _bootstrap-tools-link-mtree ---
--- _bootstrap-tools-link-cat ---
--- _bootstrap-tools-link-crunchide ---
--- _bootstrap-tools-link-crunchgen ---
--- _bootstrap-tools-link-mkimg ---
--- _bootstrap-tools-link-sysctl ---
--- _bootstrap-tools-link-cut ---
--- _bootstrap-tools-link-expr ---
--- _bootstrap-tools-link-gencat ---
--- _bootstrap-tools-link-join ---
--- _bootstrap-tools-link-mktemp ---
--- _bootstrap-tools-link-realpath ---
--- _bootstrap-tools-link-rmdir ---
--- _bootstrap-tools-link-sed ---
--- _bootstrap-tools-link-sort ---
--- _bootstrap-tools-link-truncate ---
--- _bootstrap-tools-link-tsort ---
--- _bootstrap-tools-link-file2c ---
--- _bootstrap-tools-link-uuencode ---
--- _bootstrap-tools-link-uudecode ---
--- _bootstrap-tools-link-xargs ---
--- _bootstrap-tools-link-cap_mkdb ---
--- _bootstrap-tools-link-services_mkdb ---
--- _bootstrap-tools-link-pwd_mkdb ---
--- _bootstrap-tools-link-ldd ---
--- _bootstrap-tools-link-chflags ---
--- _bootstrap-tools-link-mkfifo ---
--- _bootstrap-tools-link-jot ---
--- _bootstrap-tools-link-md5 ---
--- _bootstrap-tools-link-tzsetup ---
--- _bootstrap-tools-link-grep ---
--- _bootstrap-tools-link-egrep ---
--- _bootstrap-tools-link-fgrep ---
--- _bootstrap-tools-link-test ---
--- _bootstrap-tools-link-[ ---
--- _bootstrap-tools-link-awk ---
--- _bootstrap-tools-link-nawk ---
--- _bootstrap-tools-lib/clang/libllvmminimal ---
--- _bootstrap-tools-usr.bin/dtc ---
--- _bootstrap-tools-usr.sbin/kbdcontrol ---
--- _bootstrap-tools-lib/clang/libllvmminimal ---
===> lib/clang/libllvmminimal (obj,all,install)
--- _bootstrap-tools-usr.bin/dtc ---
===> usr.bin/dtc (obj,all,install)
--- _bootstrap-tools-usr.sbin/kbdcontrol ---
===> usr.sbin/kbdcontrol (obj,all,install)
--- _bootstrap-tools-lib/clang/libllvmminimal ---
[Creating objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvmminimal...]
--- _bootstrap-tools-usr.sbin/kbdcontrol ---
[Creating objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/usr.sbin/kbdcontrol...]
--- _bootstrap-tools-usr.bin/dtc ---
[Creating objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/usr.bin/dtc...]
--- _bootstrap-tools-usr.sbin/kbdcontrol ---
--- lex.c ---
--- _bootstrap-tools-usr.bin/dtc ---
--- .depend ---
--- _bootstrap-tools-usr.sbin/kbdcontrol ---
lex   -olex.c /usr/src/usr.sbin/kbdcontrol/lex.l
--- _bootstrap-tools-lib/clang/libllvmminimal ---
make[3]: "/usr/src/lib/clang/llvm.pre.mk" line 8: warning: "which llvm-tblgen" returned non-zero status
--- _bootstrap-tools-usr.bin/dtc ---
echo dtc: /usr/lib/libc.a /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/lib/libegacy.a >> .depend
echo dtc: /usr/lib/libc++.a >> .depend
--- dtc.o ---
/usr/local/bin/ccache c++  -O2 -pipe -fno-common -DNDEBUG -MD -MF.depend.dtc.o -MTdtc.o -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized -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 -Qunused-arguments -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -fno-rtti -fno-exceptions  -std=c++11    -Wno-c++11-extensions   -c /usr/src/usr.bin/dtc/dtc.cc -o dtc.o
--- _bootstrap-tools-lib/clang/libllvmminimal ---
[Creating nested objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvmminimal/Demangle...]
[Creating nested objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvmminimal/Support...]
[Creating nested objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvmminimal/TableGen...]
--- Demangle/ItaniumDemangle.o ---
/usr/local/bin/ccache c++  -O2 -pipe -fno-common -I/usr/src/lib/clang/include -I/usr/src/contrib/llvm-project/llvm/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_VCS_VERSION_INC -DNDEBUG -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd13.2\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd13.2\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/amd64.amd64/tmp\" -DLLVM_TARGET_ENABLE_X86 -DLLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser -DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter -DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler -DLLVM_NATIVE_TARGET=LLVMInitializeX86Target -DLLVM_NATIVE_TARGETINFO=LLVMInitializeX86TargetInfo -DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC -ffunction-sections -fdata-sections -DNDEBUG -MD -MF.depend.Demangle_ItaniumDemangle.o -MTDemangle/ItaniumDemangle.o -Wno-format-zero-length -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 -Qunused-arguments -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include  -fno-exceptions -fno-rtti -std=c++14    -stdlib=libc++ -Wno-c++11-extensions   -c /usr/src/contrib/llvm-project/llvm/lib/Demangle/ItaniumDemangle.cpp -o Demangle/ItaniumDemangle.o
--- _bootstrap-tools-usr.sbin/kbdcontrol ---
--- .depend ---
--- _bootstrap-tools-usr.bin/dtc ---
--- input_buffer.o ---
/usr/local/bin/ccache c++  -O2 -pipe -fno-common -DNDEBUG -MD -MF.depend.input_buffer.o -MTinput_buffer.o -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized -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 -Qunused-arguments -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -fno-rtti -fno-exceptions  -std=c++11    -Wno-c++11-extensions   -c /usr/src/usr.bin/dtc/input_buffer.cc -o input_buffer.o
--- _bootstrap-tools-usr.sbin/kbdcontrol ---
echo kbdcontrol: /usr/lib/libc.a /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/lib/libegacy.a >> .depend
--- kbdcontrol.o ---
/usr/local/bin/ccache cc  -O2 -pipe -fno-common -I/usr/src/usr.sbin/kbdcontrol  -DNDEBUG -MD  -MF.depend.kbdcontrol.o -MTkbdcontrol.o -std=gnu99 -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-variable  -Qunused-arguments    -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -c /usr/src/usr.sbin/kbdcontrol/kbdcontrol.c -o kbdcontrol.o
--- _bootstrap-tools-lib/clang/libllvmminimal ---
--- Support/ABIBreak.o ---
/usr/local/bin/ccache c++  -O2 -pipe -fno-common -I/usr/src/lib/clang/include -I/usr/src/contrib/llvm-project/llvm/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_VCS_VERSION_INC -DNDEBUG -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd13.2\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd13.2\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/amd64.amd64/tmp\" -DLLVM_TARGET_ENABLE_X86 -DLLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser -DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter -DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler -DLLVM_NATIVE_TARGET=LLVMInitializeX86Target -DLLVM_NATIVE_TARGETINFO=LLVMInitializeX86TargetInfo -DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC -ffunction-sections -fdata-sections -DNDEBUG -MD -MF.depend.Support_ABIBreak.o -MTSupport/ABIBreak.o -Wno-format-zero-length -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-un--- _bootstrap-tools-usr.bin/dtc ---
--- string.o ---
/usr/local/bin/ccache c++  -O2 -pipe -fno-common -DNDEBUG -MD -MF.depend.string.o -MTstring.o -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized -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 -Qunused-arguments -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -fno-rtti -fno-exceptions  -std=c++11    -Wno-c++11-extensions   -c /usr/src/usr.bin/dtc/string.cc -o string.o
--- _bootstrap-tools-lib/clang/libllvmminimal ---
used-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 -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include  -fno-exceptions -fno-rtti -std=c++14    -stdlib=libc++ -Wno-c++11-extensions   -c /usr/src/contrib/llvm-project/llvm/lib/Support/ABIBreak.cpp -o Support/ABIBreak.o
--- _bootstrap-tools-usr.bin/dtc ---
--- dtb.o ---
/usr/local/bin/ccache c++  -O2 -pipe -fno-common -DNDEBUG -MD -MF.depend.dtb.o -MTdtb.o -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized -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 -Qunused-arguments -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include -fno-rtti -fno-exceptions  -std=c++11    -Wno-c++11-extensions   -c /usr/src/usr.bin/dtc/dtb.cc -o dtb.o
--- _bootstrap-tools-usr.sbin/kbdcontrol ---
/usr/src/usr.sbin/kbdcontrol/kbdcontrol.c:822:37: error: unknown type name 'oaccentmap_t'; did you mean 'accentmap_t'?
to_old_accentmap(accentmap_t *from, oaccentmap_t *to)
                                    ^~~~~~~~~~~~
                                    accentmap_t
/usr/include/sys/kbio.h:210:26: note: 'accentmap_t' declared here
typedef struct accentmap accentmap_t;
                         ^
/usr/src/usr.sbin/kbdcontrol/kbdcontrol.c:841:2: error: unknown type name 'oaccentmap_t'; did you mean 'accentmap_t'?
        oaccentmap_t oaccentmap;
        ^~~~~~~~~~~~
        accentmap_t
/usr/include/sys/kbio.h:210:26: note: 'accentmap_t' declared here
typedef struct accentmap accentmap_t;
                         ^
/usr/src/usr.sbin/kbdcontrol/kbdcontrol.c:902:16: error: use of undeclared identifier 'OPIO_DEADKEYMAP'
                if (ioctl(0, OPIO_DEADKEYMAP, &oaccentmap) < 0) {
                             ^
/usr/src/usr.sbin/kbdcontrol/kbdcontrol.c:911:18: error: unknown type name 'oaccentmap_t'; did you mean 'accentmap_t'?
to_new_accentmap(oaccentmap_t *from, accentmap_t *to)
                 ^~~~~~~~~~~~
                 accentmap_t
/usr/include/sys/kbio.h:210:26: note: 'accentmap_t' declared here
typedef struct accentmap accentmap_t;
                         ^
/usr/src/usr.sbin/kbdcontrol/kbdcontrol.c:930:2: error: unknown type name 'oaccentmap_t'; did you mean 'accentmap_t'?
        oaccentmap_t oaccentmap;
        ^~~~~~~~~~~~
        accentmap_t
/usr/include/sys/kbio.h:210:26: note: 'accentmap_t' declared here
typedef struct accentmap accentmap_t;
                         ^
/usr/src/usr.sbin/kbdcontrol/kbdcontrol.c:936:16: error: use of undeclared identifier 'OGIO_DEADKEYMAP'
                if (ioctl(0, OGIO_DEADKEYMAP, &oaccentmap) == 0)
                             ^
6 errors generated.
*** [kbdcontrol.o] Error code 1

make[3]: stopped in /usr/src/usr.sbin/kbdcontrol
1 error

make[3]: stopped in /usr/src/usr.sbin/kbdcontrol

make[2]: stopped in /usr/src
--- _bootstrap-tools-usr.bin/dtc ---

make[2]: stopped in /usr/src
--- _bootstrap-tools-lib/clang/libllvmminimal ---
--- Support/APFloat.o ---

make[2]: stopped in /usr/src

make[1]: stopped in /usr/src

make: stopped in /usr/src
Comment 1 Mohammad S. Babaei 2023-08-22 09:20:38 UTC
I have to add, this is my src.conf:

cat /etc/src.conf
WITHOUT_ASSERT_DEBUG=yes
WITHOUT_BHYVE=yes
WITHOUT_BLUETOOTH=yes
WITHOUT_BSDINSTALL=yes
WITH_CCACHE_BUILD=yes
WITHOUT_CROSS_COMPILER=yes
WITHOUT_DEBUG_FILES=yes
WITHOUT_DICT=yes
WITHOUT_EXAMPLES=yes
WITHOUT_FLOPPY=yes
WITHOUT_FREEBSD_UPDATE=yes
WITHOUT_GAMES=yes
WITHOUT_GPIO=yes
WITHOUT_HTML=yes
WITHOUT_HYPERV=yes
WITHOUT_IPFILTER=yes
WITHOUT_ISCSI=yes
WITHOUT_JAIL=yes
WITHOUT_KDUMP=yes
WITHOUT_KERNEL_SYMBOLS=yes
WITHOUT_KVM=yes
WITHOUT_KVM_SUPPORT=yes
WITHOUT_LEGACY_CONSOLE=yes
WITHOUT_LIB32=yes
WITHOUT_LLVM_TARGET_AARCH64=yes
WITHOUT_LLVM_TARGET_ALL=yes
WITHOUT_LLVM_TARGET_ARM=yes
WITHOUT_LLVM_TARGET_MIPS=yes
WITHOUT_LLVM_TARGET_POWERPC=yes
WITHOUT_LLVM_TARGET_SPARC=yes
WITH_LLVM_TARGET_X86=yes
WITHOUT_MAN=yes
WITHOUT_MAN_UTILS=yes
WITHOUT_PC_SYSINSTALL=yes
WITHOUT_PF=yes
WITHOUT_RADIUS_SUPPORT=yes
WITHOUT_SENDMAIL=yes
WITHOUT_SHAREDOCS=yes
WITHOUT_TESTS=yes
WITHOUT_TESTS_SUPPORT=yes
WITH_USB=yes
WITHOUT_USB_GADGET_EXAMPLES=yes
WITHOUT_VI=yes
WITHOUT_WIRELESS=yes
WITHOUT_WIRELESS_SUPPORT=yes
WITHOUT_WPA_SUPPLICANT_EAPOL=yes
Comment 2 Mina Galić freebsd_triage 2023-08-22 13:49:31 UTC
what does your current world / kernel configs look like?
Comment 3 Mohammad S. Babaei 2023-08-22 14:38:41 UTC
I don't have anything special, it's just like this:

$ cat /usr/src/sys/amd64/conf/CUSTOM
include         GENERIC
ident           CUSTOM
Comment 4 Mohammad S. Babaei 2023-08-22 14:41:22 UTC
And make.conf if it helps:

$ cat /etc/make.conf 
CPUTYPE?=core-avx2

MAKE_JOBS_SAFE=yes
MAKE_JOBS_NUMBER=3

WITH_CCACHE_BUILD=yes
CCACHE_DIR=/var/cache/ccache

KERNCONF=CUSTOM

# cat/usr/ports/Mk/bsd.default-versions.mk
DEFAULT_VERSIONS+=gcc=12
DEFAULT_VERSIONS+=linux=c7_64
DEFAULT_VERSIONS+=llvm=16
DEFAULT_VERSIONS+=mysql=10.6m
DEFAULT_VERSIONS+=pgsql=15
DEFAULT_VERSIONS+=php=8.2
DEFAULT_VERSIONS+=rust=rust

OPTIONS_UNSET+=\
    BASH \
    DEBUG \
    DEBUGLOG \
    DOCS \
    DOXYGEN \
    EXAMPLES \
    HELP \
    HTMLDOCS \
    MAN3 \
    MANPAGES \
    MEM_DEBUG \
    RDOC \
    TEST \
    TESTS \
    X11 \
    ZSH

OPTIONS_SET+=\
    AVX \
    AVX2 \
    CPU_OPTS \
    GMP \
    LTO \
    OPENMP \
    OPTIMIZED_CFLAGS \
    SIMD \
    SSE \
    THREADS

devel_git_UNSET+=\
    CVS \
    GITWEB \
    GUI \
    PERFORCE \
    SEND_EMAIL \
    SUBVERSION

devel_llvm_SET+=BE_NATIVE
devel_llvm80_SET+=BE_NATIVE
devel_llvm90_SET+=BE_NATIVE
devel_llvm10_SET+=BE_NATIVE
devel_llvm11_SET+=BE_NATIVE
devel_llvm12_SET+=BE_NATIVE

devel_llvm13_UNSET+=FLANG
devel_llvm13_SET+=BE_NATIVE

devel_llvm14_UNSET+=FLANG
devel_llvm14_SET+=BE_NATIVE

devel_llvm15_UNSET+=\
    FLANG\
    BE_STANDARD
devel_llvm15_SET+=BE_NATIVE

devel_llvm16_UNSET+=\
    FLANG\
    BE_STANDARD
devel_llvm16_SET+=BE_NATIVE

devel_ruby-build_UNSET+=\
    RBENV

devel_sope4_UNSET+=MYSQL
devel_sope4_SET+=\
    LDAP \
    MEMCACHED \
    PGSQL

editors_neovim_SET+=PYNVIM

lang_go_SET+=V3
lang_go119_SET+=V3

lang_php80_UNSET+=\
    CGI \
    CLI \
    EMBED \
    PHPDBG \
    DEBUG \
    DTRACE \
    MYSQL80 \
    LINKTHR \
    ZTS
lang_php80_SET+=\
    FPM \
    IPV6 \
    MYSQLND
lang_php80-extensions_UNSET+=\
    BCMATH \
    BZ2 \
    CALENDAR \
    DBA \
    ENCHANT \
    FTP \
    GETTEXT \
    GMP \
    IMAP \
    INTERBASE \
    INTL \
    ODBC \
    PDF \
    PDO_DBLIB \
    PDO_FIREBIRD \
    PDO_ODBC \
    PSPELL \
    READLINE \
    RECODE \
    SHMOP \
    SNMP \
    SOAP \
    SOCKETS \
    SYSVMSG \
    SYSVSEM \
    SYSVSHM \
    TIDY \
    WDDX \
    XMLRPC \
    XSL
lang_php80-extensions_SET+=\
    CTYPE \
    CURL \
    DOM \
    EXIF \
    FILEINFO \
    FILTER \
    GD \
    HASH \
    ICONV \
    JSON \
    LDAP \
    MBSTRING \
    MYSQLI \
    OPCACHE \
    OPENSSL \
    PCNTL \
    PDO \
    PDO_MYSQL \
    PDO_PGSQL \
    PDO_SQLITE \
    PGSQL \
    PHAR \
    POSIX \
    SESSION \
    SIMPLEXML \
    SODIUM \
    SQLITE3 \
    TOKENIZER \
    XML \
    XMLREADER \
    XMLWRITER \
    ZIP \
    ZLIB
lang_php80_UNSET+=\
    CGI \
    EMBED \
    PHPDBG \
    DEBUG \
    DTRACE \
    MYSQL80 \
    LINKTHR \
    ZTS
lang_php80_SET+=\
    CLI \
    FPM \
    IPV6 \
    MYSQLND
lang_php80-extensions_UNSET+=\
    BCMATH \
    BZ2 \
    CALENDAR \
    DBA \
    ENCHANT \
    FTP \
    GETTEXT \
    GMP \
    IMAP \
    INTERBASE \
    INTL \
    ODBC \
    PCNTL \
    PDF \
    PDO_DBLIB \
    PDO_FIREBIRD \
    PDO_ODBC \
    PSPELL \
    READLINE \
    RECODE \
    SHMOP \
    SNMP \
    SOAP \
    SOCKETS \
    SYSVMSG \
    SYSVSEM \
    SYSVSHM \
    TIDY \
    WDDX \
    XMLRPC \
    XSL
lang_php80-extensions_SET+=\
    CTYPE \
    CURL \
    DOM \
    EXIF \
    FILEINFO \
    FILTER \
    GD \
    HASH \
    ICONV \
    JSON \
    LDAP \
    MBSTRING \
    MYSQLI \
    OPCACHE \
    OPENSSL \
    PDO \
    PDO_MYSQL \
    PDO_PGSQL \
    PDO_SQLITE \
    PGSQL \
    PHAR \
    POSIX \
    SESSION \
    SIMPLEXML \
    SODIUM \
    SQLITE3 \
    TOKENIZER \
    XML \
    XMLREADER \
    XMLWRITER \
    ZIP \
    ZLIB

mail_dovecot_SET+=\
    GSSAPI_NONE \
    LDAP \
    LIBWRAP \
    LZ4
mail_postfix_SET+=\
    BLACKLISTD \
    EAI \
    PCRE \
    TLS

mail_spamassassin_UNSET+=\
    DKIM \
    SPF_QUERY
mail_spamassassin_SET+=\
    AS_ROOT \
    GNUPG2 \
    SSL

net_openldap24-server_UNSET+=\
    ACCESSLOG \
    ACI \
    ADDPARTIAL \
    ALLOP \
    AUDITLOG \
    AUTOGROUP \
    BDB \
    CLOAK \
    COLLECT \
    CONSTRAINT \
    DDS \
    DENYOP \
    DEREF \
    DNSSRV \
    DYNACL \
    DYNAMIC_MODULES \
    DYNGROUP \
    DYNLIST \
    KQUEUE \
    LASTBIND \
    LASTMOD \
    LMPASSWD \
    NOPS \
    ODBC \
    OUTLOOK \
    PASSWD \
    PBKDF2 \
    PCACHE \
    PERL \
    PPOLICY \
    REFINT \
    RELAY \
    RETCODE \
    RLOOKUPS \
    RWM \
    SEQMOD \
    SHELL \
    SLAPI \
    SLP \
    SMBPWD \
    SOCK \
    SSSVLV \
    TCP_WRAPPERS \
    TRACE \
    TRANSLUCENT \
    UNIQUE \
    VALSORT
net_openldap24-server_SET+=\
    DYNAMIC_BACKENDS \
    MDB \
    MEMBEROF \
    SHA2 \
    SYNCPROV

security_libgsasl_SET+=GSSAPI_HEIMDAL

security_sudo_SET+=\
    AUDIT \
    INSULTS \
    NLS \
    PAM

sysutils_screen_UNSET+=MULTIUSER

www_nginx_UNSET+=\
    AJP \
    ARRAYVAR \
    AWS_AUTH \
    BROTLI \
    CACHE_PURGE \
    CLOJURE \
    CT \
    DEVEL_KIT \
    DRIZZLE \
    DSO \
    DYNAMIC_TLS \
    DYNAMIC_UPSTREAM \
    ECHO \
    ENCRYPTSESSION \
    FILE_AIO \
    FORMINPUT \
    GOOGLE_PERFTOOLS \
    GRIDFS \
    GSSAPI_BASE \
    GSSAPI_HEIMDAL \
    GSSAPI_MIT \
    HEADERS_MORE \
    HTTP_ACCEPT_LANGUAGE \
    HTTP_ADDITION \
    HTTP_AUTH_DIGEST \
    HTTP_AUTH_JWT \
    HTTP_AUTH_KRB5 \
    HTTP_AUTH_PAM \
    HTTP_AUTH_REQ \
    HTTP_DAV \
    HTTP_DAV_EXT \
    HTTP_EVAL \
    HTTP_FANCYINDEX \
    HTTP_FLV \
    HTTP_FOOTER \
    HTTP_GEOIP2 \
    HTTP_GUNZIP_FILTER \
    HTTP_IMAGE_FILTER \
    HTTP_IP2LOCATION \
    HTTP_IP2PROXY \
    HTTP_JSON_STATUS \
    HTTP_MOGILEFS \
    HTTP_MP4 \
    HTTP_MP4_H264 \
    HTTP_NOTICE \
    HTTP_PERL \
    HTTP_PUSH \
    HTTP_PUSH_STREAM \
    HTTP_RANDOM_INDEX \
    HTTP_REDIS \
    HTTP_RESPONSE \
    HTTP_SECURE_LINK \
    HTTP_SLICE \
    HTTP_SLICE_AHEAD \
    HTTP_STATUS \
    HTTP_SUB \
    HTTP_SUBS_FILTER \
    HTTP_TARANTOOL \
    HTTP_UPLOAD \
    HTTP_UPLOAD_PROGRESS \
    HTTP_UPSTREAM_CHECK \
    HTTP_UPSTREAM_FAIR \
    HTTP_UPSTREAM_STICKY \
    HTTP_VIDEO_THUMBEXTR \
    HTTP_XSLT \
    HTTP_ZIP \
    ICONV \
    LET \
    LINK \
    LUA \
    MAIL \
    MAIL_IMAP \
    MAIL_POP3 \
    MAIL_SMTP \
    MAIL_SSL \
    MEMC \
    MODSECURITY3 \
    NJS \
    OPENTRACING \
    POSTGRES \
    RDS_CSV \
    RDS_JSON \
    REDIS2 \
    RTMP \
    SET_MISC \
    SFLOW \
    SHIBBOLETH \
    SLOWFS_CACHE \
    SMALL_LIGHT \
    SRCACHE \
    STREAM \
    STREAM_SSL \
    STREAM_SSL_PREREAD \
    VOD \
    VTS \
    WEBSOCKIFY \
    WWW \
    XSS
www_nginx_SET+=\
    HTTP \
    HTTP_AUTH_LDAP \
    HTTP_CACHE \
    HTTP_GZIP_STATIC \
    HTTP_REALIP \
    HTTP_REWRITE \
    HTTP_SSL \
    HTTPV2 \
    HTTPV2_AUTOTUNE \
    IPV6 \
    NAXSI \
    THREADS

www_wt3_UNSET+=\
    EXT \
    FCGI \
    FIREBIRD \
    LIBWTTEST \
    MYSQL \
    NO_STD_LOCALE \
    NO_STD_WSTRING \
    OPENGL \
    POSTGRES \
    SQLITE3 \
    UNWIND
www_wt3_SET+=\
    RESOURCESS \
    CMAKE_MODULE \
    CPP11 \
    HARU \
    PANGO \
    WTHTTP
Comment 5 Jessica Clarke freebsd_committer freebsd_triage 2023-08-22 15:56:19 UTC
This is due your host system having been built with WITHOUT_LEGACY_CONSOLE. As a result, your system lacks /usr/sbin/kbdcontrol (which is dodgy these days given kbdcontrol supports VT) and so it's bootstrapped during the build, but since https://cgit.freebsd.org/src/commit/?id=6693d527a43863ea67384b4616257a20794e8254 it needs updated system headers to build. I have a patch in flight to address all this for 14-CURRENT, but as a workaround on 13.2-RELEASE you can comment out the `_kbdcontrol=	usr.sbin/kbdcontrol` on line ~2320 of Makefile.inc1, since I doubt you're building a kernel that needs kbdcontrol at build time.
Comment 6 Ulrich Spörlein freebsd_committer freebsd_triage 2023-08-23 20:24:45 UTC
Unrelated to kbdcontrol and I haven't seen anyone report this, but for me upgrading to the latest 13.2 from 13.2 fails in buildworld like so.

I have nothing fancy in /etc/make.conf


--------------------------------------------------------------
>>> stage 1.2: bootstrap tools
--------------------------------------------------------------
cd /usr/src; INSTALL="sh /usr/src/tools/install.sh"  TOOLS_PREFIX=/usr/obj/usr/src/amd64.amd64/tmp  PATH=/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/libexec:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/usr/obj/usr/src/amd64.amd64/tmp  MAKEFLAGS="-m /usr/src/tools/build/mk  -m /usr/src/share/mk" make  -f Makefile.inc1  DESTDIR=  OBJTOP='/usr/obj/usr/src/amd64.amd64/tmp/obj-tools'  OBJROOT='${OBJTOP}/'  MAKEOBJDIRPREFIX=  BOOTSTRAPPING=1302001  BWPHASE=bootstrap-tools  -DNO_CPU_CFLAGS  -DNO_LINT  -DNO_PIC  -DNO_SHARED  MK_CTF=no  MK_CLANG_EXTRAS=no  MK_CLANG_FORMAT=no  MK_CLANG_FULL=no  MK_HTML=no  MK_MAN=no  MK_PROFILE=no  MK_RETPOLINE=no  MK_SSP=no  MK_TESTS=no  MK_WERROR=no  MK_INCLUDES=yes  MK_MAN_UTILS=yes MK_LLVM_TARGET_ALL=no bootstrap-tools
===> lib/clang/libllvmminimal (obj,all,install)
[Creating objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvmminimal...]
[Creating nested objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvmminimal/Demangle...]
[Creating nested objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvmminimal/Support...]
[Creating nested objdir /usr/obj/usr/src/amd64.amd64/tmp/obj-tools/lib/clang/libllvmminimal/TableGen...]
c++  -O2 -pipe -fno-common -I/usr/src/lib/clang/include -I/usr/src/contrib/llvm-project/llvm/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_VCS_VERSION_INC -DNDEBUG -DLLVM_DEFAULT_TARGET_TRIPLE=\"x86_64-unknown-freebsd13.2\" -DLLVM_HOST_TRIPLE=\"x86_64-unknown-freebsd13.2\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/amd64.amd64/tmp\" -DLLVM_TARGET_ENABLE_X86 -DLLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser -DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter -DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler -DLLVM_NATIVE_TARGET=LLVMInitializeX86Target -DLLVM_NATIVE_TARGETINFO=LLVMInitializeX86TargetInfo -DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC -ffunction-sections -fdata-sections -gline-tables-only -MD -MF.depend.Demangle_ItaniumDemangle.o -MTDemangle/ItaniumDemangle.o -Wno-format-zero-length -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 -Qunused-arguments -I/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/include  -fno-exceptions -fno-rtti -gline-tables-only -std=c++14    -stdlib=libc++ -Wno-c++11-extensions   -c /usr/src/contrib/llvm-project/llvm/lib/Demangle/ItaniumDemangle.cpp -o Demangle/ItaniumDemangle.o
In file included from /usr/src/contrib/llvm-project/llvm/lib/Demangle/ItaniumDemangle.cpp:13:
In file included from /usr/src/contrib/llvm-project/llvm/include/llvm/Demangle/Demangle.h:13:
In file included from /usr/include/c++/v1/string:535:
/usr/include/c++/v1/string_view:205:10: error: '__string' file not found, did you mean 'string'?
#include <__string>
         ^

Any idea what that is about?
Comment 7 Jessica Clarke freebsd_committer freebsd_triage 2023-08-23 20:33:58 UTC
Please file a new bug for that one, but that sounds like you have a mixed libc++ version. __string was removed as a file and added as a directory, so it not existing as a file is correct, but string_view shouldn't be referencing it. Commit 255d6c9fe5a7577c6caf78004034f2555bd0cba0 changed both at the same time. Perhaps you ran delete-old before you'd installed the updated libc++? That would result in you having the old version of string_view and no __string.
Comment 8 Mohammad S. Babaei 2023-08-23 22:10:16 UTC
I did the following change to my /etc/src.conf

# Will be fixed in 14-CURRENT, see the following for more info:
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273283
#WITHOUT_LEGACY_CONSOLE=yes

Then:

$ cd /usr/src/
$ git pull \
$ git checkout releng/13.1

$ make clean \
	&& cd /usr/obj/ \
	&& rm -rf * \
	&& cd /usr/src/ \
	&& make buildworld -j3 \
	&& make buildkernel -j3 KERNCONF=CUSTOM \
	&& make installkernel KERNCONF=CUSTOM \
	&& make installworld

Now I did this:

$ git checkout releng/13.2

and starting to build 13.2. It's going for now. I'll report back if I have any issues building as usual.

Thanks for the suggestion!
Comment 9 Mohammad S. Babaei 2023-08-25 12:07:52 UTC
Thank you one more time! The above worked for me and my server is now running 13.2-RELENG.