Discussion:
NI 488.2 fails to install on linux-2.6.25 - ERROR on GCC version check.
(too old to reply)
cryotak
2008-06-23 17:40:12 UTC
Permalink
Hi there,I have a question regarding the ni488.2 driver on linux. I am running openSUSE 11.0 on the 2.6.25.5-1.1-pae kernel with gcc version 4.3.1 , so yes, it is not necessarily supported by the NI-488.2-beta-2.5.1b1 driver, however, I am not sure the problem lies with the driver and I am still hopeful that someone can help me out, before I have to degrade my operating system.After preparing the kernel according to the instructions in the readme.txt file to overcome the known kernel source problem, the following error shows up.Checking required install tools...Checking installer tool versions...rpm        4.4.2 can be used with a default installation pathtar        1.19Checking dependencies...glibc      2.8 Unpacking install files to /tmp/NI4882beta-2.5.1b1.install...******************************** ERROR ***************************************** The version of gcc in the path does not match the version of gcc used to    ** compile the currently running kernel.  This can cause unpredictable         ** behavior in kernel drivers and should be fixed.                             ** gcc version: Linux)                                                          ** kernel compiled with: 4.3.1                                                 ********************************* ERROR ****************************************Installer is aborted.It seems to be an error in the way the driver checks the version number of the gcc. I tried the old driver NI-488.2-beta-2.5.1b0 (zero on the end) and its has the same problem. I have that driver running on openSUSE 10.3 where I did not encounter that problem.Does anyone have an idea what I have to tweak to make it realise the gcc version number is the correct one?
rsw
2008-06-25 08:10:13 UTC
Permalink
Hi,
Thats a very unusual error to get, it suggests your gcc version was not the version used to create your systems kernel - have you upgraded gcc since your installation of SuSE 11 via yum/up2date?
The only workaround I can think of is to use the lower version of gcc on your system and set the correct path via symlinks, although if this is an error raised right away following a fresh install then it just looks as though SuSE hasn't installed something as the software expects it.
All the best,
cryotak
2008-06-25 16:10:15 UTC
Permalink
Solutionafter several hours of tinkering, here is the solution that worked for me and allowed me to install the NI driver for the PCI-GPIB card under openSuSE 11.0The problem is indeed, that the NI installation script looks in /usr/bin for gcc first and thus follows the symbolic link there to gcc-4.3 (version number 4.3) in the same directory. The gcc that we want it to use is located in /usr/local/bin (version number 4.3.1) which is the gcc that was used to compile the kernel.Either one could make the installation script look in /usr/local/bin first, by changing the line:PATH=/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbin:/usr/local/binto PATH=/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/sbin:/usr/sbinbut one would have to do that to all the installation scripts.A better solution is to change the symbolic link for the gcc.Go to /usr/bin and check where gcc links to using the " ls -g gcc*" command. Remove the link using "rm gcc" and then create it again pointing to the right path using "ln -s /usr/local/bin/gcc ./gcc"The go and run the installation script for the driver again. It should work now.
rsw
2008-06-25 16:40:13 UTC
Permalink
Hi,
Thanks for letting me know, I'm glad a symlink helped solve the issue and allowed the correct path/gcc version to build
All the best,
krivanka
2008-07-14 18:40:14 UTC
Permalink
Unfortunately, the symlink did not solve the problem for me (I do not have any other GCC installed). I found the error in the nivisa/nikal/installerUtility.sh script, line 340currentGCCVersion=`$CC --version | head -n 1 | $AWK '{print $3}'`The "gcc --version" returns "gcc (SUSE Linux) 4.3.1", so the script uses the incorect 3rd parameter "Linux)" instead 4th parameter "4.3.1". One of the possible solutions is to modify this line to:currentGCCVersion=`$CC --version | head -n 1 | $AWK '{ x=1; while (x <= NF && $x !~ /^[0-9]\.[0-9]\.[0-9]*$/) x++; print $x }'`This will find the correct version of GCC compiler. (Maybe it could be simplified, I am not an awk guru :)Regards,David
rsw
2008-07-15 07:10:10 UTC
Permalink
Hi David,
Thanks for posting this workaround to the community,
All the best,
ak2sc
2008-08-08 23:10:07 UTC
Permalink
Hi, How can I change the installerUtility.sh script, and then do the installation of nikali package again?(I have changed the script under bin directory of NI4882-2.5.4b1.tar.gz, but the script is also existed under /usr/local/natinst/nikal/bin during the installation process.)I also have tried to modify the installerUtility.sh of nikali-1.7.0-f0.noarch.rpm but I couldn't find the SPEC file to rebuild the package.Could NI or anyone provide the updated nikali-1.7.0-f0.noarch.rpm or the solution to us?Thanks--------------------------------------------------------------------------------------------------Installation Log:NI-488.2 Distribution version 2.5.4b1is about to be installed using rpm at /usr/local/natinstWould you like to continue? [Yn] yInstalling NI-488.2 Distribution version 2.5.4b1...Pre Installation ..........Preparing...                ########################################### [100%]   1:nikali                 ########################################### [ 14%]   2:nipalki                ########################################### [ 29%]   3:nipali                 ########################################### [ 43%]   4:ni4882ki               ########################################### [ 57%]   5:labview82-rte          ########################################### [ 71%]   6:nispyi                 ########################################### [ 86%]   7:ni4882i                ########################################### [100%]Post Installation .Warning: nikali post installation failed! /tmp/nikaliPostInstall.log follows:******************************** ERROR ***************************************** The version of gcc in the path does not match the version of gcc used to    ** compile the currently running kernel.  This can cause unpredictable         ** behavior in kernel drivers and should be fixed.                             ** gcc version: Linux)                                                          ** kernel compiled with: 4.3.1                                                 ********************************* ERROR ****************************************./uninstall.sh: line 13: Makefile.in: No such file or directoryMakefile:11: Makefile.in: No such file or directorymake: *** No rule to make target `Makefile.in'.  Stop.Updating NI-KAL: NI-KAL update failed.Makefile:11: Makefile.in: No such file or directorymake: *** No rule to make target `Makefile.in'.  Stop..........
Jon@FSU
2008-08-15 19:40:24 UTC
Permalink
I am having a very similar problem while installing NI-VISA 4.4 with open SuSE 11.0 kernel 2.6.25.5-1.1-pae, I get the same error message.  ->The version of gcc in the path does not match the version of gcc used to compile the currently running kernel. This can cause unpredictable behavior in kernel drivers and should be -> fixed.-> gcc version :Linux)-> kernel compiled with: 4.3.1  -> Installation abored. Then I check the gcc version:    $ gcc --version-> gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] I have tried the solutions posted with no success 
Continue reading on narkive:
Search results for 'NI 488.2 fails to install on linux-2.6.25 - ERROR on GCC version check.' (Questions and Answers)
10
replies
What is AIX Box?
started 2006-05-08 15:58:44 UTC
hardware
Loading...