Re: [2.6.30-rc8] gcc 3.3 : __udivdi3 undefined.

From: Tetsuo Handa
Date: Thu Jun 04 2009 - 23:39:23 EST


Andrew Morton wrote:
> Do
>
> make arch/x86/mm/pageattr.s
>
> then have a look in pageattr.s to find the __udivdi3 callsite.
>
> It might not even be in arch/x86/mm/pageattr.o at all. If not, keep
> building .s files in that directory until you find it.
>
> Building with CONFIG_DEBUG_INFO=1 will allow you to find the exact C
> file-n-line where the __udivdi3() call is being emmitted (look at the
> .loc lines).

$ make -k CONFIG_DEBUG_INFO=1 `echo arch/x86/mm/*.c | sed -e 's/\.c/.s/g'`
(...snipped...)
$ grep __udivdi3 arch/x86/mm/*.s
arch/x86/mm/memtest.s:.globl __udivdi3
arch/x86/mm/memtest.s: call __udivdi3



Tetsuo Handa wrote:
> "make allnoconfig" compiles fine. Maybe config dependent?
It was because "make allnoconfig" skips arch/x86/mm/memtest.c .
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/