[arch-general] Custom kernel compile fails

RedShift redshift at pandora.be
Tue Apr 1 07:41:14 EDT 2008


CtM wrote:
> Happy April everyone!
> 
> I was just wondering if anyone else was having issues building a recent 
> custom kernel. I find that it fails on the make command. Here is the 
> output I get:
> 
> LD      .tmp_vmlinux1
> kernel/built-in.o: In function `getnstimeofday':
> (.text+0x205d3): undefined reference to `__umoddi3'
> kernel/built-in.o: In function `getnstimeofday':
> (.text+0x205f6): undefined reference to `__udivdi3'
> kernel/built-in.o: In function `do_gettimeofday':
> (.text+0x20718): undefined reference to `__udivdi3'
> kernel/built-in.o: In function `do_gettimeofday':
> (.text+0x20736): undefined reference to `__umoddi3'
> kernel/built-in.o: In function `timekeeping_resume':
> timekeeping.c:(.text+0x209e6): undefined reference to `__umoddi3'
> timekeeping.c:(.text+0x20a06): undefined reference to `__udivdi3'
> kernel/built-in.o: In function `update_wall_time':
> (.text+0x20d5a): undefined reference to `__umoddi3'
> kernel/built-in.o: In function `update_wall_time':
> (.text+0x20d7a): undefined reference to `__udivdi3'
> kernel/built-in.o: In function `update_wall_time':
> (.text+0x211f6): undefined reference to `__umoddi3'
> kernel/built-in.o: In function `update_wall_time':
> (.text+0x21216): undefined reference to `__udivdi3'
> make: *** [.tmp_vmlinux1] Error 1
> 
> I have tried kernel 2.6.24 and 2.6.24.4 on two different machines with 
> two different cpu's (one intel dual core and one AMD 64 bit). I've tried 
> using my previous config (make oldconfig) and also tried without it. I 
> even ran make clean && make mrproper on the new extracted kernel 
> directory before attempting to build it.
> Usually upgrading a kernel is very routine for me, but this time it 
> isn't working. All kernel sources were downloaded from kernel.org as 
> usual for me.
> 
> Any ideas would be appreciated.
> 
> Thanks,
> 
> CtM
> 
> 
> 

Linux 2.6.24 is broken with GCC 4.3. Either wait for the next release 
(which will most likely include a fix) or see this bugreport:
http://bugs.archlinux.org/task/9801
it includes a link to a patch to compile linux with GCC 4.3.

Glenn




More information about the arch-general mailing list