Discussion:
Compilation failure of the kernel for drm-next
(too old to reply)
Mylan Connolly
2018-02-27 01:17:57 UTC
Permalink
Hello all,

I'm not sure if this is the best place to send this, but it looks like the issue tracker in Github is a bit dead.

I have been trying to compile it for the past few weeks after downloading the latest code about once a week and it looks like this issue hasn't resolved itself.

When I try to compile the kernel (using the command `make kernel`) I get the following error. Let me know if there's anything else I can do to assist.

/usr/local/bin/ccache cc -target x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe '-DKBUILD_MODNAME="i915kms"' -include /usr/src/sys/dev/drm/drm_os_config.h -march=skylake -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/usr/src/sys/compat/linuxkpi/dummy/include -I/usr/src/sys/compat/linuxkpi/gplv2/include -I/usr/src/sys/compat/linuxkpi/common/include -I/usr/src/sys/compat/linuxkpi/common/include/uapi -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/amd64.amd64/sys/GENERIC/opt_global.h -I. -I/usr/src/sys -fno-common -g -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/obj/usr/src/amd64.amd64/sys/GENERIC -MD -MF.depend.intel_freebsd.o -MTintel_freebsd.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototype
s -Wpointer-arith -Winline -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-error-address-of-packed-member -Wno-pointer-arith -Wno-format -mno-aes -mno-avx -std=iso9899:1999 -c /usr/src/sys/dev/drm/i915/intel_freebsd.c -o intel_freebsd.o

/usr/src/sys/dev/drm/i915/intel_freebsd.c:203:5: error: use of undeclared identifier 'VM_WAIT'; did you mean 'VM_LAST'?

VM_WAIT;

^~~~~~~

VM_LAST

/usr/src/sys/sys/systm.h:81:50: note: 'VM_LAST' declared here

VM_GUEST_VMWARE, VM_GUEST_KVM, VM_GUEST_BHYVE, VM_LAST };

^

/usr/src/sys/dev/drm/i915/intel_freebsd.c:203:5: error: expression result unused [-Werror,-Wunused-value]

VM_WAIT;

^~~~~~~

2 errors generated.

*** [intel_freebsd.o] Error code 1

make[6]: stopped in /usr/src/sys/modules/drm/i915/i915kms

1 error

make[6]: stopped in /usr/src/sys/modules/drm/i915/i915kms

*** [all_subdir_drm/i915/i915kms] Error code 2

make[5]: stopped in /usr/src/sys/modules/drm/i915

1 error

make[5]: stopped in /usr/src/sys/modules/drm/i915

*** [all_subdir_drm/i915] Error code 2

make[4]: stopped in /usr/src/sys/modules/drm

1 error

make[4]: stopped in /usr/src/sys/modules/drm

*** [all_subdir_drm] Error code 2

make[3]: stopped in /usr/src/sys/modules

1 error

make[3]: stopped in /usr/src/sys/modules

*** [modules-all] Error code 2

make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC

1 error

make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC

*** [buildkernel] Error code 2

make[1]: stopped in /usr/src

1 error

make[1]: stopped in /usr/src

*** [buildkernel] Error code 2

make: stopped in /usr/src

1 error

make: stopped in /usr/src

Mylan
Pete Wright
2018-02-27 02:03:54 UTC
Permalink
Post by Mylan Connolly
Hello all,
I'm not sure if this is the best place to send this, but it looks like the issue tracker in Github is a bit dead.
there may not be much traffic on it recently, but people are def still
actively working on the repository and will see when new issues are
reported.

as of now your best to to use or test out the drm-next bits is to run a
recent 12-CURRENT with no patches applied.  then you can build the port
or package via the ports tree under graphics/drm-next-kmod.  it
currently runs on my end under 12-CURRENT and 11-STABLE.

cheers,
-pete
--
Pete Wright
***@nomadlogic.org
@nomadlogicLA
Greg V
2018-02-27 08:51:30 UTC
Permalink
Post by Pete Wright
Post by Mylan Connolly
Hello all,
I'm not sure if this is the best place to send this, but it looks
like the issue tracker in Github is a bit dead.
there may not be much traffic on it recently, but people are def still
actively working on the repository and will see when new issues are
reported.
as of now your best to to use or test out the drm-next bits is to run
a recent 12-CURRENT with no patches applied.  then you can build the
port or package via the ports tree under graphics/drm-next-kmod.  it
currently runs on my end under 12-CURRENT and 11-STABLE.
Yeah, and the issue tracker for drm-next-kmod is

https://github.com/FreeBSDDesktop/kms-drm/issues

NOT https://github.com/FreeBSDDesktop/freebsd-base-graphics/issues
Mylan Connolly
2018-02-27 14:43:40 UTC
Permalink
Thanks for the help, all.

Last night I set my computer to compile from the 12-CURRENT head and went to sleep.

This morning, I installed the graphics/drm-next-kmod port and after a little troubleshooting (I had to set the compat.linuxkpi.enable_hangcheck=0 bootflag) I got it up and running. The only issue now is I cannot adjust the backlight.

Thanks again for all the help

​Mylan

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Post by Greg V
Post by Pete Wright
Post by Mylan Connolly
Hello all,
I'm not sure if this is the best place to send this, but it looks
like the issue tracker in Github is a bit dead.
there may not be much traffic on it recently, but people are def still
actively working on the repository and will see when new issues are
reported.
as of now your best to to use or test out the drm-next bits is to run
a recent 12-CURRENT with no patches applied.  then you can build the
port or package via the ports tree under graphics/drm-next-kmod.  it
currently runs on my end under 12-CURRENT and 11-STABLE.
Yeah, and the issue tracker for drm-next-kmod is
https://github.com/FreeBSDDesktop/kms-drm/issues
NOT https://github.com/FreeBSDDesktop/freebsd-base-graphics/issues
Loading...