I just went through a gcc upgrade process following the gentoo guide. After successful finish of the emerge -e world step, I wanted to recompile the kernel but ended up with errors. I then tried make clean make mrproper cp /boot/my_saved_config .config make menuconfig make dep make bzImage but still got the following error: make[1]: Entering directory `/usr/src/linux-2.4.31-gentoo-r1/kernel' make all_targets make[2]: Entering directory `/usr/src/linux-2.4.31-gentoo-r1/kernel' gcc -D__KERNEL__ -I/usr/src/linux-2.4.31-gentoo-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium4 -fno-unit-at-a-time -nostdinc -iwithprefix include -DKBUILD_BASENAME=sched -fno-omit-frame-pointer -c -o sched.o sched.c sched.c: In function `resched_task': sched.c:465: warning: unused variable `tsk' sched.c:466: warning: unused variable `i' sched.c:466: warning: unused variable `cpu' sched.c: At top level: sched.c:1445: error: conflicting types for '__wake_up_sync' /usr/src/linux-2.4.31-gentoo-r1/include/linux/sched.h:631: error: previous declaration of '__wake_up_sync' was here sched.c:1445: error: conflicting types for '__wake_up_sync' /usr/src/linux-2.4.31-gentoo-r1/include/linux/sched.h:631: error: previous declaration of '__wake_up_sync' was here make[2]: *** [sched.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.4.31-gentoo-r1/kernel' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.31-gentoo-r1/kernel' make: *** [_dir_kernel] Error 2 This leaves me kind of in the middle of the upgrade so any solution or workaround would be highly appreciated. Thanks!
Should be fixed in 2.4.32; please try that and if you still get this problem reopen the bug. Thanks.