Re: git: 349cc55c9796 - main - Merge llvm-project main llvmorg-14-init-10186-gff7f2cfa959b

From: Charlie Li <vishwin_at_freebsd.org>
Date: Tue, 17 May 2022 03:09:54 UTC
Brooks Davis wrote:
> On Mon, May 16, 2022 at 10:47:49AM -0400, Charlie Li wrote:
>> Dimitry Andric wrote:
>>> This was also reported by another user, and it turned out they were
>>> using WITHOUT_CROSS_COMPILER= in src.conf. If you also have that, try
>>> removing it and rebuilding.
>>>
>> Yeah I eventually figured that part out. Worked around (first attempt)
>> by building with devel/llvm14 CROSS_TOOLCHAIN, but resulted in certain
>> kernel modules (zfs and a few more) with malformed relocations.
>> Subsequent rebuild with the new world's toolchain corrected that.
> 
> Does that mean we're missing patches in the port?  Hopefully anything
> this critical can be merged into LLVM 14.0.3.
> 
Probably:

May 15 22:34:08 current-builder kernel: ---<<BOOT>>---
May 15 22:34:08 current-builder kernel: Copyright (c) 1992-2022 The 
FreeBSD Project.
May 15 22:34:08 current-builder kernel: Copyright (c) 1979, 1980, 1983, 
1986, 1988, 1989, 1991, 1992, 1993, 1994
May 15 22:34:08 current-builder kernel:         The Regents of the 
University of California. All rights reserved.
May 15 22:34:08 current-builder kernel: FreeBSD is a registered 
trademark of The FreeBSD Foundation.
May 15 22:34:08 current-builder kernel: FreeBSD 14.0-CURRENT #121 
main-n255657-48a1a6be196: Sun May 15 21:59:12 EDT 2022
May 15 22:34:08 current-builder kernel: 
root@current-builder:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64
May 15 22:34:08 current-builder kernel: clang version 14.0.2
[...]
May 15 22:34:08 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 8321
May 15 22:34:08 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:08 current-builder kernel: linker_load_file: 
/boot/kernel/zfs.ko - unsupported file type
May 15 22:34:08 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 8321
May 15 22:34:08 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:08 current-builder kernel: linker_load_file: 
/boot/kernel/zfs.ko - unsupported file type
May 15 22:34:08 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 8321
May 15 22:34:08 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:08 current-builder kernel: linker_load_file: 
/boot/kernel/zfs.ko - unsupported file type
May 15 22:34:08 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 8321
May 15 22:34:08 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:08 current-builder kernel: linker_load_file: 
/boot/kernel/zfs.ko - unsupported file type
[...]
May 15 22:34:08 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 551
May 15 22:34:08 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:08 current-builder kernel: linker_load_file: 
/boot/kernel/pf.ko - unsupported file type
May 15 22:34:08 current-builder kernel: KLD pflog.ko: depends on pf - 
not available or version mismatch
May 15 22:34:08 current-builder kernel: linker_load_file: 
/boot/kernel/pflog.ko - unsupported file type
May 15 22:34:08 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 551
May 15 22:34:08 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:08 current-builder kernel: linker_load_file: 
/boot/kernel/pf.ko - unsupported file type
[...]
May 15 22:34:09 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 71
May 15 22:34:09 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:09 current-builder kernel: linker_load_file: 
/boot/kernel/imgact_binmisc.ko - unsupported file type
May 15 22:34:09 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 71
May 15 22:34:09 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:09 current-builder kernel: linker_load_file: 
/boot/kernel/imgact_binmisc.ko - unsupported file type
May 15 22:34:09 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 71
May 15 22:34:09 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:09 current-builder kernel: linker_load_file: 
/boot/kernel/imgact_binmisc.ko - unsupported file type
May 15 22:34:09 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 71
May 15 22:34:09 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:09 current-builder kernel: linker_load_file: 
/boot/kernel/imgact_binmisc.ko - unsupported file type
May 15 22:34:09 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 71
May 15 22:34:09 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:09 current-builder kernel: linker_load_file: 
/boot/kernel/imgact_binmisc.ko - unsupported file type
May 15 22:34:09 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 71
May 15 22:34:09 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:09 current-builder kernel: linker_load_file: 
/boot/kernel/imgact_binmisc.ko - unsupported file type
May 15 22:34:09 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 71
May 15 22:34:09 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:09 current-builder kernel: linker_load_file: 
/boot/kernel/imgact_binmisc.ko - unsupported file type
May 15 22:34:09 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 71
May 15 22:34:09 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:09 current-builder kernel: linker_load_file: 
/boot/kernel/imgact_binmisc.ko - unsupported file type
May 15 22:34:09 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 71
May 15 22:34:09 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:09 current-builder kernel: linker_load_file: 
/boot/kernel/imgact_binmisc.ko - unsupported file type
May 15 22:34:09 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 71
May 15 22:34:09 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:09 current-builder kernel: linker_load_file: 
/boot/kernel/imgact_binmisc.ko - unsupported file type
May 15 22:34:09 current-builder kernel: kldload: unexpected relocation 
type 42, symbol index 71
May 15 22:34:09 current-builder kernel: link_elf_obj: symbol 
__stack_chk_guard undefined
May 15 22:34:09 current-builder kernel: linker_load_file: 
/boot/kernel/imgact_binmisc.ko - unsupported file type

-- 
Charlie Li
…nope, still don't have an exit line.