ramzivic / kgpu

Automatically exported from code.google.com/p/kgpu
0 stars 0 forks source link

Makefile error #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Tried to run 'make all' command, but produced the following error/s:

kgpu-8-1-2011/kgpu/kgpu_kutils.c: In function ‘kgpu_virt2phy’:
kgpu-8-1-2011/kgpu/kgpu_kutils.c:70:5: error: implicit declaration of function 
‘kmap_atomic’

I'm trying to install kgpu-8-11-2011 (the latest, I think). These are the info 
from my kernel/CPU:
Linux 2.6.38-11-generic #48-Ubuntu SMP i686 i686 i386 GNU/Linux

I'm not sure if my CPU is 32-bit or 64-bit, but based on /proc/cpuinfo, tm and 
lm flags are present.

Is the error from 'make all' is because I'm using a 32-bit Linux kernel? Thanks.

Original issue reported on code.google.com by mavee....@gmail.com on 11 Sep 2011 at 8:59

GoogleCodeExporter commented 8 years ago
Yes, you are using a 32bit kernel, which KGPU doesn't support.

If you could use a 64bit one, please get the latest kgpu code from github, 
current supported kernel is 2.6.39.4. It is better to use your own compiled 
kernel rather than the one shipped with your distribution.

Original comment by EndySun@gmail.com on 12 Sep 2011 at 8:03

GoogleCodeExporter commented 8 years ago
I've reinstalled 64-bit Ubuntu 11.04 and tried to install kgpu-9-12-2011. I've 
run 'make all' command but produced the following error/s:

mkdir -p build
make -C kgpu  BUILD_DIR=`pwd`/build
make[1]: Entering directory `/home/user/kgpu-9-12-2011/kgpu-9-12-2011/kgpu'
make -C /lib/modules/2.6.38-8-generic/build M=`pwd` modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic'
  CC [M]  /home/user/kgpu-9-12-2011/kgpu/kgpu.o
In file included from 
/usr/src/linux-headers-2.6.38-8-generic/arch/x86/include/asm/percpu.h:44:0,
                 from /usr/src/linux-headers-2.6.38-8-generic/arch/x86/include/asm/current.h:5,
                 from /usr/src/linux-headers-2.6.38-8-generic/arch/x86/include/asm/processor.h:15,
                 from ./include/linux/prefetch.h:14,
                 from ./include/linux/list.h:7,
                 from ./include/linux/module.h:9,
                 from /home/user/kgpu-9-12-2011/kgpu/kgpu.c:13:
./include/linux/kernel.h:12:20: fatal error: stdarg.h: No such file or directory
compilation terminated.
make[3]: *** [/home/user/kgpu-9-12-2011/kgpu/kgpu.o] Error 1
make[2]: *** [_module_/home/user/kgpu-9-12-2011/kgpu] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
make[1]: *** [kgpu] Error 2
make[1]: Leaving directory '/home/user/kgpu-9-12-2011/kgpu-9-12-2011/kgpu'
make: *** [kgpu] Error 2

I've located stdarg.h and had these results:

/usr/include/c++/4.5/tr1/stdarg.h
/usr/lib/syslinux/com32/include/stdarg.h
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/include/cross-stdarg.h
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/include/stdarg.h

What seems to be the problem here? We need to make this work for our project. 
Thanks!

Original comment by mavee....@gmail.com on 20 Sep 2011 at 9:36

GoogleCodeExporter commented 8 years ago
link /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/include/stdarg.h
to the include/ folder in your kgpu

Original comment by Hoffmann...@googlemail.com on 27 Apr 2012 at 3:07