ramzivic / kgpu

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

Makefile does not generate helper executable correctly #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. GCC 4.4.5
2. CUDA SDK 4.0.1

The provided makefile does not complete the generation of the helper 
executable. helper.o is generated, but the helper executable does not appear in 
the build directory.

Original issue reported on code.google.com by iade.ge...@gmail.com on 11 Aug 2011 at 5:24

GoogleCodeExporter commented 8 years ago
Can you show me the error messages? I am using GCC 4.4.5 with CUDA 4.0.17 and 
it does work. btw: you can clone the latest code from github.

Original comment by EndySun@gmail.com on 11 Aug 2011 at 8:39

GoogleCodeExporter commented 8 years ago
Before opening this issue, I already cloned the code from github, with the same 
result.

If I try to build kgpu using "make all", I don't have the time to see any kind 
of error message (the console is too fast). Conversely, if I switch to the kgpu 
subdirectory and I try to launch "make helper", I obtain the messages in the 
attached files

I'm using Ubuntu 10.10 with a backported lowlatency 2.6.38-8; modules are 
correctly built and loaded, only the helper executable is not generated in the 
build subdirectory.

Original comment by iade.ge...@gmail.com on 12 Aug 2011 at 9:40

Attachments:

GoogleCodeExporter commented 8 years ago
Sorry I don't understand the language in the attached files. But I am using 
almost exact same system as yours and everything is fine. I tried a clean 
environment, also everything can be built correctly.

Have you ever changed anything, either in kgpu or your global build settings?

ps: my build output looks like this:

wbsun@gpu:~/Public/kgpu$ make
mkdir -p build
make -C kgpu  BUILD_DIR=`pwd`/build
make[1]: Entering directory `/home/wbsun/Public/kgpu/kgpu'
make -C /lib/modules/2.6.38.2-kgpu/build M=`pwd` modules
make[2]: Entering directory `/home/wbsun/kdev/kgpu'
  CC [M]  /home/wbsun/Public/kgpu/kgpu/main.o
  CC [M]  /home/wbsun/Public/kgpu/kgpu/kgpu_kutils.o
  CC [M]  /home/wbsun/Public/kgpu/kgpu/kgpu_log.o
  LD [M]  /home/wbsun/Public/kgpu/kgpu/kgpu.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/wbsun/Public/kgpu/kgpu/kgpu.mod.o
  LD [M]  /home/wbsun/Public/kgpu/kgpu/kgpu.ko
make[2]: Leaving directory `/home/wbsun/kdev/kgpu'
cp kgpu.ko /home/wbsun/Public/kgpu/build/  
gcc -O2 -D__KGPU__ -c kgpu_log.c -o kgpu_log_user.o
ar -rcs kgpu_log.a kgpu_log_user.o
cp kgpu_log.a /home/wbsun/Public/kgpu/build/ 
gcc -O2 -D__KGPU__ -c helper.c
gcc -O2 -D__KGPU__ -c service.c
nvcc -O2 -D__KGPU__ -c -arch=sm_20 gpuops.cu
nvcc -link -D__KGPU__ -O2 -arch=sm_20 service.o helper.o kgpu_log_user.o 
gpuops.o -o helper -ldl
cp helper /home/wbsun/Public/kgpu/build/ 
make[1]: Leaving directory `/home/wbsun/Public/kgpu/kgpu'
make -C services  BUILD_DIR=`pwd`/build
make[1]: Entering directory `/home/wbsun/Public/kgpu/services'
make -C gaes  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[2]: Entering directory `/home/wbsun/Public/kgpu/services/gaes'
make -C callaes  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[3]: Entering directory `/home/wbsun/Public/kgpu/services/gaes/callaes'
make -C /lib/modules/2.6.38.2-kgpu/build 
M=/home/wbsun/Public/kgpu/services/gaes/callaes modules
make[4]: Entering directory `/home/wbsun/kdev/kgpu'
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/callaes/callgaes.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/wbsun/Public/kgpu/services/gaes/callaes/callgaes.mod.o
  LD [M]  /home/wbsun/Public/kgpu/services/gaes/callaes/callgaes.ko
