failed to build the snapapi in rhel 5.5
Hi, Anyone encountered this problem? Upon building snapapi using dkms build, snapapi cannot be built. I used snapapi26-0.7.61.tar.gz.
Here are the outputs when I executed the command dkms build:
dkms build -m snapapi26 -v 0.7.61 -k 2.6.18-194.el5 --config /boot/config-2.6.18-194.el5 --arch x86_64 --kernelsourcedir /lib/modules/2.6.18-194.el5/build
Preparing kernel 2.6.18-194.el5 for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Storing current Modules.symvers to be restored when complele
Running Generic preparation routine
make mrproper....(bad exit status: 2)
using /boot/config-2.6.18-194.el5
make oldconfig....
make prepare-all....(bad exit status: 2)
Building module:
cleaning build area....
make KERNELRELEASE=2.6.18-194.el5 -C /lib/modules/2.6.18-194.el5/build SUBDIRS=/var/lib/dkms/snapapi26/0.7.61/build modules....(bad exit status: 2)
Error! Bad return status for module build on kernel: 2.6.18-194.el5 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/snapapi26/0.7.61/build/ for more information.
0
0
Here is the make.log that has been genereted. Anyone knows how to read it. Any suggestions on what to do in able to resolve this issue? By the way, I'm using ABR11 Advance Server build 17318.
justing:/home/justing/Download # cat make.log.TCHAPD01
DKMS make.log for snapapi26-0.7.61 for kernel 2.6.18-194.el5 (x86_64)
Wed Nov 16 17:47:49 PHT 2011
make: Entering directory `/usr/src/kernels/2.6.18-194.el5-x86_64'
grep: /usr/src/kernels/2.6.18-194.el5-x86_64/include/linux/freezer.h: No such file or directory
CC [M] /var/lib/dkms/snapapi26/0.7.61/build/snapapi26.o
In file included from /var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:7:
include/linux/config.h:6:2: warning: #warning Including config.h is deprecated.
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:103:1: warning: "inline" redefined
In file included from include/linux/compiler-gcc4.h:4,
from include/linux/compiler.h:42,
from include/linux/stddef.h:4,
from include/linux/posix_types.h:4,
from include/linux/types.h:14,
from include/linux/capability.h:16,
from include/linux/sched.h:44,
from include/linux/module.h:9,
from /var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:15:
include/linux/compiler-gcc.h:27:1: warning: this is the location of the previous definition
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘sn_blkdev_get’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:434: warning: cast from pointer to integer of different size
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘sa_cache_save’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:1661: warning: assignment from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:1662: warning: pointer/integer type mismatch in conditional expression
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘session_getmap’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:3291: warning: label ‘out_copy’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘collect_bitmap_to_user’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:3413: warning: passing argument 1 of ‘copy_bits_to_user’ from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:3413: warning: passing argument 3 of ‘copy_bits_to_user’ from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘session_getsparsedmap’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:3460: warning: passing argument 2 of ‘map_init’ makes integer from pointer without a cast
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:3477: warning: assignment from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: At top level:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:4525: warning: initialization from incompatible pointer type
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘snapapi_init’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:4657: warning: label ‘err_thread’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: At top level:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:829: warning: ‘set_block_in_map’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:1099: warning: ‘remove_from_busy_list’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:4170: warning: ‘snapapi4_ioctl’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:4668: warning: ‘__inittest’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:4669: warning: ‘__exittest’ defined but not used
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c: In function ‘sa_cache_save’:
/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c:1646: warning: ‘entry’ may be used uninitialized in this function
/bin/sh: line 1: 26813 Bus error scripts/basic/fixdep /var/lib/dkms/snapapi26/0.7.61/build/.snapapi26.o.d /var/lib/dkms/snapapi26/0.7.61/build/snapapi26.o 'gcc -Wp,-MD,/var/lib/dkms/snapapi26/0.7.61/build/.snapapi26.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Wstrict-prototypes -Wundef -Werror-implicit-function-declaration -fno-delete-null-pointer-checks -fwrapv -Os -mtune=generic -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fomit-frame-pointer -g -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -DHAVE_FREEZE_BDEV -DHAVE_LINUX_CONFIG -DHAVE_LINUX_AUTOCONF -DHAVE_IOCTL32_CONVERSIONS -DHAVE_PAGE_MAPCOUNT -DHAVE_SPIN_LOCK_UNLOCKED -DHAVE_FMODE_T -DHAVE_TRY_TO_FREEZE -DHAVE_UNLOCKED_IOCTL -DHAVE_BD_CLAIM -DHAVE_BLKDEV_GET_3ARG_FLAG -DMODULE -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(snapapi26)" -D"KBUILD_MODNAME=KBUILD_STR(snapapi26)" -c -o /var/lib/dkms/snapapi26/0.7.61/build/.tmp_snapapi26.o /var/lib/dkms/snapapi26/0.7.61/build/snapapi26.c' > /var/lib/dkms/snapapi26/0.7.61/build/.snapapi26.o.tmp
make[1]: *** [/var/lib/dkms/snapapi26/0.7.61/build/snapapi26.o] Error 135
make: *** [_module_/var/lib/dkms/snapapi26/0.7.61/build] Error 2
make: Leaving directory `/usr/src/kernels/2.6.18-194.el5-x86_64'
Thanks,
Juz

- Log in to post comments

What do you mean by fixdep crashed? How I'm going to try to resolve it myself? Are there commands to follow?
- Log in to post comments

I have the same problem on four different rhel5u5 x86_64 servers.
snapapi26-0.7.61 fails to build with similar errors.
No such issues with rhel5u4 x86_64 installations.
Have open ticket with Acronis support, but so far nothing useful.
- Log in to post comments

.
- Log in to post comments