recompile kernel on hardy heron 8.04

Michael Sotnikov astar at tut.by
Wed Jun 4 15:50:42 UTC 2008


Hello!

Mario Vukelic:
> On Mon, 2008-04-28 at 10:47 +0000, Arthur wrote:
> Should be the same as in previous versions. Documentation here:
> https://help.ubuntu.com/community/Kernel/Compile


I've tried to compile last kernel (linux_2.6.24-18.32) following this guide.

When I invoke build for i386-general with command:
AUTOBUILD=1 NOEXTRAS=1 fakeroot debian/rules binary-generic

I get next errors:
   LD      .tmp_vmlinux1
kernel/built-in.o: In function `timespec_add_ns':
/home/astar/bldtmp/linux-2.6.24/include/linux/time.h:177: undefined 
reference to `__umoddi3'
/home/astar/bldtmp/linux-2.6.24/include/linux/time.h:177: undefined 
reference to `__udivdi3'
kernel/built-in.o: In function `timespec_add_ns':
/home/astar/bldtmp/linux-2.6.24/kernel/time/timekeeping.c:127: undefined 
reference to `__udivdi3'
/home/astar/bldtmp/linux-2.6.24/kernel/time/timekeeping.c:127: undefined 
reference to `__umoddi3'
kernel/built-in.o: In function `timespec_add_ns':
/home/astar/bldtmp/linux-2.6.24/include/linux/time.h:177: undefined 
reference to `__umoddi3'


After taking a look to kernel sources I found out that these symbols 
defined only in some non-x86 arches.

my gcc: gcc version 4.3.0 (Ubuntu 4.3.0-1ubuntu1)

What do I do wrong?
Should I prefer kernel-source package?

I raised topic on forum with it:
http://ubuntuforums.org/showthread.php?t=818067

Thanks.





More information about the ubuntu-users mailing list