Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 824586 - sys-kernel/gentoo-sources-5.14.20 build failure
Summary: sys-kernel/gentoo-sources-5.14.20 build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: 5.15.4, 5.14.21
Keywords: InVCS
: 825346 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-11-18 20:49 UTC by Hadrien Lacour
Modified: 2021-11-21 22:57 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=sys-kernel/gentoo-sources-5.14.20' (info.txt,16.00 KB, text/plain)
2021-11-18 20:49 UTC, Hadrien Lacour
Details
kernel config (config,119.38 KB, text/plain)
2021-11-18 20:49 UTC, Hadrien Lacour
Details
Fix function declaration (bmq_sched_post_fork.patch,397 bytes, patch)
2021-11-18 21:28 UTC, Mike Pagano
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hadrien Lacour 2021-11-18 20:49:29 UTC
Created attachment 752670 [details]
emerge --info '=sys-kernel/gentoo-sources-5.14.20'

Failed to build with

kernel/sched/alt_core.c:2765:6: error: conflicting types for ‘sched_post_fork’; have ‘void(struct task_struct *)’
 2765 | void sched_post_fork(struct task_struct *p) {}
      |      ^~~~~~~~~~~~~~~
In file included from ./include/linux/sched/signal.h:9,
                 from ./include/linux/rcuwait.h:6,
                 from ./include/linux/percpu-rwsem.h:7,
                 from ./include/linux/fs.h:33,
                 from ./include/linux/huge_mm.h:8,
                 from ./include/linux/mm.h:728,
                 from ./include/linux/ring_buffer.h:5,
                 from ./include/linux/trace_events.h:6,
                 from ./include/trace/trace_events.h:21,
                 from ./include/trace/define_trace.h:102,
                 from ./include/trace/events/sched.h:738,
                 from kernel/sched/alt_core.c:15:
./include/linux/sched/task.h:57:13: note: previous declaration of ‘sched_post_fork’ with type ‘void(struct task_struct *, struct kernel_clone_args *)’
   57 | extern void sched_post_fork(struct task_struct *p,
      |             ^~~~~~~~~~~~~~~
  CC      kernel/trace/trace_nop.o
make[2]: *** [scripts/Makefile.build:271: kernel/sched/alt_core.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Attaching emerge --info and kernel config
Comment 1 Hadrien Lacour 2021-11-18 20:49:51 UTC
Created attachment 752674 [details]
kernel config
Comment 2 Mike Pagano gentoo-dev 2021-11-18 21:28:40 UTC
Created attachment 752678 [details, diff]
Fix function declaration

Can you try this?
Comment 3 Mike Pagano gentoo-dev 2021-11-18 23:56:44 UTC
(In reply to Mike Pagano from comment #2)
> Created attachment 752678 [details, diff] [details, diff]
> Fix function declaration
> 
> Can you try this?

nevermind that's against 5.15.  I'll commit a fix for 5.14
Comment 4 Mike Pagano gentoo-dev 2021-11-19 00:18:55 UTC
commit 17ecdd1bda59626c4d9ae901a5e75370cb8b3674 (HEAD -> 5.14, origin/5.14)
Author: Mike Pagano <mpagano@gentoo.org>
Date:   Thu Nov 18 19:17:09 2021 -0500

    Fix for BMQ(BitMap Queue) Scheduler
    
    Bug: https://bugs.gentoo.org/824586
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Comment 5 setun.90 2021-11-19 08:48:35 UTC
I'm getting this exact bug with 5.15.3 too; 5.15.2 builds fine.
Comment 6 MZ 2021-11-19 09:18:18 UTC
same problem 5.15.3

...
AR      arch/x86/built-in.a
  CC      kernel/sched/alt_core.o
kernel/sched/alt_core.c:2997:6: error: conflicting types for ‘sched_post_fork’; have ‘void(struct task_struct *)’
 2997 | void sched_post_fork(struct task_struct *p) {}
      |      ^~~~~~~~~~~~~~~
In file included from ./include/linux/sched/signal.h:9,
                 from ./include/linux/rcuwait.h:6,
                 from ./include/linux/percpu-rwsem.h:7,
                 from ./include/linux/fs.h:33,
                 from ./include/linux/huge_mm.h:8,
                 from ./include/linux/mm.h:727,
                 from ./include/linux/ring_buffer.h:5,
                 from ./include/linux/trace_events.h:6,
                 from ./include/trace/trace_events.h:21,
                 from ./include/trace/define_trace.h:102,
                 from ./include/trace/events/sched.h:738,
                 from kernel/sched/alt_core.c:15:
./include/linux/sched/task.h:57:13: note: previous declaration of ‘sched_post_fork’ with type ‘void(struct task_struct *, struct kernel_clone_args *)’
   57 | extern void sched_post_fork(struct task_struct *p,
      |             ^~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:277: kernel/sched/alt_core.o] Error 1
make[1]: *** [scripts/Makefile.build:540: kernel/sched] Error 2
make: *** [Makefile:1868: kernel] Error 2
Comment 7 Mike Pagano gentoo-dev 2021-11-19 14:52:04 UTC
commit 988c70b911d405821a00b9afa2728bf59e24d1bb (HEAD -> 5.15, origin/5.15)
Author: Mike Pagano <mpagano@gentoo.org>
Date:   Fri Nov 19 09:51:23 2021 -0500

    Fix for BMQ(BitMap Queue) Scheduler
    
    Bug: https://bugs.gentoo.org/824586
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Comment 8 Hadrien Lacour 2021-11-19 17:49:53 UTC
Works fine, thanks.
Comment 9 Mike Pagano gentoo-dev 2021-11-20 22:44:35 UTC
*** Bug 825346 has been marked as a duplicate of this bug. ***
Comment 11 Mike Pagano gentoo-dev 2021-11-21 22:57:47 UTC
Upgrade to 5.15 for BMQ.  This kernel is EOL'd.