Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152757 - hardened-sources-2.4 doesn't compile with gcc-4.1
Summary: hardened-sources-2.4 doesn't compile with gcc-4.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal
Assignee: John Mylchreest (RETIRED)
URL:
Whiteboard:
Keywords:
: 152747 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-25 01:50 UTC by Marek Krolikowski
Modified: 2007-01-09 19:01 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Krolikowski 2006-10-25 01:50:03 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-10-25 01:59:47 UTC
Reopen with some errors you get when compiling kernel, we can't guess.
Comment 2 Marek Krolikowski 2006-10-25 02:05:34 UTC
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
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-10-25 02:36:50 UTC
(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.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-10-25 03:15:34 UTC
*** Bug 152747 has been marked as a duplicate of this bug. ***
Comment 5 Alexander Gabert (RETIRED) gentoo-dev 2007-01-09 19:01:26 UTC
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