make[4]: Leaving directory `/home/wbsun/kdev/kgpu'
cp callgaes.ko /home/wbsun/Public/kgpu/build/  
make[3]: Leaving directory `/home/wbsun/Public/kgpu/services/gaes/callaes'
make -C ecryptfs  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[3]: Entering directory `/home/wbsun/Public/kgpu/services/gaes/ecryptfs'
make -C /lib/modules/2.6.38.2-kgpu/build 
M=/home/wbsun/Public/kgpu/services/gaes/ecryptfs modules
make[4]: Entering directory `/home/wbsun/kdev/kgpu'
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/dentry.o
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/file.o
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/inode.o
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/main.o
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/super.o
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/mmap.o
/home/wbsun/Public/kgpu/services/gaes/ecryptfs/mmap.c: In function 
‘ecryptfs_readpages’:
/home/wbsun/Public/kgpu/services/gaes/ecryptfs/mmap.c:457: warning: unused 
variable ‘sz’
/home/wbsun/Public/kgpu/services/gaes/ecryptfs/mmap.c: At top level:
/home/wbsun/Public/kgpu/services/gaes/ecryptfs/mmap.c:93: warning: 
‘ecryptfs_writepages’ defined but not used
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/read_write.o
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/crypto.o
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/keystore.o
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/messaging.o
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/miscdev.o
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/kthread.o
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/debug.o
  LD [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/ecryptfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/wbsun/Public/kgpu/services/gaes/ecryptfs/ecryptfs.mod.o
  LD [M]  /home/wbsun/Public/kgpu/services/gaes/ecryptfs/ecryptfs.ko
make[4]: Leaving directory `/home/wbsun/kdev/kgpu'
cp ecryptfs.ko /home/wbsun/Public/kgpu/build/  
make[3]: Leaving directory `/home/wbsun/Public/kgpu/services/gaes/ecryptfs'
make -C gaes_ctr  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[3]: Entering directory `/home/wbsun/Public/kgpu/services/gaes/gaes_ctr'
cp ../../../kgpu/Module.symvers ./
make -C /lib/modules/2.6.38.2-kgpu/build 
M=/home/wbsun/Public/kgpu/services/gaes/gaes_ctr modules
make[4]: Entering directory `/home/wbsun/kdev/kgpu'
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/gaes_ctr/gaes_ctr.o
/home/wbsun/Public/kgpu/services/gaes/gaes_ctr/../gaesk.h:49: warning: 
‘dump_page_content’ defined but not used
/home/wbsun/Public/kgpu/services/gaes/gaes_ctr/../gaesk.h:60: warning: 
‘dump_hex’ defined but not used
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/wbsun/Public/kgpu/services/gaes/gaes_ctr/gaes_ctr.mod.o
  LD [M]  /home/wbsun/Public/kgpu/services/gaes/gaes_ctr/gaes_ctr.ko
make[4]: Leaving directory `/home/wbsun/kdev/kgpu'
cp gaes_ctr.ko /home/wbsun/Public/kgpu/build/  
make[3]: Leaving directory `/home/wbsun/Public/kgpu/services/gaes/gaes_ctr'
make -C libsrv_gaes  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[3]: Entering directory `/home/wbsun/Public/kgpu/services/gaes/libsrv_gaes'
nvcc -arch=sm_20 --shared --compiler-options '-fPIC' -o libsrv_gaes.so 
srv_gaes.cu
srv_gaes.cu(48): warning: function "dump_hex" was declared but never referenced

srv_gaes.cu(48): warning: function "dump_hex" was declared but never referenced

cp libsrv_gaes.so /home/wbsun/Public/kgpu/build/  
make[3]: Leaving directory `/home/wbsun/Public/kgpu/services/gaes/libsrv_gaes'
make -C dm-crypt  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[3]: Entering directory `/home/wbsun/Public/kgpu/services/gaes/dm-crypt'
make -C /lib/modules/2.6.38.2-kgpu/build 
M=/home/wbsun/Public/kgpu/services/gaes/dm-crypt modules
make[4]: Entering directory `/home/wbsun/kdev/kgpu'
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/dm-crypt/dm-crypt.o
/home/wbsun/Public/kgpu/services/gaes/dm-crypt/dm-crypt.c: In function 
‘crypt_set_key’:
/home/wbsun/Public/kgpu/services/gaes/dm-crypt/dm-crypt.c:1428: warning: format 
‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’
/home/wbsun/Public/kgpu/services/gaes/dm-crypt/dm-crypt.c: At top level:
/home/wbsun/Public/kgpu/services/gaes/dm-crypt/dm-crypt.c:700: warning: 
‘crypt_convert_block’ defined but not used
/home/wbsun/Public/kgpu/services/gaes/dm-crypt/dm-crypt.c:1506: warning: 
‘cipher_str’ defined but not used
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/wbsun/Public/kgpu/services/gaes/dm-crypt/dm-crypt.mod.o
  LD [M]  /home/wbsun/Public/kgpu/services/gaes/dm-crypt/dm-crypt.ko
make[4]: Leaving directory `/home/wbsun/kdev/kgpu'
cp dm-crypt.ko /home/wbsun/Public/kgpu/build/  
make[3]: Leaving directory `/home/wbsun/Public/kgpu/services/gaes/dm-crypt'
make -C gaes_ecb  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[3]: Entering directory `/home/wbsun/Public/kgpu/services/gaes/gaes_ecb'
cp ../../../kgpu/Module.symvers ./
make -C /lib/modules/2.6.38.2-kgpu/build 
M=/home/wbsun/Public/kgpu/services/gaes/gaes_ecb modules
make[4]: Entering directory `/home/wbsun/kdev/kgpu'
  CC [M]  /home/wbsun/Public/kgpu/services/gaes/gaes_ecb/gaes_ecb.o
/home/wbsun/Public/kgpu/services/gaes/gaes_ecb/../gaesk.h:20: warning: 
‘big_u128_add’ defined but not used
/home/wbsun/Public/kgpu/services/gaes/gaes_ecb/../gaesk.h:49: warning: 
‘dump_page_content’ defined but not used
/home/wbsun/Public/kgpu/services/gaes/gaes_ecb/../gaesk.h:60: warning: 
‘dump_hex’ defined but not used
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/wbsun/Public/kgpu/services/gaes/gaes_ecb/gaes_ecb.mod.o
  LD [M]  /home/wbsun/Public/kgpu/services/gaes/gaes_ecb/gaes_ecb.ko
make[4]: Leaving directory `/home/wbsun/kdev/kgpu'
cp gaes_ecb.ko /home/wbsun/Public/kgpu/build/  
make[3]: Leaving directory `/home/wbsun/Public/kgpu/services/gaes/gaes_ecb'
make[2]: Leaving directory `/home/wbsun/Public/kgpu/services/gaes'
make -C test  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[2]: Entering directory `/home/wbsun/Public/kgpu/services/test'
make -C calg2  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[3]: Entering directory `/home/wbsun/Public/kgpu/services/test/calg2'
cp ../../../kgpu/Module.symvers ./
make -C /lib/modules/2.6.38.2-kgpu/build 
M=/home/wbsun/Public/kgpu/services/test/calg2 modules
make[4]: Entering directory `/home/wbsun/kdev/kgpu'
  CC [M]  /home/wbsun/Public/kgpu/services/test/calg2/calg2.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/wbsun/Public/kgpu/services/test/calg2/calg2.mod.o
  LD [M]  /home/wbsun/Public/kgpu/services/test/calg2/calg2.ko
make[4]: Leaving directory `/home/wbsun/kdev/kgpu'
cp calg2.ko /home/wbsun/Public/kgpu/build/ 
make[3]: Leaving directory `/home/wbsun/Public/kgpu/services/test/calg2'
make -C callgpu  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[3]: Entering directory `/home/wbsun/Public/kgpu/services/test/callgpu'
cp ../../../kgpu/Module.symvers ./
make -C /lib/modules/2.6.38.2-kgpu/build 
M=/home/wbsun/Public/kgpu/services/test/callgpu modules
make[4]: Entering directory `/home/wbsun/kdev/kgpu'
  CC [M]  /home/wbsun/Public/kgpu/services/test/callgpu/callgpu.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/wbsun/Public/kgpu/services/test/callgpu/callgpu.mod.o
  LD [M]  /home/wbsun/Public/kgpu/services/test/callgpu/callgpu.ko
make[4]: Leaving directory `/home/wbsun/kdev/kgpu'
cp callgpu.ko /home/wbsun/Public/kgpu/build/ 
make[3]: Leaving directory `/home/wbsun/Public/kgpu/services/test/callgpu'
make -C libsrv_test  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[3]: Entering directory `/home/wbsun/Public/kgpu/services/test/libsrv_test'
nvcc --shared --compiler-options '-fPIC' -o libsrv_test.so srv_test.cu
cp libsrv_test.so /home/wbsun/Public/kgpu/build/ 
make[3]: Leaving directory `/home/wbsun/Public/kgpu/services/test/libsrv_test'
make[2]: Leaving directory `/home/wbsun/Public/kgpu/services/test'
make -C raid6  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[2]: Entering directory `/home/wbsun/Public/kgpu/services/raid6'
make -C libsrv_raid6  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[3]: Entering directory 
`/home/wbsun/Public/kgpu/services/raid6/libsrv_raid6'
nvcc -O2 -arch=sm_20 --shared -D__LIB_SERVICE__ --compiler-options '-fPIC' -o 
libsrv_raid6.so srv_raid6.cu
cp libsrv_raid6.so /home/wbsun/Public/kgpu/build/ 
make[3]: Leaving directory `/home/wbsun/Public/kgpu/services/raid6/libsrv_raid6'
make -C gpq  BUILD_DIR=/home/wbsun/Public/kgpu/build
make[3]: Entering directory `/home/wbsun/Public/kgpu/services/raid6/gpq'
cp ../../../kgpu/Module.symvers ./
make -C /lib/modules/2.6.38.2-kgpu/build 
M=/home/wbsun/Public/kgpu/services/raid6/gpq modules
make[4]: Entering directory `/home/wbsun/kdev/kgpu'
  CC [M]  /home/wbsun/Public/kgpu/services/raid6/gpq/gpq.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/wbsun/Public/kgpu/services/raid6/gpq/gpq.mod.o
  LD [M]  /home/wbsun/Public/kgpu/services/raid6/gpq/gpq.ko
make[4]: Leaving directory `/home/wbsun/kdev/kgpu'
cp gpq.ko /home/wbsun/Public/kgpu/build/  
make[3]: Leaving directory `/home/wbsun/Public/kgpu/services/raid6/gpq'
make[2]: Leaving directory `/home/wbsun/Public/kgpu/services/raid6'
make[1]: Leaving directory `/home/wbsun/Public/kgpu/services'
make -C scripts  BUILD_DIR=`pwd`/build
make[1]: Entering directory `/home/wbsun/Public/kgpu/scripts'
cp ./* /home/wbsun/Public/kgpu/build/ 
make[1]: Leaving directory `/home/wbsun/Public/kgpu/scripts'

Original comment by EndySun@gmail.com on 14 Aug 2011 at 11:43

GoogleCodeExporter commented 8 years ago
Seems like kgpu_log_user.o is not built on your machine, make sure your output 
has such commands(they build kgpu_log_user.o and a static lib):

gcc -O2 -D__KGPU__ -c kgpu_log.c -o kgpu_log_user.o
ar -rcs kgpu_log.a kgpu_log_user.o

Original comment by EndySun@gmail.com on 14 Aug 2011 at 11:46

GoogleCodeExporter commented 8 years ago
Ok, I've better analyzed the error messages, and I think this problem depends 
on some particular problem of my kernel headers (I'm using a non-standard 
Ubuntu kernel, with some patch to get a lowlatecy kernel)

Thanks a lot

Original comment by iade.ge...@gmail.com on 15 Aug 2011 at 3:40

GoogleCodeExporter commented 8 years ago
Ok, I've tryed with the standard Ubuntu 3.0.1 kernel and the error is not 
disappeared.

The error message is:

$(Q)test -e include/generated/autoconf.h -a -e $@ || (      \
    echo;                               \
    echo "  ERROR: Kernel configuration is invalid.";       \
    echo "         include/generated/autoconf.h or $@ are missing.";\
    echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
    echo;                               \
    /bin/false)

Original comment by iade.ge...@gmail.com on 15 Aug 2011 at 4:14

GoogleCodeExporter commented 8 years ago
KGPU doesn't support >=3.0 kernels. But it has nothing to do with the kernel 
configuration unless ecryptfs and AES ciphers are not compiled, which seems 
very rare.

Original comment by EndySun@gmail.com on 15 Aug 2011 at 11:22

GoogleCodeExporter commented 8 years ago
Ok, but I got the same error with 2.6.38.8 kernel

Original comment by iade.ge...@gmail.com on 2 Sep 2011 at 12:50

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Can you show me the result of 'make' under the most-upper level KGPU directory? 
Without that I can't find the problem.

ps, KGPU now uses 2.6.39.4 kernel.

Original comment by EndySun@gmail.com on 9 Sep 2011 at 3:45

GoogleCodeExporter commented 8 years ago
Hi,
I tryed to checkout the last hg revision... but the repository seem to be 
empty...

Original comment by iade.ge...@gmail.com on 10 Sep 2011 at 10:11

GoogleCodeExporter commented 8 years ago
Yes, it is empty cause KGPU is hosted on github... https://github.com/wbsun/kgpu

Original comment by EndySun@gmail.com on 10 Sep 2011 at 10:55

GoogleCodeExporter commented 8 years ago
Ok, but this repository shift is not reported in the project website....

In any case, I will try the latest version ASAP

Original comment by iade.ge...@gmail.com on 10 Sep 2011 at 11:17

GoogleCodeExporter commented 8 years ago
The github repository says 404 error...

Original comment by iade.ge...@gmail.com on 29 Sep 2011 at 11:39

GoogleCodeExporter commented 8 years ago
Hi,
When I tried to make all I am receiving the output as follows:
krishna@ubuntu:~/Desktop/wbsun-kgpu-c24c5c4/kgpu$ make all
make -C /lib/modules/2.6.38-13-generic/build M=`pwd` modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.38-13-generic'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-13-generic'
gcc -O2 -D__KGPU__ -c kgpu_log.c -o kgpu_log_user.o
ar -rcs kgpu_log.a kgpu_log_user.o
gcc -O2 -D__KGPU__ -c helper.c
gcc -O2 -D__KGPU__ -c service.c
nvcc -O2 -D__KGPU__ -c -arch=sm_20 gpuops.cu
nvcc -link -D__KGPU__ -O2 -arch=sm_20 service.o helper.o kgpu_log_user.o 
gpuops.o -o helper -ldl
gpuops.o: In function 
`__sti____cudaRegisterAll_41_tmpxft_00002108_00000000_4_gpuops_cpp1_ii_gpu_init(
)':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x2fa): undefined 
reference to `__cudaRegisterFatBinary'
gpuops.o: In function `_cuda_safe_call(cudaError, char const*, int)':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x348): undefined 
reference to `cudaGetErrorString'
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x376): undefined 
reference to `cudaThreadExit'
gpuops.o: In function `default_post(kgpu_service_request*)':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x3ab): undefined 
reference to `cudaMemcpyAsync'
gpuops.o: In function `default_prepare(kgpu_service_request*)':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x3fb): undefined 
reference to `cudaMemcpyAsync'
gpuops.o: In function `__check_stream_done(CUstream_st*)':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x425): undefined 
reference to `cudaStreamQuery'
gpuops.o: In function `gpu_unpin_mem':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x4a5): undefined 
reference to `cudaHostUnregister'
gpuops.o: In function `gpu_pin_mem':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x609): undefined 
reference to `cudaHostRegister'
gpuops.o: In function `gpu_free_pinned_mem':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x7f5): undefined 
reference to `cudaFreeHost'
gpuops.o: In function `gpu_alloc_pinned_mem':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x81f): undefined 
reference to `cudaHostAlloc'
gpuops.o: In function `free_dev_mem(void*)':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x845): undefined 
reference to `cudaFree'
gpuops.o: In function `gpu_finit':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x88c): undefined 
reference to `cudaStreamDestroy'
gpuops.o: In function `T.544':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x8bf): undefined 
reference to `cudaMalloc'
gpuops.o: In function `gpu_init':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x917): undefined 
reference to `cudaStreamCreate'
gpuops.o: In function `__cudaUnregisterBinaryUtil()':
tmpxft_00002108_00000000-1_gpuops.cudafe1.cpp:(.text+0x328): undefined 
reference to `__cudaUnregisterFatBinary'
collect2: ld returned 1 exit status
make: *** [helper] Error 1

Can you help me in this regard?

Original comment by krishnap...@gmail.com on 8 Feb 2012 at 9:07

GoogleCodeExporter commented 8 years ago
It looks like if gcc or ld does not find the CUDA library headers

Original comment by iade.ge...@gmail.com on 8 Feb 2012 at 9:15

GoogleCodeExporter commented 8 years ago
Hi,
Thanks for the quick reply. I also thought the same thing. Hence I tried to 
make the CUDA samples from the NVIDIA site. They are compiling fine. I am not 
able to understand why kgpu cannot find the libraries.

Original comment by krishnap...@gmail.com on 8 Feb 2012 at 9:34

GoogleCodeExporter commented 8 years ago
Which version of the CUDA SDK is installed in your system?

Original comment by iade.ge...@gmail.com on 8 Feb 2012 at 9:45

GoogleCodeExporter commented 8 years ago
Hi,
I have installed CUDA SDK 4.0.17.

Original comment by krishnap...@gmail.com on 8 Feb 2012 at 9:51

GoogleCodeExporter commented 8 years ago
Is the SDK in your PATH variable?

Original comment by iade.ge...@gmail.com on 8 Feb 2012 at 10:00

GoogleCodeExporter commented 8 years ago
Hi,
I was able to resolve the issue. Thanks for helping me in this. I had to add 
-lcublas -lcudart to the following line -
nvcc -link -D__KGPU__ -O2 -arch=sm_20 service.o helper.o kgpu_log_user.o 
gpuops.o -o helper -ldl
in the makefile.

But now I am getting the following error in raid.c file
mkdir -p build
make -C kgpu  kv= BUILD_DIR=`pwd`/build
make[1]: Entering directory `/home/krishna/Desktop/wbsun-kgpu-c24c5c4/kgpu'
make -C /lib/modules/2.6.38-13-generic/build M=`pwd` modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.38-13-generic'
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/kgpu/main.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/kgpu/kgpu_kutils.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/kgpu/kgpu_log.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/kgpu/kgpu.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/krishna/Desktop/wbsun-kgpu-c24c5c4/kgpu/kgpu.mod.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/kgpu/kgpu.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.38-13-generic'
cp kgpu.ko /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/  
gcc -O2 -D__KGPU__ -c kgpu_log.c -o kgpu_log_user.o
ar -rcs kgpu_log.a kgpu_log_user.o
cp kgpu_log.a /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/ 
gcc -O2 -D__KGPU__ -c helper.c
gcc -O2 -D__KGPU__ -c service.c
nvcc -O2 -D__KGPU__ -c -arch=sm_20 gpuops.cu
nvcc -link -D__KGPU__ -O2 -arch=sm_20 service.o helper.o kgpu_log_user.o 
gpuops.o -o helper -ldl -lcublas -lcudart
cp helper /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/ 
make[1]: Leaving directory `/home/krishna/Desktop/wbsun-kgpu-c24c5c4/kgpu'
make -C services  kv= BUILD_DIR=`pwd`/build
make[1]: Entering directory `/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services'
make -C gaes  kv= BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[2]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes'
make -C callaes  BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/callaes'
make -C /lib/modules/2.6.38-13-generic/build 
M=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/callaes modules
make[4]: Entering directory `/usr/src/linux-headers-2.6.38-13-generic'
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/callaes/callgaes.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/callaes/callgaes.mod.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/callaes/callgaes.ko
make[4]: Leaving directory `/usr/src/linux-headers-2.6.38-13-generic'
cp callgaes.ko /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/  
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/callaes'
make -C ecryptfs  BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs'
make -C /lib/modules/2.6.38-13-generic/build 
M=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs modules
make[4]: Entering directory `/usr/src/linux-headers-2.6.38-13-generic'
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/dentry.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/file.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/inode.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/main.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/super.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/mmap.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/read_write.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/crypto.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/keystore.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/messaging.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/miscdev.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/kthread.o
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/debug.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/ecryptfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/ecryptfs.mod.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs/ecryptfs.ko
make[4]: Leaving directory `/usr/src/linux-headers-2.6.38-13-generic'
cp ecryptfs.ko /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/  
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/ecryptfs'
make -C gaes_ctr  BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_ctr'
cp ../../../kgpu/Module.symvers ./
make -C /lib/modules/2.6.38-13-generic/build 
M=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_ctr modules
make[4]: Entering directory `/usr/src/linux-headers-2.6.38-13-generic'
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_ctr/gaes_ctr.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_ctr/gaes_ctr.mod.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_ctr/gaes_ctr.ko
make[4]: Leaving directory `/usr/src/linux-headers-2.6.38-13-generic'
cp gaes_ctr.ko /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/  
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_ctr'
make -C libsrv_gaes  BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/libsrv_gaes'
nvcc -arch=sm_20 -O2 --shared --compiler-options '-fPIC' -o libsrv_gaes.so 
srv_gaes.cu
cp libsrv_gaes.so /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/  
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/libsrv_gaes'
make -C dm-crypt  BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/dm-crypt'
make -C /lib/modules/2.6.38-13-generic/build 
M=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/dm-crypt modules
make[4]: Entering directory `/usr/src/linux-headers-2.6.38-13-generic'
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/dm-crypt/dm-crypt.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/dm-crypt/dm-crypt.mod.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/dm-crypt/dm-crypt.ko
make[4]: Leaving directory `/usr/src/linux-headers-2.6.38-13-generic'
cp dm-crypt.ko /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/  
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/dm-crypt'
make -C gaes_ecb  BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_ecb'
cp ../../../kgpu/Module.symvers ./
make -C /lib/modules/2.6.38-13-generic/build 
M=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_ecb modules
make[4]: Entering directory `/usr/src/linux-headers-2.6.38-13-generic'
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_ecb/gaes_ecb.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_ecb/gaes_ecb.mod.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_ecb/gaes_ecb.ko
make[4]: Leaving directory `/usr/src/linux-headers-2.6.38-13-generic'
cp gaes_ecb.ko /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/  
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_ecb'
make -C gaes_xts  BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_xts'
cp ../../../kgpu/Module.symvers ./
make -C /lib/modules/2.6.38-13-generic/build 
M=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_xts modules
make[4]: Entering directory `/usr/src/linux-headers-2.6.38-13-generic'
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_xts/gaes_xts.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_xts/gaes_xts.mod.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_xts/gaes_xts.ko
make[4]: Leaving directory `/usr/src/linux-headers-2.6.38-13-generic'
cp gaes_xts.ko /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/  
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes/gaes_xts'
make[2]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/gaes'
make -C test  kv= BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[2]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test'
make -C calg2  BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/calg2'
cp ../../../kgpu/Module.symvers ./
make -C /lib/modules/2.6.38-13-generic/build 
M=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/calg2 modules
make[4]: Entering directory `/usr/src/linux-headers-2.6.38-13-generic'
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/calg2/calg2.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/calg2/calg2.mod.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/calg2/calg2.ko
make[4]: Leaving directory `/usr/src/linux-headers-2.6.38-13-generic'
cp calg2.ko /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/ 
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/calg2'
make -C callgpu  BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/callgpu'
cp ../../../kgpu/Module.symvers ./
make -C /lib/modules/2.6.38-13-generic/build 
M=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/callgpu modules
make[4]: Entering directory `/usr/src/linux-headers-2.6.38-13-generic'
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/callgpu/callgpu.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/callgpu/callgpu.mod.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/callgpu/callgpu.ko
make[4]: Leaving directory `/usr/src/linux-headers-2.6.38-13-generic'
cp callgpu.ko /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/ 
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/callgpu'
make -C libsrv_test  BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/libsrv_test'
nvcc --shared --compiler-options '-fPIC' -o libsrv_test.so srv_test.cu
cp libsrv_test.so /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/ 
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test/libsrv_test'
make[2]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/test'
make -C raid6  kv= BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[2]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6'
make -C libsrv_raid6  kv= 
BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/libsrv_raid6'
nvcc -O2 -arch=sm_20 --shared -D__LIB_SERVICE__ --compiler-options '-fPIC' -o 
libsrv_raid6.so srv_raid6.cu
./dev.cu(103): Advisory: Loop was not unrolled, not an innermost loop
cp libsrv_raid6.so /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/ 
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/libsrv_raid6'
make -C gpq  kv= BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/gpq'
cp ../../../kgpu/Module.symvers ./
make -C /lib/modules/2.6.38-13-generic/build 
M=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/gpq modules
make[4]: Entering directory `/usr/src/linux-headers-2.6.38-13-generic'
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/gpq/gpq.o
/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/gpq/gpq.c:324:13: 
warning: ‘test_recov_2data’ defined but not used
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/gpq/gpq.mod.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/gpq/gpq.ko
make[4]: Leaving directory `/usr/src/linux-headers-2.6.38-13-generic'
cp gpq.ko /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/  
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/gpq'
make -C grecov  kv= BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/grecov'
cp ../../../kgpu/Module.symvers ./
make -C /lib/modules/2.6.38-13-generic/build 
M=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/grecov modules
make[4]: Entering directory `/usr/src/linux-headers-2.6.38-13-generic'
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/grecov/async_raid6_recov.o
/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/grecov/async_raid6_recov
.c: In function ‘do_test’:
/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/grecov/async_raid6_recov
.c:868:9: warning: assignment makes pointer from integer without a cast
/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/grecov/async_raid6_recov
.c:937:6: warning: passing argument 1 of ‘free_pages’ makes integer from 
pointer without a cast
./include/linux/gfp.h:362:13: note: expected ‘long unsigned int’ but 
argument is of type ‘void *’
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/grecov/raid6test.o
  Building modules, stage 2.
  MODPOST 2 modules
  CC      /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/grecov/async_raid6_recov.mod.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/grecov/async_raid6_recov.ko
  CC      /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/grecov/raid6test.mod.o
  LD [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/grecov/raid6test.ko
make[4]: Leaving directory `/usr/src/linux-headers-2.6.38-13-generic'
cp async_raid6_recov.ko /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/  
cp raid6test.ko /home/krishna/Desktop/wbsun-kgpu-c24c5c4/build/  
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/grecov'
make -C raid456  kv= BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[3]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/raid456'
make -C 39 all BUILD_DIR=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/build
make[4]: Entering directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/raid456/39'
make -C /lib/modules/2.6.38-13-generic/build 
M=/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/raid456/39 modules
make[5]: Entering directory `/usr/src/linux-headers-2.6.38-13-generic'
  CC [M]  /home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/raid456/39/raid5.o
/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/raid456/39/raid5.c: In 
function ‘raid5d’:
/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/raid456/39/raid5.c:4511:
18: error: storage size of ‘plug’ isn’t known
/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/raid456/39/raid5.c:4517:
2: error: implicit declaration of function ‘blk_start_plug’
/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/raid456/39/raid5.c:4564:
2: error: implicit declaration of function ‘blk_finish_plug’
/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/raid456/39/raid5.c:4511:
18: warning: unused variable ‘plug’
make[6]: *** 
[/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/raid456/39/raid5.o] 
Error 1
make[5]: *** 
[_module_/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/raid456/39] 
Error 2
make[5]: Leaving directory `/usr/src/linux-headers-2.6.38-13-generic'
make[4]: *** [all] Error 2
make[4]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/raid456/39'
make[3]: *** [all] Error 2
make[3]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6/raid456'
make[2]: *** [raid456] Error 2
make[2]: Leaving directory 
`/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services/raid6'
make[1]: *** [raid6] Error 2
make[1]: Leaving directory `/home/krishna/Desktop/wbsun-kgpu-c24c5c4/services'
make: *** [services] Error 2

