I just sat down to make a new kernel for my home gw, and thought i'd give 2.6.20.4 and the testing grsec patches a shot. I guess it failed.
what made me spit out my coffee is this:
- Code: Select all
CC arch/i386/lib/mmx.o
arch/i386/lib/mmx.c: In function '_mmx_memcpy':
arch/i386/lib/mmx.c:75: error: 'cr0' undeclared (first use in this function)
arch/i386/lib/mmx.c:75: error: (Each undeclared identifier is reported only once
arch/i386/lib/mmx.c:75: error: for each function it appears in.)
arch/i386/lib/mmx.c:46: error: invalid lvalue in asm output 0
arch/i386/lib/mmx.c:80: error: invalid lvalue in asm output 0
arch/i386/lib/mmx.c: In function 'fast_copy_page':
arch/i386/lib/mmx.c:238: error: 'cr0' undeclared (first use in this function)
arch/i386/lib/mmx.c:209: error: invalid lvalue in asm output 0
arch/i386/lib/mmx.c:242: error: invalid lvalue in asm output 0
make[1]: *** [arch/i386/lib/mmx.o] Error 1
make: *** [arch/i386/lib] Error 2
I don't know ASM, i do a little bit of C, but the deepness of the C code here is more than i can handle so i wasn't able to find/solve the problem myself.
I know it's just testing versions and all, but i was just wondering if there is a quick solution to it.. if not i'll simply go back to .19.2 for now.
And, do i really need the patched mmx.c? or can i just remove the mmx.c part of the patch and use the vanilla one? would that work?
CPU: 1.2GHz Athlon
GCC version: 4.1.2
Dist: archlinux
anyway thanks :]