You are not logged in.

#1 2011-08-10 21:51:39

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Need some help with a kernel patch for an AUR package, looks obvious!

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

#2 2011-08-10 22:49:25

Gusar
Member
Registered: 2009-08-25
Posts: 3,606

Re: Need some help with a kernel patch for an AUR package, looks obvious!

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... smile. 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

#3 2011-08-10 23:05:11

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Need some help with a kernel patch for an AUR package, looks obvious!

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

Board footer

Powered by FluxBB