building 2.6.24 in an intrepid environment

Khashayar Naderehvandi khashayar.lists at gmail.com
Wed Dec 31 16:55:55 GMT 2008


Hi all,

I'm trying to make a proper build of hardy's kernel for intrepid,
using the source debs from hardy. I think kernel 2.6.24 has a problem
with gcc 4.3, giving me these errors:

kernel/built-in.o: In function `timespec_add_ns':
/build/buildd/linux-2.6.24/include/linux/time.h:177: undefined
reference to `__umoddi3'
/build/buildd/linux-2.6.24/include/linux/time.h:177: undefined
reference to `__udivdi3'
kernel/built-in.o: In function `timespec_add_ns':
/build/buildd/linux-2.6.24/kernel/time/timekeeping.c:127: undefined
reference to `__udivdi3'
/build/buildd/linux-2.6.24/kernel/time/timekeeping.c:127: undefined
reference to `__umoddi3'
kernel/built-in.o: In function `timespec_add_ns':
/build/buildd/linux-2.6.24/include/linux/time.h:177: undefined
reference to `__umoddi3'
/build/buildd/linux-2.6.24/include/linux/time.h:177: undefined
reference to `__udivdi3'
/build/buildd/linux-2.6.24/include/linux/time.h:177: undefined
reference to `__umoddi3'
/build/buildd/linux-2.6.24/include/linux/time.h:177: undefined
reference to `__udivdi3'
/build/buildd/linux-2.6.24/include/linux/time.h:177: undefined
reference to `__umoddi3'
/build/buildd/linux-2.6.24/include/linux/time.h:177: undefined
reference to `__udivdi3'
make[2]: *** [.tmp_vmlinux1] Error 1
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/build/buildd/linux-2.6.24'
make: *** [/build/buildd/linux-2.6.24/debian/stamps/stamp-build-386] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2

According to this thread
http://bbs.archlinux.org/viewtopic.php?id=45882, there's a solution if
one changes CFLAGS_KERNEL in Makefile.

Now, to my question. The kernel source debs work rather differently
than other packages. For instance, there's no debian/patches folder,
where I otherwise would put a patch change Makefile. Could some kind
soul tell me how to do this? Note that I'm well aware of how to
compile a kernel, with make-kpkg or just "manually". But what I want
is to have debs produced in the same way the offical kernel debs are
produced.

Thanks in advance,
Khashayar



More information about the Ubuntu-Studio-users mailing list