Gentoo Archives: gentoo-alpha

From: "Jose Luis Rivero (YosWinK)" <yoswink@g.o>
To: gentoo-alpha@l.g.o
Subject: Re: [gentoo-alpha] gcc-3.4.4-r1 and kernel-2.4.30
Date: Mon, 05 Dec 2005 19:05:38
Message-Id: 43948DF2.7040209@gentoo.org
In Reply to: Re: [gentoo-alpha] gcc-3.4.4-r1 and kernel-2.4.30 by Davide Cittaro
1 Davide Cittaro wrote:
2 >
3 > On Dec 4, 2005, at 12:31 AM, mathewt@××××××.com wrote:
4 >
5 >> Hello All,
6 >>
7 >> I switched to gcc-3.4.4-r1, rebuilt the tool-chain and was trying
8 >> to recompile the kernel (2.4.30)
9 >>
10 >> gcc would always fail on arch/alpha/kernel/pci_iommu.c
11 >> the error message is
12 >>
13 >> pci_iommu.c: In function `sg_fill':
14 >> pci_iommu.c:510: sorry, unimplemented: inlining failed in call to
15 >> 'sg_fill': recursive inlining
16 >> pci_iommu.c:558: sorry, unimplemented: called from here
17 >> make[1]: *** [pci_iommu.o] Error 1
18 >> make: *** [_dir_arch/alpha/kernel] Error 2
19 >> make: *** Waiting for unfinished jobs....
20 >>
21 >> gcc-3.3.2 seemed to handle this fine. has anyone hit the same issue
22 >> and is there a patch for this ?
23 >>
24 >
25 > I had the same problems,
26
27 Confirmed. The problem appears with gcc-3.4.4-r1 (stable branch) and
28 both, vanilla-sources 2.4.30 (stable) and 2.4.32 (testing).
29
30 I compiled everything with gcc-2.96 on a
31 > RedHat...
32
33 Problem:
34 I think the problem is the way in which gcc-3.4.4 manage recursive
35 inlining. sg_fill is an inline function which call itself and 3.4.4
36 doesn't like that.
37
38 Status:
39 We have our gcc ninjas working on it, hope to have it fixed soon.
40
41 Workaround:
42 I think is only problem of gcc-3.4.4. I can compile it with gcc-3.3.2
43 just fine. Since gcc is installed slotted, probably everyone who updated
44 the gcc compiler can change it using gcc-config and compile the kernel
45 with an old gcc (if needed).
46
47 Thanks guys for reporting.
48
49 ----------------------------
50 YosWinK @ gentoo .org
51 Gentoo Alpha
52 --
53 gentoo-alpha@g.o mailing list