custom kernel problems

Scott Douglass scott at swdouglass.com
Tue Jul 1 22:48:37 EDT 2008


Sorry to reply to my own post... 

This patch to linux-2.6.22/arch/i386/Makefile enables the "stable"
kernel to build on F9:

-------------------------------------------------
diff --git a/arch/i386/Makefile b/arch/i386/Makefile
index bd28f9f..790e378 100644
--- a/arch/i386/Makefile
+++ b/arch/i386/Makefile
@@ -34,7 +34,9 @@ CHECKFLAGS    += -D__i386__
 CFLAGS += -pipe -msoft-float -mregparm=3 -freg-struct-return
 
 # prevent gcc from keeping the stack 16 byte aligned
-CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2)
+CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2,)
+
+CFLAGS += $(call cc-option,-fno-tree-scev-cprop,)
 
 # CPU-specific tuning. Anything which can be shared with UML should go here.
 include $(srctree)/arch/i386/Makefile.cpu
-------------------------------------------------------

Based on work around mentioned here:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32044#c28

On Tue, 2008-07-01 at 20:56 -0400, Scott Douglass wrote:
> Hi,
> 
> In regards to:
> http://wiki.laptop.org/go/Rebuilding_OLPC_kernel
> 
> I gave up on the git "head" kernel as there seems to be a lot of bugs
> there, and tried to build the origin/stable kernel.
> 
> I'm running a Fedora 9 (i386) system for doing the build.
> 
> I get this set of messages and the kernel fails to build:
> 
> kernel/built-in.o: In function `timespec_add_ns':
> /archive/fedora/olpc/git/olpc-2.6-rpm/BUILD/kernel-2.6.22/linux-2.6.22.i586/include/linux/time.h:177: undefined reference to `__umoddi3'
> kernel/built-in.o: In function `do_gettimeofday':
> /archive/fedora/olpc/git/olpc-2.6-rpm/BUILD/kernel-2.6.22/linux-2.6.22.i586/kernel/time/timekeeping.c:121: undefined reference to `__udivdi3'
> /archive/fedora/olpc/git/olpc-2.6-rpm/BUILD/kernel-2.6.22/linux-2.6.22.i586/kernel/time/timekeeping.c:122: undefined reference to `__umoddi3'
> kernel/built-in.o: In function `timespec_add_ns':
> /archive/fedora/olpc/git/olpc-2.6-rpm/BUILD/kernel-2.6.22/linux-2.6.22.i586/include/linux/time.h:172: undefined reference to `__udivdi3'
> /archive/fedora/olpc/git/olpc-2.6-rpm/BUILD/kernel-2.6.22/linux-2.6.22.i586/include/linux/time.h:177: undefined reference to `__umoddi3'
> /archive/fedora/olpc/git/olpc-2.6-rpm/BUILD/kernel-2.6.22/linux-2.6.22.i586/include/linux/time.h:172: undefined reference to `__udivdi3'
> /archive/fedora/olpc/git/olpc-2.6-rpm/BUILD/kernel-2.6.22/linux-2.6.22.i586/include/linux/time.h:177: undefined reference to `__umoddi3'
> make: *** [.tmp_vmlinux1] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.47209 (%build)
> 
> I enabled various bluetooth modules and a few additional USB modules
> (for bluetooth, serial and wireless interfaces) using make ARCH=i386
> gconfig.
> 
> Is this a known issue?
> 
> 
> 
> _______________________________________________
> Devel mailing list
> Devel at lists.laptop.org
> http://lists.laptop.org/listinfo/devel




More information about the Devel mailing list