gcc-4.3.0-0.4 and building kernel src.rpm

John Summerfield debian at herakles.homelinux.org
Mon Jan 7 00:43:24 UTC 2008


Jakub Jelinek wrote:
> On Sat, Jan 05, 2008 at 07:10:29AM -0800, gjohnson5 wrote:
>> I am using gcc-4.3.0-0.4 with glibc-2.7.90-3 (not sure if that matters) with
>> rawhide and I am getting this building kernel-2.6.23.12-101.fc8
>>
>> drivers/video/cfbimgblt.c:129:12: warning: cast adds address space to
>> expression (<asn:2>)
>>   CHK     include/linux/compile.h
>>   UPD     include/linux/compile.h
>> init/version.c:19:5: warning: symbol 'Version_132631' was not declared.
>> Should it be static?
>> kernel/built-in.o: In function `getnstimeofday':
>> (.text+0x1d525): undefined reference to `__umoddi3'
>> kernel/built-in.o: In function `do_gettimeofday':
>> (.text+0x1d5ef): undefined reference to `__udivdi3'
> ...
> 
> See http://gcc.gnu.org/PR32044
> __udivdi3/__umoddi3 are in libgcc.a and gcc relies on it libgcc being
> available, but the kernel chooses to link without libgcc - for some routines
> it has its own counterparts, for some it chooses not to implement them at
> all and just assumes they won't be needed.

It doesn't "assume they won't be needed," the kernel is written to be 
self-complete.

Think a while, what place does user-space code have in the kernel?




-- 

Cheers
John

-- spambait
1aaaaaaa at coco.merseine.nu  Z1aaaaaaa at coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)




More information about the test mailing list