Guillaume Rousse
2008-May-21 13:19 UTC
[Xen-devel] linux-2.6.18-xen.hg compilation issue with gcc 4.3
Hello. The linux-2.6.18-xen.hg kernel fails to build with gcc 4.3, in linking stage: arch/i386/kernel/built-in.o: In function `sync_xen_wallclock'': time-xen.c:(.text+0x6141): undefined reference to `__udivdi3'' time-xen.c:(.text+0x618a): undefined reference to `__udivdi3'' arch/i386/kernel/built-in.o: In function `do_settimeofday'': (.text+0x63bd): undefined reference to `__udivdi3'' arch/i386/kernel/built-in.o: In function `do_settimeofday'': (.text+0x640b): undefined reference to `__udivdi3'' arch/i386/kernel/built-in.o: In function `do_settimeofday'': (.text+0x6489): undefined reference to `__udivdi3'' arch/i386/kernel/built-in.o:(.text+0x64d2): more undefined references to `__udivdi3'' follow According to LKM, this is a known issue: http://www.nabble.com/undefined-reference-to-__udivdi3-(gcc-4.3)-td17045078.html However, I couldn''t find any loop susceptible to be wrongly optimised in incriminated code (sync_xen_wallclock in arch/i386/kernel/time-xen.c). Any hint welcome. -- Guillaume Rousse Moyens Informatiques - INRIA Futurs Tel: 01 69 35 69 62 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2008-May-21 13:45 UTC
Re: [Xen-devel] linux-2.6.18-xen.hg compilation issue with gcc 4.3
On 21/5/08 14:19, "Guillaume Rousse" <Guillaume.Rousse@inria.fr> wrote:> However, I couldn''t find any loop susceptible to be wrongly optimised in > incriminated code (sync_xen_wallclock in arch/i386/kernel/time-xen.c). > Any hint welcome.It''s hidden in the __normalize_time() macro. Could you backport Jeremy''s upstream fix to the 2.6.18 kernel? -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jan Beulich
2008-May-21 13:49 UTC
Re: [Xen-devel] linux-2.6.18-xen.hg compilation issue with gcc 4.3
>However, I couldn''t find any loop susceptible to be wrongly optimised in >incriminated code (sync_xen_wallclock in arch/i386/kernel/time-xen.c). >Any hint welcome.__normalize_time()? _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Guillaume Rousse
2008-May-21 15:22 UTC
Re: [Xen-devel] linux-2.6.18-xen.hg compilation issue with gcc 4.3
Keir Fraser a écrit :> On 21/5/08 14:19, "Guillaume Rousse" <Guillaume.Rousse@inria.fr> wrote: > >> However, I couldn''t find any loop susceptible to be wrongly optimised in >> incriminated code (sync_xen_wallclock in arch/i386/kernel/time-xen.c). >> Any hint welcome. > > It''s hidden in the __normalize_time() macro. Could you backport Jeremy''s > upstream fix to the 2.6.18 kernel?Ok, it works. Thanks. -- Guillaume Rousse Moyens Informatiques - INRIA Futurs Tel: 01 69 35 69 62 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2008-May-21 15:45 UTC
Re: [Xen-devel] linux-2.6.18-xen.hg compilation issue with gcc 4.3
On 21/5/08 16:22, "Guillaume Rousse" <Guillaume.Rousse@inria.fr> wrote:>>> However, I couldn''t find any loop susceptible to be wrongly optimised in >>> incriminated code (sync_xen_wallclock in arch/i386/kernel/time-xen.c). >>> Any hint welcome. >> >> It''s hidden in the __normalize_time() macro. Could you backport Jeremy''s >> upstream fix to the 2.6.18 kernel? > Ok, it works. Thanks.Could you post the patch so we can check it in? With a signed-off-by line? Thanks, Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel