Re: linux-2.6.21 and __udivid3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 reference to `__udivdi3'
> /usr/src/linux-2.6.21/kernel/timer.c:841: undefined reference to `__udivdi3'
> /usr/src/linux-2.6.21/kernel/timer.c:1311: undefined reference to `__udivdi3'
> make[1]: *** [.tmp_vmlinux1] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.6.21'
> make: *** [debian/stamp-build-kernel] Error 2

I'm not seeing any /s there about. Is this a pristine tree?

> cc -v
> Using built-in specs.
> Target: i686-pc-linux-gnu
> Configured with: ../gcc/configure --prefix=/usr --libexecdir=/usr/lib
> --enable-shared --enable-threads=posix --enable-__cxa_atexit
> --enable-clocale=gnu --enable-languages=c,c++,treelang
> --with-system-zlib --with-gmp --enable-mpfr
> --enable-libstdcxx-allocator=mt
> Thread model: posix
> gcc version 4.3.0 20070420 (experimental)
> 
> TIA
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux