buildworld 13-stable failing

using clang12 in /etc/make.conf, [btw an alternate title could be "post your
13-stable buildworld/kernel src.conf and make.conf", or, "post your howto to build 13-stable in a jail and then install it into the host [ if possible], "
...........
but to continue with the main question, the buildworld fails at
' use of undefined identifier' AT_USRSTACKBASE, and also for AT_USRSTACKLIM,
... so I searched and found those in fbsd-tdep.c and include/elf/common.h each patched in sept 2022,
but...
THE FILES DO NOT APPEAR TO BE IN /usr/src, nor in /usr/include, so I suspected they are within the binutils build??, which brings up
a related issue I noticed updating /usr/ports that binutils/pkg-descr was removed from 'base', but /usr/base does not exist?
.....
Apologies if this thread goes on and on with other error messages if these clear up. [ I miss running current and doing a buildworld multiple times a year without issues...]
 
Does it work when you don't specify a compiler in make.conf ?
Ie take the cc from base.
To populate /usr/src,
Code:
#!/usr/local/bin/zsh -v
rm -vfR /usr/src/* /usr/src/.??*
find /usr/src/
cd /usr/src/
git clone -o freebsd -b stable/13  https://git.FreeBSD.org/src.git    /usr/src
cd ~
 
Restarted with llvm14/clang14 .
/usr/src/lib/libc/gen/auxv.c:149:8: error: use of undeclared identifier 'AT_USRSTACKBASE'
case AT_USRSTACKBASE
/usr/src/lib/libc/gen/auxv.c:153:8: error: use of undeclared identifier 'AT_USRSTACKLIM'
case AT_USRSTACKLIM
/usr/src/lib/libc/gen/auxv.c:382:7: error: use of undeclared identifier 'AT_USRSTACKBASE'
case AT_USRSTACKBASE
/usr/src/lib/libc/gen/auxv.c:392:7: error: use of undeclared identifier 'AT_USRSTACKLIM'
case AT_USRSTACKLIM:
... no time yet to redo a full git checkout.
 
COMPILER_TYPE= clang
CC= /usr/local/bin/clang14
CXX= /usr/local/bin/clang++14
XCXX= /usr/local/bin/clang++14
CPP= /usr/local/bin/clang-cpp14
XCPP= /usr/local/bin/clang-cpp14
XCC= /usr/local/bin/clang14
LD= /usr/local/llvm14/bin/ld.lld
NM= /usr/local/llvm14/llvm=nm
OBJDUMP= /usr/local/llvm14/llvm-objdump
STRINGS= /usr/local/llvm14/llvm-strings
.if ${.CURDIR:M*/usr/src*} || ${.CURDIR:M*/usr/obj*} WITH_CCACHE_BUILD=yes CCACHE_DIR=/var/ccache/freebsd .endif
-------------make.conf----
Sorry for not wrapping it in code tags, I find it hard to paste from them
=======================================================
WITHOUT_LLVM_TARGET_AARCH64=
WITHOUT_LLVM_TARGET_ARM=
WITHOUT_LLVM_TARGET_MIPS=
WITHOUT_LLVM_TARGET_POWERPC= WITHOUT_LLVM_TARGET_SPARC= WITHOUT_DEBUG_FILES=WITHOUT_CLANG=yes
WITHOUT_PROFILE=yes
WITHOUT_LLVM_TARGET_ALL=
WITHOUT_FLOPPY=
WITHOUT_ASSERT_DEBUG=
WITHOUT_GAMES=
WITHOUT_TESTS=
WITHOUT_TESTS_SUPPORT=
WITHOUT_DEBUG_FILES=
WITHOUT_GOOGLETEST=
WITHOUT_KERNEL_SYMBOLS=
WITHOUT_NLS_CATALOGS= WITHOUT_NLS=
------------------src.conf--------------------
Apologies for not wrapping it in code tags, I find it hard to paste
from them sometimes.
....
The error happens without the two files, though, maybe I should switch 13-stable to 14-current with a git command and try that build?
 
that should be defined in /sys/sys/elf_common.h
Thanks!. I found that file, they are included. I wonder why then the error, it fails consistently in ...

make[4]: stopped in /usr/src/lib/libc
.ERROR_TARGET='auxv.o'
.ERROR_META_FILE='/usr/obj/usr/src/amd64.amd64/lib/libc/auxv.o.meta
with the errors mentioned in the first post
[using filemon]
 
Back
Top