Summary: | sys-kernel/xen-sources-2.6.21 fails to compile with gcc 4.3 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Salvatore Cristofaro <cristofaro> |
Component: | [OLD] GCC Porting | Assignee: | Gentoo Xen Devs <xen> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | aoz.syn, esigra |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 198121 | ||
Attachments: | xen-sources-2.6.21 patch for compile with gcc 4.3.x |
Description
Salvatore Cristofaro
2008-06-09 11:24:36 UTC
Same problem here. Please fix it. (In reply to comment #1) > Same problem here. > > Please fix it. > GCC 4.3.0 has many bugs and it's know to miscompile the kernel code. Even if this compilation problem would be fixed the kernel won't boot under XEN anyway (already tried). 4.3.1 addressed some of these errors already. Check it out and report your results. While I don't understand what are exactly xen-sources for, comment 2 is (probably) FUD. There were certain fixes added to gentoo-sources-2.6.24-r4 that fixed the problem reported here (cld issue was fixed in vanilla 2.6.24.4, this build issue in 2.6.24.5). It simply looks like xen-sources should be updated. The patch you are speaking about, it's (probably) the same that i already posted. The problem it's in the xen patch instead. At this moment, there is not 2.6.24.x xen patched kernel working as Dom0. The last version for xen dom0 it's the 2.6.22, not in portage yet. (In reply to comment #3) > While I don't understand what are exactly xen-sources for, > comment 2 is (probably) FUD. > There were certain fixes added to gentoo-sources-2.6.24-r4 that fixed the > problem reported here (cld issue was fixed in vanilla 2.6.24.4, this build > issue in 2.6.24.5). > It simply looks like xen-sources should be updated. > As far as I can tell these are the relevant patches: http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git;a=blob;f=queue-2.6.24/time-prevent-the-loop-in-timespec_add_ns-from-being-optimised-away.patch;h=489cbdaa36a065ee536b73f53b7cba8a8e8635bc;hb=cf3242783319c215e3d2e59e293e9c307724cea5 http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git;a=blob;f=queue-2.6.24/x86-clear-df-before-calling-signal-handler.patch;h=3e02cf322c9b14814f6341ee9cca32b696e8d743;hb=a6df30d8dcc154c8995ef23d0dcc3b0f54fccb56 Still no work with gcc 4.3.1, without patches... (In reply to comment #2) > GCC 4.3.0 has many bugs and it's know to miscompile the kernel code. Even if > this compilation problem would be fixed the kernel won't boot under XEN anyway > (already tried). 4.3.1 addressed some of these errors already. Check it out and > report your results. > I tried to modify and apply this patches, but I got same errors: arch/i386/kernel/built-in.o: In function `do_settimeofday': (.text+0x5643): undefined reference to `__udivdi3' arch/i386/kernel/built-in.o: In function `do_settimeofday': (.text+0x5693): undefined reference to `__udivdi3' arch/i386/kernel/built-in.o: In function `do_settimeofday': (.text+0x5712): undefined reference to `__udivdi3' arch/i386/kernel/built-in.o: In function `do_settimeofday': (.text+0x5761): undefined reference to `__udivdi3' arch/i386/kernel/built-in.o: In function `sync_xen_wallclock': time-xen.c:(.text+0x5a34): undefined reference to `__udivdi3' arch/i386/kernel/built-in.o:time-xen.c:(.text+0x5a7b): more undefined references to `__udivdi3' follow make: *** [.tmp_vmlinux1] Error 1 Does the problem is related to xen patches? (In reply to comment #5) > As far as I can tell these are the relevant patches: > http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git;a=blob;f=queue-2.6.24/time-prevent-the-loop-in-timespec_add_ns-from-being-optimised-away.patch;h=489cbdaa36a065ee536b73f53b7cba8a8e8635bc;hb=cf3242783319c215e3d2e59e293e9c307724cea5 > http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git;a=blob;f=queue-2.6.24/x86-clear-df-before-calling-signal-handler.patch;h=3e02cf322c9b14814f6341ee9cca32b696e8d743;hb=a6df30d8dcc154c8995ef23d0dcc3b0f54fccb56 > Created attachment 156609 [details, diff]
xen-sources-2.6.21 patch for compile with gcc 4.3.x
Comment on attachment 156609 [details, diff] xen-sources-2.6.21 patch for compile with gcc 4.3.x I found this patch from the Xen Mailing List: http://xen.markmail.org/message/3b7ubksiqmdspvtv?q=gcc+4%2E3#query:gcc%204.3+page:1+mid:jr37gfbmdgqqgfka+state:results Now kernel compile fine. I will make some test first then to apply fixed to this bug. Comment on attachment 156609 [details, diff]
xen-sources-2.6.21 patch for compile with gcc 4.3.x
see
Not that it needs to be confirmed again, but I see the same failure (and success post-patch) with gcc "Gentoo 4.3.1 p1.0" on i686. ping? those sources are not maintained anymore and p.masked. Closing this bug. Please reopen if you have problems with xen-sources 2.6.18. |