Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
From: Bret Towe <bret.towe@gmail.com>
To: Cake List <cake@lists.bufferbloat.net>
Subject: [Cake] gcc 7.3.1 issue on arch
Date: Wed, 28 Mar 2018 15:30:15 -0700	[thread overview]
Message-ID: <CAM+OQmDZ-g=wHnjo9dapMaKv7UHsgkyEx6zOY9piAGGNUrkLgQ@mail.gmail.com> (raw)

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:

             reply	other threads:[~2018-03-28 22:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-28 22:30 Bret Towe [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.bufferbloat.net/postorius/lists/cake.lists.bufferbloat.net/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAM+OQmDZ-g=wHnjo9dapMaKv7UHsgkyEx6zOY9piAGGNUrkLgQ@mail.gmail.com' \
    --to=bret.towe@gmail.com \
    --cc=cake@lists.bufferbloat.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox