Bug 233318

Summary: Error building the 12.0-RC1
Product: Base System Reporter: Sergey <kpect>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: emaste
Priority: ---    
Version: CURRENT   
Hardware: amd64   
OS: Any   

Description Sergey 2018-11-19 13:19:23 UTC
Hello,
I'm getting following error when building the 12.0-RC1 world:

$ uname -a
FreeBSD KPECT 11.2-STABLE FreeBSD 11.2-STABLE #0: Mon Oct 22 19:58:06 +03 2018     root@KPECT  amd64

...+

===> lib/csu/amd64 (install)
installing DIRS FILESDIR
sh /usr/src/tools/install.sh  -d -m 0755 -o root  -g wheel  /usr/obj/usr/src/amd64.amd64/tmp/usr/lib
sh /usr/src/tools/install.sh  -o root  -g wheel -m 444  crti.o /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/crti.o
sh /usr/src/tools/install.sh  -o root  -g wheel -m 444  crtn.o /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/crtn.o
sh /usr/src/tools/install.sh  -o root  -g wheel -m 444  Scrt1.o /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/Scrt1.o
sh /usr/src/tools/install.sh  -o root  -g wheel -m 444  gcrt1.o /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/gcrt1.o
sh /usr/src/tools/install.sh  -o root  -g wheel -m 444  crt1.o /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/crt1.o
===> lib/libcompiler_rt (obj,all,install)
sh /usr/src/tools/install.sh  -s -C -o root -g wheel -m 444   libcompiler_rt.a /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/
sh /usr/src/tools/install.sh -l s -o root -g wheel -m 755  libcompiler_rt.a /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libgcc.a
===> lib/libc (obj,all,install)
make[4]: "/usr/src/lib/libc/Makefile" line 187: amd64 libc requires linker ifunc support
*** [lib/libc__L] Error code 1

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

make[3]: stopped in /usr/src
*** [libraries] Error code 2

make[2]: stopped in /usr/src
1 error

make[2]: stopped in /usr/src
*** Error code 2

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in

$ cat /etc/src.conf
WITHOUT_ACCT=YES
WITHOUT_AMD=YES
WITHOUT_APM=YES
WITHOUT_ASSERT_DEBUG=YES
WITHOUT_ATM=YES
WITHOUT_AUDIT=YES
WITHOUT_AUTHPF=YES
WITHOUT_AUTOFS=YES
WITHOUT_BHYVE=YES
WITHOUT_BLACKLIST=YES
WITHOUT_BLUETOOTH=YES
WITHOUT_BOOTPARAMD=YES
WITHOUT_BOOTPD=YES
WITHOUT_BSNMP=YES
WITHOUT_CALENDAR=YES
WITHOUT_CAPSICUM=YES
WITHOUT_CASPER=YES
WITHOUT_CCD=YES
WITHOUT_CLANG_FULL=YES
WITHOUT_CROSS_COMPILER=YES
WITHOUT_CTF=YES
WITHOUT_CTM=YES
WITHOUT_CUSE=YES
WITHOUT_CXGBETOOL=YES
WITHOUT_DEBUG_FILES=YES
WITHOUT_DICT=YES
WITHOUT_DMAGENT=YES
WITHOUT_ED_CRYPTO=YES
WITHOUT_EE=YES
WITHOUT_EFI=YES
WITHOUT_EXAMPLES=YES
WITHOUT_FDT=YES
WITHOUT_FINGER=YES
WITHOUT_FLOPPY=YES
WITHOUT_FORMAT_EXTENSIONS=YES
WITHOUT_FREEBSD_UPDATE=YES
WITHOUT_FTP=YES
WITHOUT_GAMES=YES
WITHOUT_GCC=YES
WITHOUT_GCOV=YES
WITHOUT_GDB=YES
WITHOUT_GNU_SUPPORT=YES
WITHOUT_GPIB=YES
WITHOUT_GPIO=YES
WITHOUT_GROFF=YES
WITHOUT_GSSAPI=YES
WITHOUT_HAST=YES
WITHOUT_HTML=YES
WITHOUT_HYPERV=YES
WITHOUT_INET6=YES
WITHOUT_INETD=YES
WITHOUT_INFO=YES
WITHOUT_IPFILTER=YES
WITHOUT_IPSEC_SUPPORT=YES
WITHOUT_ISCSI=YES
WITHOUT_JAIL=YES
WITHOUT_KERBEROS=YES
WITHOUT_KERNEL_SYMBOLS=YES
WITHOUT_KVM=YES
WITHOUT_KVM_SUPPORT=YES
WITHOUT_LIB32=YES
WITHOUT_LLD=YES
WITHOUT_LLDB=YES
WITHOUT_LLVM_COV=YES
WITHOUT_LLVM_TARGET_ALL=YES
WITHOUT_LOADER_FIREWIRE=YES
WITHOUT_LOADER_GELI=YES
WITHOUT_LOCATE=YES
WITHOUT_LPR=YES
WITHOUT_MAIL=YES
WITHOUT_MANDOCDB=YES
WITHOUT_MAN_UTILS=YES
WITHOUT_MLX5TOOL=YES
WITHOUT_MODULE_DRM=YES
WITHOUT_MODULE_DRM2=YES
WITHOUT_NDIS=YES
WITHOUT_NETGRAPH=YES
WITHOUT_NIS=YES
WITHOUT_NLS=YES
WITHOUT_NLS_CATALOGS=YES
WITHOUT_NS_CACHING=YES
WITHOUT_NTP=YES
WITHOUT_OFED=YES
WITHOUT_PAM_SUPPORT=YES
WITHOUT_PC_SYSINSTALL=YES
WITHOUT_PF=YES
WITHOUT_PMC=YES
WITHOUT_PPP=YES
WITHOUT_PROFILE=YES
WITHOUT_QUOTAS=YES
WITHOUT_RADIUS_SUPPORT=YES
WITHOUT_RBOOTD=YES
WITHOUT_RCMDS=YES
WITHOUT_RCS=YES
WITHOUT_ROUTED=YES
WITHOUT_SENDMAIL=YES
WITHOUT_SHAREDOCS=YES
WITHOUT_SVNLITE=YES
WITHOUT_SYSCONS=YES
WITHOUT_SYSINSTALL=YES
WITHOUT_TALK=YES
WITHOUT_TCP_WRAPPERS=YES
WITHOUT_TCSH=YES
WITHOUT_TELNET=YES
WITHOUT_TESTS=YES
WITHOUT_TFTP=YES
WITHOUT_TIMED=YES
WITHOUT_UNBOUND=YES
WITHOUT_USB_GADGET_EXAMPLES=YES
Comment 1 Ed Maste freebsd_committer freebsd_triage 2018-11-19 14:11:27 UTC
You are trying to build 12.x on an 11.x host using the 11.x toolchain, which does not support all of the functionality required. You need to either build LLD as a build tool, or provide an external toolchain - please carefully review the WITHOUT_CROSS_COMPILER option in src.conf(5).