[Bug 273283] Trying to build world (upgrade from 13.1 to 13.2) from source fails

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 22 Aug 2023 09:19:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273283

            Bug ID: 273283
           Summary: Trying to build world (upgrade from 13.1 to 13.2) from
                    source fails
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: info@babaei.net

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

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