STAGE 1 After: [cut] ln -snf /usr/portage/profiles/default-linux/x86/no-nptl/2.4 /etc/make.profile; [cut] emerge --emptytree system; [cut] i try compile kernel 2.4 and there is a problem... in my system do not exist gcc 3.X i have only 4.1.1. Why in ebuild from kernel 2.4 there is no line with DEPEND gcc 3.X ?? If He need it to compile? Mayby someone can add in ebuild DEPEND="=sys-devel/gcc-3*" Greet`s
Reopen with some errors you get when compiling kernel, we can't guess.
After: 1. emerge hardened-sources; 2. make menuconfig; 3. make dep 4. make bzImage I have got this error: /usr/src/linux-2.4.32-hardened-r6/include/linux/skbuff.h: In function '__skb_pull': /usr/src/linux-2.4.32-hardened-r6/include/linux/skbuff.h:845: warning: pointer targets in return differ in signedness /usr/src/linux-2.4.32-hardened-r6/include/linux/skbuff.h: In function 'skb_pull': /usr/src/linux-2.4.32-hardened-r6/include/linux/skbuff.h:863: warning: pointer targets in return differ in signedness /usr/src/linux-2.4.32-hardened-r6/include/linux/skbuff.h: In function '__pskb_pull': /usr/src/linux-2.4.32-hardened-r6/include/linux/skbuff.h:874: warning: pointer targets in return differ in signedness /usr/src/linux-2.4.32-hardened-r6/include/linux/skbuff.h: In function 'pskb_pull': /usr/src/linux-2.4.32-hardened-r6/include/linux/skbuff.h:881: warning: pointer targets in return differ in signedness nbd.c: At top level: nbd.c:73: error: static declaration of 'requests_in' follows non-static declaration /usr/src/linux-2.4.32-hardened-r6/include/linux/nbd.h:33: error: previous declaration of 'requests_in' was here nbd.c:74: error: static declaration of 'requests_out' follows non-static declaration /usr/src/linux-2.4.32-hardened-r6/include/linux/nbd.h:34: error: previous declaration of 'requests_out' was here make[3]: *** [nbd.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.4.32-hardened-r6/drivers/block' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.32-hardened-r6/drivers/block' make[1]: *** [_subdir_block] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.32-hardened-r6/drivers' make: *** [_dir_drivers] Error 2 My .config file is there: http://pastebin.ca/220510 But after i give: emerge =gcc-3.4.6-r1 gcc-config i686-pc-linux-gnu-3.4.6 source /etc/profile emerge hardened-sources; everythink is all right.. so this is a problem with GCC 4.1.1 Greet`s
(In reply to comment #2) > everythink is all right.. so this is a problem with GCC 4.1.1 No, it's problem w/ kernel code; there's nothing wrong w/ gcc-4.1.1 here.
*** Bug 152747 has been marked as a duplicate of this bug. ***
this problem has been resolved by a custom patch to the newer 2.4.x hardened kernel sources allowing the compilation with gcc 4 Reopen if you still have problems. Alex