Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
* [Cake] gcc 7.3.1 issue on arch
@ 2018-03-28 22:30 Bret Towe
  2018-03-29 12:50 ` Toke Høiland-Jørgensen
  2018-03-29 15:13 ` Jonathan Morton
  0 siblings, 2 replies; 6+ messages in thread
From: Bret Towe @ 2018-03-28 22:30 UTC (permalink / raw)
  To: Cake List

for anyone seeing a compile error like the below on Arch Linux

  CC [M]  /root/sch_cake/sch_cake.o
In file included from ./include/linux/list.h:9:0,
                 from ./include/linux/module.h:9,
                 from /root/sch_cake/sch_cake.c:42:
./include/linux/kernel.h:6:10: fatal error: stdarg.h: No such file or directory
 #include <stdarg.h>
          ^~~~~~~~~~
compilation terminated.


the workaround is below

diff --git a/Makefile b/Makefile
index 2c473e3..428ffbf 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ obj-m := sch_cake.o
 KERNEL_VERSION := $(shell uname -r)
 IDIR := /lib/modules/$(KERNEL_VERSION)/kernel/net/sched/
 KDIR := /lib/modules/$(KERNEL_VERSION)/build
+ccflags-y=-I/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.1/include
 PWD := $(shell pwd)
 VERSION := $(shell git rev-parse HEAD 2>/dev/null)
 default:

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-03-30  2:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-28 22:30 [Cake] gcc 7.3.1 issue on arch Bret Towe
2018-03-29 12:50 ` Toke Høiland-Jørgensen
2018-03-29 14:00   ` Bret Towe
2018-03-29 15:13 ` Jonathan Morton
2018-03-29 18:13   ` Toke Høiland-Jørgensen
2018-03-30  2:33     ` Jonathan Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox