Re: linux-2.6.21 and __udivid3

2007-04-27 Thread Andrew Morton
On Fri, 27 Apr 2007 09:56:03 +0900 "l l" <[EMAIL PROTECTED]> wrote: > Here is another compilation failure. > > make > CHK include/linux/version.h > CHK include/linux/utsrelease.h > CHK include/linux/compile.h > CC [M] drivers/w1/w1.o > drivers/w1/w1.c: In function 'w1_slave_r

Re: linux-2.6.21 and __udivid3

2007-04-26 Thread l l
It attachs, Here is another compilation failure. make CHK include/linux/version.h CHK include/linux/utsrelease.h CHK include/linux/compile.h CC [M] drivers/w1/w1.o drivers/w1/w1.c: In function 'w1_slave_read_id': drivers/w1/w1.c:118: error: cannot take address of bit-field 'fami

Re: linux-2.6.21 and __udivid3

2007-04-26 Thread l l
Hi, Sorry for the late, i was in my bed. I assume this is a plain 2.6.21 from ftp.kernel.org? Yes. Can you reproduce this with gcc 4.1? If yes, please send your .config . I don't, i think i have to go back to gcc-4.2.0 which was fine with linux-2.6.21-rc7. It will be same to 2.6.21. TIA

Re: linux-2.6.21 and __udivid3

2007-04-26 Thread Stephen Hemminger
On Thu, 26 Apr 2007 19:55:26 +0200 Adrian Bunk <[EMAIL PROTECTED]> wrote: > On Fri, Apr 27, 2007 at 12:24:32AM +0900, l l wrote: > > Hi, > > > > How to link libgcc.a with linux-2.6.21? > > > > LD .tmp_vmlinux1 > > kernel/built-in.o: In function `timespec_add_ns': > > /usr/src/linux-2.6.21/ke

Re: linux-2.6.21 and __udivid3

2007-04-26 Thread Adrian Bunk
On Fri, Apr 27, 2007 at 12:24:32AM +0900, l l wrote: > Hi, > > How to link libgcc.a with linux-2.6.21? > > LD .tmp_vmlinux1 > kernel/built-in.o: In function `timespec_add_ns': > /usr/src/linux-2.6.21/kernel/timer.c:828: undefined reference to > `__udivdi3' > /usr/src/linux-2.6.21/kernel/time

Re: linux-2.6.21 and __udivid3

2007-04-26 Thread Peter Zijlstra
On Fri, 2007-04-27 at 00:24 +0900, l l wrote: > Hi, > > How to link libgcc.a with linux-2.6.21? you don't, in kernel one is supposed to used do_div() for 64/32. > LD .tmp_vmlinux1 > kernel/built-in.o: In function `timespec_add_ns': > /usr/src/linux-2.6.21/kernel/timer.c:828: undefined ref