8343: Acronis Backup Agent for Linux Fails to Be Installed Correctly due to GCC Versions Difference

Also read in:

use Google Translate

Operating Systems: 

Last update: 31-03-2016

Switch to the correct GCC version or use a workaround


  1. You install Acronis Backup on Linux. The product reports that the installation is successful;
  2. When you start the product, there are no disks or partitions displayed;
  3. Checking the running modules shows that there is no snapapi:

    lsmod | grep snapapi

  4. 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'


The running GCC version does not correspond to the version the kernel has been compiled with.


If switching the GCC version is possible, then do the following:

  1. Check the running GCC version:

    # gcc --version

  2. Check the GCC version your running kernel has been compiled with:

    # cat /proc/version

  3. 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:

  1. Open /var/lib/dkms/snapapi26/0.7.51/source/dkms.conf in a text editor;
  2. 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"


    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.