Original comment by krishnap...@gmail.com on 8 Feb 2012 at 10:12

GoogleCodeExporter commented 8 years ago
I think it can be a problem with the kernel headers

Original comment by iade.ge...@gmail.com on 8 Feb 2012 at 10:33

GoogleCodeExporter commented 8 years ago
Hi,
I was using linux kernel 2.6.38-13. I will check updating it to 2.6.39.4 and 
then try compiling again.

Original comment by krishnap...@gmail.com on 8 Feb 2012 at 10:42

GoogleCodeExporter commented 8 years ago
You can also check if the git version you downloaded supports kernels up to a 
specific version.

Original comment by iade.ge...@gmail.com on 8 Feb 2012 at 10:47

GoogleCodeExporter commented 8 years ago
Hi,
How can I check this?

Original comment by krishnap...@gmail.com on 8 Feb 2012 at 10:48

GoogleCodeExporter commented 8 years ago
You can look for this information in the README, if any... I don't try kgpu 
since this summer... but I hope to try it newly soon :D

Original comment by iade.ge...@gmail.com on 8 Feb 2012 at 10:53

GoogleCodeExporter commented 8 years ago
Hi,
I compiled and kgpu is running properly. I updated the kernel to 2.6.39.4. But, 
as given in the README, if I tried to perform sudo insmod ./ecryptfs.ko it 
gives the following error-
insmod: error inserting './ecryptfs.ko': -1 Device or resource busy

Original comment by krishnap...@gmail.com on 9 Feb 2012 at 5:28

GoogleCodeExporter commented 8 years ago
It looks like a problem with a block device in /dev

Original comment by iade.ge...@gmail.com on 9 Feb 2012 at 5:32

GoogleCodeExporter commented 8 years ago
Hi,
I did not understand it. What might be the problem?

Original comment by krishnap...@gmail.com on 13 Feb 2012 at 6:03

GoogleCodeExporter commented 8 years ago
I think the problem is that some device in your /dev is inexistent or busy 
(like reported by the message)

Original comment by iade.ge...@gmail.com on 15 Feb 2012 at 10:56

GoogleCodeExporter commented 8 years ago
Hi,
I was able to load the dm-crypt.ko file with no problem. Hence, I checked the 
dmesg output, it is giving an error - Failed to register file system. I am 
thinking this might be a problem with ecryptfs.

Original comment by krishnap...@gmail.com on 16 Feb 2012 at 7:25