Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Buildroot-generated ARM toolchain can't compile kernel
@ 2008-09-12 14:57 Thomas Petazzoni
  0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2008-09-12 14:57 UTC (permalink / raw)
  To: buildroot

Hi,

With a recent Buildroot checkout (a few days ago), I've generated a
toolchain for ARM, with gcc 4.2.4 and uclibc 0.9.29. My buildroot
configuration is available at :

 http://toulibre.org/~thomas/buildroot/buildroot-config-arm-udivdi3-problem

This toolchain is not able to build a ARM kernel (2.6.25), it fails at
link time complaining about __udivdi3 not being present:

  LD      vmlinux
net/built-in.o: In function `rt_worker_func':
stats.c:(.text+0x1f7cc): undefined reference to `__udivdi3'
stats.c:(.text+0x1f86c): undefined reference to `__udivdi3'
stats.c:(.text+0x1f884): undefined reference to `__udivdi3'
stats.c:(.text+0x1f9b4): undefined reference to `__udivdi3'
make: *** [vmlinux] Error 1

If I build the exact same kernel with an ARM toolchain generated by
Buildroot, but using gcc 3.4.5 and uclibc 0.9.28, it compiles fine.

When objdumping the kernel, the function rt_worker_func() really makes
some calls to __udivdi3, which shouldn't happen since the kernel uses
a do_div() macro and should never use any function of libgcc.

Any idea of what is happening ?

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-12 14:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-12 14:57 [Buildroot] Buildroot-generated ARM toolchain can't compile kernel Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox