* [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
* Re: [Cake] gcc 7.3.1 issue on arch
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
1 sibling, 1 reply; 6+ messages in thread
From: Toke Høiland-Jørgensen @ 2018-03-29 12:50 UTC (permalink / raw)
To: Bret Towe, Cake List
Bret Towe <bret.towe@gmail.com> writes:
> 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.
I was seeing the same issue on a full kernel compile, which was fixed by
make clean && make
-Toke
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Cake] gcc 7.3.1 issue on arch
2018-03-29 12:50 ` Toke Høiland-Jørgensen
@ 2018-03-29 14:00 ` Bret Towe
0 siblings, 0 replies; 6+ messages in thread
From: Bret Towe @ 2018-03-29 14:00 UTC (permalink / raw)
To: Toke Høiland-Jørgensen; +Cc: Cake List
[-- Attachment #1: Type: text/plain, Size: 745 bytes --]
On Thu, Mar 29, 2018, 5:50 AM Toke Høiland-Jørgensen <toke@toke.dk> wrote:
> Bret Towe <bret.towe@gmail.com> writes:
>
> > 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.
>
> I was seeing the same issue on a full kernel compile, which was fixed by
> make clean && make
>
> -Toke
>
I had tried that and it made no difference for me
[-- Attachment #2: Type: text/html, Size: 1416 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Cake] gcc 7.3.1 issue on arch
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 15:13 ` Jonathan Morton
2018-03-29 18:13 ` Toke Høiland-Jørgensen
1 sibling, 1 reply; 6+ messages in thread
From: Jonathan Morton @ 2018-03-29 15:13 UTC (permalink / raw)
To: Bret Towe; +Cc: Cake List
> On 29 Mar, 2018, at 1:30 am, Bret Towe <bret.towe@gmail.com> wrote:
>
> ./include/linux/kernel.h:6:10: fatal error: stdarg.h: No such file or directory
I've started seeing the same error on my PowerPC box, running Gentoo. It seemed specific to that machine, but the GCC version may well be relevant since Gentoo tends to stabilise new GCC versions earlier on minority platforms.
Shouldn't stdarg.h be a built-in header?
- Jonathan Morton
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Cake] gcc 7.3.1 issue on arch
2018-03-29 15:13 ` Jonathan Morton
@ 2018-03-29 18:13 ` Toke Høiland-Jørgensen
2018-03-30 2:33 ` Jonathan Morton
0 siblings, 1 reply; 6+ messages in thread
From: Toke Høiland-Jørgensen @ 2018-03-29 18:13 UTC (permalink / raw)
To: Jonathan Morton, Bret Towe; +Cc: Cake List
Jonathan Morton <chromatix99@gmail.com> writes:
>> On 29 Mar, 2018, at 1:30 am, Bret Towe <bret.towe@gmail.com> wrote:
>>
>> ./include/linux/kernel.h:6:10: fatal error: stdarg.h: No such file or directory
>
> I've started seeing the same error on my PowerPC box, running Gentoo.
> It seemed specific to that machine, but the GCC version may well be
> relevant since Gentoo tends to stabilise new GCC versions earlier on
> minority platforms.
Yeah, definitely only shows up in very new GCCs.
> Shouldn't stdarg.h be a built-in header?
Yup, which is why this is really odd...
-Toke
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Cake] gcc 7.3.1 issue on arch
2018-03-29 18:13 ` Toke Høiland-Jørgensen
@ 2018-03-30 2:33 ` Jonathan Morton
0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Morton @ 2018-03-30 2:33 UTC (permalink / raw)
To: Toke Høiland-Jørgensen; +Cc: Bret Towe, Cake List
> On 29 Mar, 2018, at 9:13 pm, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>
>> I've started seeing the same error on my PowerPC box, running Gentoo.
>> It seemed specific to that machine, but the GCC version may well be
>> relevant since Gentoo tends to stabilise new GCC versions earlier on
>> minority platforms.
>
> Yeah, definitely only shows up in very new GCCs.
PPC is running gcc 7.3.0, fails. Haven't tried the workaround yet.
E-450 (amd64) is running gcc 6.4.0, succeeds.
- Jonathan Morton
^ 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