|
Linux Driver Installation Error with gcc version 2.96 Linux Driver Installation Error with gcc version 2.96 Problem:
Starting the dgdm module results in the following error:
Using /lib/modules/2.#.##/misc/dgdm.o
/lib/modules/2.#.##/misc/dgdm.o: The module you are trying to load (/lib/modules/2.#.##/misc/dgdm.o) is compiled with a gcc version 2 compiler, while the kernel you are running is compiled with a gcc version 3 compiler. This is known to not work.
Cause:
When upgrading to a newer kernel that was compiled with a newer gcc 3.x compiler, the newer gcc 3.x compiler will need to be installed also.
Solution:
Install the matching gcc 3.x compiler to match the version your kernel was compiled with.
Check the compiler version required by your kernel:
# more /proc/version
Look for the gcc version on the output of this command. If it is gcc 2.96, you will need to install the compat-egcs and compat-glibc packages for proper driver compilation. If the gcc version is 3.x, you will need to upgrade your gcc compiler to the same 3.x version. Additionally, any kgcc compilers should be removed for the driver compilation:
# rpm -e compat-egcs-c++
# rpm -e compat-egcs-g77
# rpm -e compat-egcs-objc
# rpm -e compat-egcs
# rpm -e compat-glibc
Packages to download and install for gcc version 3.2-7:
cpp-3.2-7.i386.rpm
libgcc-3.2-7.i386.rpm
glibc-devel-2.2.93-5.i386.rpm
glibc-common-2.2.93-5.i386.rpm
glibc-2.2.93-5.i386.rpm
binutils-2.13.90.0.2.-2.i386.rpm
gcc-3.2-7.i386.rpm
We had to use the force option to install:
# rpm -i --force cpp-3.2-7.i386.rpm libgcc-3.2-7.i386.rpm glibc-devel-2.2.93-5.i386.rpm glibc-common-2.2.93-5.i386.rpm glibc-2.2.93-5.i386.rpm binutils-2.13.90.0.2.-2.i386.rpm gcc-3.2-7.i386.rpm
After these packages are installed, re-build/re-install the Digi driver.
|