problem compiling drm-knod
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 18 Jul 2022 14:03:05 UTC
Hello: On a system running: 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-d6327ae8c1: Sun Jan 24 14:16:54 EST 2021 amd64 with ports updated daily, building drm-kmod fails with: ===> Staging for drm-kmod-20220501 ===> drm-kmod-20220501 depends on file: /boot/modules/drm.ko - not found ===> Building for drm-510-kmod-5.10.113_1 /bin/mkdir -p /data/port-work/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_2/obj (cd /data/port-work/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_2 ; /usr/bin/env MAKEOBJDIRPREFIX=/data/port-work/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_2/obj KMODDIR="/boot/modules" SYSDIR="/usr/src/sys" NO_XREF=yes XDG_DATA_HOME=/data/port-work/usr/ports/graphics/drm-510-kmod/work XDG_CONFIG_HOME=/data/port-work/usr/ports/graphics/drm-510-kmod/work XDG_CACHE_HOME=/data/port-work/usr/ports/graphics/drm-510-kmod/work/.cache HOME=/data/port-work/usr/ports/graphics/drm-510-kmod/work PATH=/usr/local/libexec/ccache:/data/port-work/usr/ports/graphics/drm-510-kmod/work/.bin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/root PKG_CONFIG_LIBDIR=/data/port-work/usr/ports/graphics/drm-510-kmod/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/libdata/pkgconfig NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fno-strict-aliasing " MANPREFIX="/usr/local" CCACHE_DIR="/data/ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" /usr/bin/make obj) ===> dmabuf (obj) ===> linuxkpi (obj) ===> ttm (obj) ===> drm (obj) ===> amd (obj) ===> amd/amdgpu (obj) ===> radeon (obj) ===> i915 (obj) --- all_subdir_dmabuf --- ===> dmabuf (all) --- all_subdir_linuxkpi --- ===> linuxkpi (all) --- all_subdir_ttm --- ===> ttm (all) --- all_subdir_drm --- ===> drm (all) --- all_subdir_amd --- ===> amd (all) --- all_subdir_amd/amdgpu --- ===> amd/amdgpu (all) --- amdgpu_csa.o --- --- amdgpu_ctx.o --- --- amdgpu_debugfs.o --- <deleted> --- amdgpu_device.o --- t-work/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_2/drivers/gpu/drm/amd/pm/swsmu/smu11 -I/data/port-work/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_2/drivers/gpu/drm/amd/pm/swsmu/smu12 -I/data/port-work/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_2/drivers/gpu/drm/scheduler -include /data/port-work/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_2/obj/data/port-work/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_2/amd/amdgpu/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -fdebug-prefix-map=./i386=/usr/src/sys/i386/include -MD -MF.depend.amdgpu_device.o -MTamdgpu_device.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wnested-externs -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-format-zero-length -Wno-expansion-to-defined -Wno-pointer-arith -Wno-format -Wno-cast-qual -Wno-pointer-sign -Wno-unused-but-set-variable -Wno-unused-but-set-variable -mno-aes -mno-avx -std=iso9899:1999 -c /data/port-work/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_2/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c -o amdgpu_device.o --- amdgpu_csa.o --- error: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option] error: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option] *** [amdgpu_csa.o] Error code 1 make[4]: stopped in /data/port-work/usr/ports/graphics/drm-510-kmod/work/drm-kmod-drm_v5.10.113_2/amd/amdgpu --- amdgpu_device.o --- error: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option] error: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option] *** [amdgpu_device.o] Error code 1 This is _way_ out of my skill-set. Recriminations later; fixing now. :-) Respectfully, Robert Huff