[Bug 267028] kernel panics when booting with both (zfs,ko or vboxnetflt,ko or acpi_wmi.ko) and amdgpu.ko

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 27 Dec 2024 20:28:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267028

--- Comment #317 from George Mitchell <george@m5p.com> ---
cc -target x86_64-unknown-freebsd13.4
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe  -fno-strict-aliasing 
-g -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include
-I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include
opt_global.h -fno-common    -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -MD  -MF.depend.kern_ktrace.o -MTkern_ktrace.o
-fdebug-prefix-map=./machine=/usr/src/sys/amd64/include
-fdebug-prefix-map=./x86=/usr/src/sys/x86/include -mcmodel=kernel -mno-red-zone
-mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding
-fwrapv -fstack-protector -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
-D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=tautological-compare
-Wno-error=empty-body -Wno-error=parentheses-equality
-Wno-error=unused-function -Wno-error=pointer-sign
-Wno-error=shift-negative-value -Wno-address-of-packed-member
-Wno-error=array-parameter -Wno-error=deprecated-non-prototype
-Wno-error=strict-prototypes -Wno-error=unused-but-set-variable
-Wno-error=unused-but-set-variable -Wno-format-zero-length   -mno-aes -mno-avx 
-std=iso9899:1999 -Werror  /usr/src/sys/kern/kern_ktrace.c
/usr/src/sys/kern/kern_ktrace.c:700:1: warning: a function definition without a
prototype is deprecated in all versions of C and is not supported in C23
[-Wdeprecated-non-prototype]
  700 | ktrnamei(path)
      | ^
1 warning generated.
ctfconvert -L VERSION -g kern_ktrace.o
cc -target x86_64-unknown-freebsd13.4
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe  -fno-strict-aliasing 
-g -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include
-I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include
opt_global.h -fno-common    -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -MD  -MF.depend.kern_linker.o -MTkern_linker.o
-fdebug-prefix-map=./machine=/usr/src/sys/amd64/include
-fdebug-prefix-map=./x86=/usr/src/sys/x86/include -mcmodel=kernel -mno-red-zone
-mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding
-fwrapv -fstack-protector -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign
-D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
-fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=tautological-compare
-Wno-error=empty-body -Wno-error=parentheses-equality
-Wno-error=unused-function -Wno-error=pointer-sign
-Wno-error=shift-negative-value -Wno-address-of-packed-member
-Wno-error=array-parameter -Wno-error=deprecated-non-prototype
-Wno-error=strict-prototypes -Wno-error=unused-but-set-variable
-Wno-error=unused-but-set-variable -Wno-format-zero-length   -mno-aes -mno-avx 
-std=iso9899:1999 -Werror  /usr/src/sys/kern/kern_linker.c
/usr/src/sys/kern/kern_linker.c:1579:3: error: call to undeclared function
'db_hwatchpoint_cmd'; ISO C99 and later do not support implicit function
declarations [-Werror,-Wimplicit-function-declaration]
 1579 |                 db_hwatchpoint_cmd
      |                 ^
/usr/src/sys/kern/kern_linker.c:1580:7: error: use of undeclared identifier
'db_expr_t'
 1580 |                         (
(db_expr_t)(void*)&modlist_newmod_hist[modlist_newmod_hist_pos-1].modAddr->link.tqe_next
      |                            ^
/usr/src/sys/kern/kern_linker.c:1580:18: error: expected expression
 1580 |                         (
(db_expr_t)(void*)&modlist_newmod_hist[modlist_newmod_hist_pos-1].modAddr->link.tqe_next
      |                                       ^
3 errors generated.
*** Error code 1

Stop.
make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/M5P
*** Error code 1

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

Stop.

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