Package Details: sch_cake-dkms r450.eb4945b-1

Git Clone URL: https://aur.archlinux.org/sch_cake-dkms.git (read-only)
Package Base: sch_cake-dkms
Description: The CAKE scheduler, bufferbloat.net
Upstream URL: bufferbloat.net
Licenses: GPL
Provides: sch_cake
Submitter: gamanakis
Maintainer: gamanakis
Last Packager: gamanakis
Votes: 0
Popularity: 0.000000
First Submitted: 2017-01-10 03:22
Last Updated: 2018-04-26 06:22

Latest Comments

txtsd commented on 2018-03-20 12:12

It works now!

gamanakis commented on 2018-03-20 11:56

As of commit 428 it should compile fine for 4.16 and 4.17(drm-next, net-next) kernels.

txtsd commented on 2018-03-18 20:32

Awesome. Thanks for reporting it!

gamanakis commented on 2018-03-18 20:03

Yes, the problem is the schedulers' "init" and "change" function types changed from (eg tbf_init):

 static int tbf_init(struct Qdisc *sch, struct nlattr *opt)

to:

 static int tbf_init(struct Qdisc *sch, struct nlattr *opt,            
         struct netlink_ext_ack *extack)

I reported this upstream just now, hopefully it will get resolved within the next days. Thank you for bringing it to our attention.

txtsd commented on 2018-03-18 19:36

The second 4.16 is actually 4.17. It displays as 4.16.0-rc1 for some reason. This is the source: https://cgit.freedesktop.org/~agd5f/linux/log/?h=drm-next-4.17-wip

Hopefully this will help you narrow it down too!

gamanakis commented on 2018-03-18 19:20

Ok, I see there might be problem compiling under 4.16. I am giving it a try with net-next right now.

txtsd commented on 2018-03-18 04:41

Thanks for the quick fix attempt. However, it still looks to be the same:

:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove sch_cake/r427.d2d6780 -k 4.15.9-1-ARCH
==> dkms remove sch_cake/r427.d2d6780 -k 4.16.0-1-mainline
Error! There is no instance of sch_cake r427.d2d6780
for kernel 4.16.0-1-mainline (x86_64) located in the DKMS tree.
==> dkms remove sch_cake/r427.d2d6780 -k 4.14.27-1-lts
==> dkms remove sch_cake/r427.d2d6780 -k 4.16.0-rc1-61deb7d0dddd
Error! There are no instances of module: sch_cake
r427.d2d6780 located in the DKMS tree.
:: Processing package changes...
(1/1) upgrading sch_cake-dkms                                                                                      [#####################################################################] 100%
:: Running post-transaction hooks...
(1/2) Install DKMS modules
==> dkms install sch_cake/r427.d2d6780 -k 4.15.9-1-ARCH
==> dkms install sch_cake/r427.d2d6780 -k 4.16.0-1-mainline
Error! Bad return status for module build on kernel: 4.16.0-1-mainline (x86_64)
Consult /var/lib/dkms/sch_cake/r427.d2d6780/build/make.log for more information.
==> dkms install sch_cake/r427.d2d6780 -k 4.14.27-1-lts
==> dkms install sch_cake/r427.d2d6780 -k 4.16.0-rc1-61deb7d0dddd
Error! Bad return status for module build on kernel: 4.16.0-rc1-61deb7d0dddd (x86_64)
Consult /var/lib/dkms/sch_cake/r427.d2d6780/build/make.log for more information.
(2/2) Arming ConditionNeedsUpdate...
➜ cat /var/lib/dkms/sch_cake/r427.d2d6780/build/make.log                                                                                                                                    
DKMS make.log for sch_cake-r427.d2d6780 for kernel 4.16.0-rc1-61deb7d0dddd (x86_64)
Sun Mar 18 10:08:24 IST 2018
make: Entering directory '/usr/lib/modules/4.16.0-rc1-61deb7d0dddd/build'
  CC [M]  /var/lib/dkms/sch_cake/r427.d2d6780/build/sch_cake.o
/var/lib/dkms/sch_cake/r427.d2d6780/build/sch_cake.c:2708:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .init  = cake_init,
           ^~~~~~~~~
/var/lib/dkms/sch_cake/r427.d2d6780/build/sch_cake.c:2708:11: note: (near initialization for ‘cake_qdisc_ops.init’)
/var/lib/dkms/sch_cake/r427.d2d6780/build/sch_cake.c:2711:13: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .change  = cake_change,
             ^~~~~~~~~~~
/var/lib/dkms/sch_cake/r427.d2d6780/build/sch_cake.c:2711:13: note: (near initialization for ‘cake_qdisc_ops.change’)
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:323: /var/lib/dkms/sch_cake/r427.d2d6780/build/sch_cake.o] Error 1
make: *** [Makefile:1549: _module_/var/lib/dkms/sch_cake/r427.d2d6780/build] Error 2
make: Leaving directory '/usr/lib/modules/4.16.0-rc1-61deb7d0dddd/build'

gamanakis commented on 2018-03-16 13:48

@txtsd: I fixed it by removing the dkms hooks, since pacman now has native support for them. Could you give it a try?

PS: hopefully cake will be upstreamed into the kernel soon :)

txtsd commented on 2018-03-16 04:58

Could you fix these errors, please? I'm running linux-ryzen-amd-staging-drm-next-git for a kernel.

==> dkms remove sch_cake/r427.d2d6780 -k 4.16.0-rc1-61deb7d0dddd
Error! There is no instance of sch_cake r427.d2d6780
for kernel 4.16.0-rc1-61deb7d0dddd (x86_64) located in the DKMS tree.

and

==> dkms install sch_cake/r427.d2d6780 -k 4.16.0-rc1-61deb7d0dddd
Error! Bad return status for module build on kernel: 4.16.0-rc1-61deb7d0dddd (x86_64)
Consult /var/lib/dkms/sch_cake/r427.d2d6780/build/make.log for more information.

but the log file doesn't exist.