Switch to the correct GCC version or use a workaround
Symptoms
- You install Acronis Backup on Linux. The product reports that the installation is successful;
- When you start the product, there are no disks or partitions displayed;
- Checking the running modules shows that there is no snapapi:
lsmod | grep snapapi
- Checking the dmesg output shows GCC related errors:
snapapi26: disagrees about version of symbol struct_module
snapapi26: version magic '2.6.9-67.0.7.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.2' should be '2.6.9-67.0.7.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4'
Cause
The running GCC version does not correspond to the version the kernel has been compiled with.
Solution
If switching the GCC version is possible, then do the following:
- Check the running GCC version:
# gcc --version
- Check the GCC version your running kernel has been compiled with:
# cat /proc/version
- Switch the version to the corresponding one if GCC versions are different:
For example
ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc
If switching the GCC version is not possible, then do the following:
- Open /var/lib/dkms/snapapi26/0.7.51/source/dkms.conf in a text editor;
- Modify following strings:
MAKE[0]="make -C ${kernel_source_dir} SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules"
CLEAN="make -C ${kernel_source_dir} SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"to
MAKE[0]="make -C ${kernel_source_dir} CC=/usr/bin/i386-redhat-linux-gcc SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules"
CLEAN="make -C ${kernel_source_dir} CC=/usr/bin/i386-redhat-linux-gcc SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"where snapapi26 version 0.7.51 is the latest one used in Acronis Backup.
and /usr/bin/i386-redhat-linux-gcc path corresponds to the GCC version your running kernel was compiled with (cat /proc/version).
More information
Feel free to contact Acronis Support if you have further questions or need assistance.