https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111323

Xi Ruoyao <xry111 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 CC|                            |xry111 at gcc dot gnu.org
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
You are misusing the kernel building system:

1. The kernel building system explicitly specifies -std=gnu11 so you don't need
to add it.  You should be able to see it via "make KDIR=... V=1".

2. "hello-y := hello.o" introduces a circular dependency.

3. The kernel building system suggests to use ccflags-y += ..., not CFLAGS +=
...

Read https://www.kernel.org/doc/html/latest/kbuild/modules.html.

Not a GCC issue anyway.

Reply via email to