Hello,

for some reason my powerpc cross-compiler defaults to gcc-4.3.3,
probably after this commit:
---
commit 448b9103e494765fe589283d399c90e9b6e9cd84
Author: Koen Kooi <[email protected]>
Date:   Wed May 13 13:36:43 2009 +0200

    angstrom 2009.X: toolchain updates:
     * make gcc 4.3.3 the default compiler (except for ppc and avr32)
     * make binutils 2.18 the default (except for armv7a and avr32)
---


So without my knowing I started testing gcc-4.3.3 for powerpc, which
is good. :-)

Here are my findings so far, in case I drift off to other duties or holidays:

However, gcc-4.3.x is not able to compile kernel 2.6.24 and earlier,
at least not for all non-x86 architectures.
kernel/built-in.o: In function `getnstimeofday':
(.text+0x253cc): undefined reference to `__umoddi3'
kernel/built-in.o: In function `getnstimeofday':
(.text+0x253ec): undefined reference to `__udivdi3'
kernel/built-in.o: In function `do_gettimeofday':
(.text+0x254fe): undefined reference to `__udivdi3'
kernel/built-in.o: In function `do_gettimeofday':
(.text+0x2551c): undefined reference to `__umoddi3'

For powerpc, I came across this fix, not sure if it affects only powerpc:

Add "-fno-tree-scev-cprop" to the KBUILD_CFLAGS

This fix is tricky, because earlier versions of the kernel do not
employ KBUILD_CFLAGS at all in it's makefile, and any attempt to
modify other similar build variables with the flags
-fno-tree-scev-cprop have failed.

Regards,
-- 
Leon

_______________________________________________
Angstrom-distro-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

Reply via email to