You are not logged in.
I'm updating linux-crusoe, and the patch I previously used, crusoe-nopl-emu-3.0.1.patch, is no longer working since the patched sources now calls a function implicitly. The error makes fixing this seem obvious, but I know this || much about C! Can someone give me a hand?
http://dl.dropbox.com/u/24716740/linux- … src.tar.gz
Scrollback while building from the package source above:
In file included from /home/max/aur/linux-crusoe/src/linux-3.0/arch/x86/include/asm/traps.h:4:0,
from arch/x86/kernel/nopl_emu.c:9:
/home/max/aur/linux-crusoe/src/linux-3.0/arch/x86/include/asm/debugreg.h: In function ‘hw_breakpoint_active’:
/home/max/aur/linux-crusoe/src/linux-3.0/arch/x86/include/asm/debugreg.h:97:2: error: implicit declaration of function ‘__this_cpu_read’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [arch/x86/kernel/nopl_emu.o] Error 1
make[1]: *** [arch/x86/kernel] Error 2
make: *** [arch/x86] Error 2
Offline
Looks like just tweaking CFLAGS will do, not sure exactly how though. This might do the trick:
-Wno-error=implicit-function-declaration
My coding knowledge isn't much bigger than yours though, so... . Also, this will just hide what is potentially a real issue, maybe it'll get compiled but then not actually work.
Last edited by Gusar (2011-08-10 22:50:00)
Offline
I believe this has since been fixed in binutils... nopl instructions shouldn't be in recent ARCH kernels so this kernel isn't needed.
Surely Allan would know this...
Last edited by falconindy (2011-08-10 23:06:13)
Offline