Skip to content

Update Makefile #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update Makefile #13

wants to merge 1 commit into from

Conversation

DKCopy
Copy link

@DKCopy DKCopy commented Sep 15, 2022

Fixed gcc-12.2.1 & kernel 5.19.8 compile error

make -C /lib/modules/5.19.8-200.fc36.x86_64/build M=/devel/kgdboe modules make[1]: Entering directory '/usr/src/kernels/5.19.8-200.fc36.x86_64'
CC [M] /devel/kgdboe/irqsync.o
In file included from ./include/linux/string.h:253,
from ./include/linux/bitmap.h:11,
from ./include/linux/cpumask.h:12,
from ./arch/x86/include/asm/cpumask.h:5,
from ./arch/x86/include/asm/msr.h:11,
from ./arch/x86/include/asm/processor.h:22,
from ./arch/x86/include/asm/cpufeature.h:5,
from ./arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:60,
from ./arch/x86/include/asm/preempt.h:7,
from ./include/linux/preempt.h:78,
from ./include/linux/spinlock.h:55,
from ./include/linux/irq.h:14,
from /devel/kgdboe/irqsync.h:2,
from /devel/kgdboe/irqsync.c:1:
In function ‘fortify_memset_chk’,
inlined from ‘irqsync_create’ at /devel/kgdboe/irqsync.c:27:2:
./include/linux/fortify-string.h:254:25: error: call to ‘__write_overflow’ declared with attribute error: detected write beyond size of object (1st parameter)
254 | __write_overflow();
| ^~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:249: /devel/kgdboe/irqsync.o] Error 1
make[1]: *** [Makefile:1851: /devel/kgdboe] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.19.8-200.fc36.x86_64'
make: *** [Makefile:16: all] Error 2

Fixed gcc-12.2.1 & kernel 5.19.8 compile error

make -C /lib/modules/5.19.8-200.fc36.x86_64/build M=/devel/kgdboe modules
make[1]: Entering directory '/usr/src/kernels/5.19.8-200.fc36.x86_64'
  CC [M]  /devel/kgdboe/irqsync.o
In file included from ./include/linux/string.h:253,
                 from ./include/linux/bitmap.h:11,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:22,
                 from ./arch/x86/include/asm/cpufeature.h:5,
                 from ./arch/x86/include/asm/thread_info.h:53,
                 from ./include/linux/thread_info.h:60,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:78,
                 from ./include/linux/spinlock.h:55,
                 from ./include/linux/irq.h:14,
                 from /devel/kgdboe/irqsync.h:2,
                 from /devel/kgdboe/irqsync.c:1:
In function ‘fortify_memset_chk’,
    inlined from ‘irqsync_create’ at /devel/kgdboe/irqsync.c:27:2:
./include/linux/fortify-string.h:254:25: error: call to ‘__write_overflow’ declared with attribute error: detected write beyond size of object (1st parameter)
  254 |                         __write_overflow();
      |                         ^~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:249: /devel/kgdboe/irqsync.o] Error 1
make[1]: *** [Makefile:1851: /devel/kgdboe] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.19.8-200.fc36.x86_64'
make: *** [Makefile:16: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant