Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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