Video card
Tom Marinis
tmarinis99
Mon May 17 11:52:18 PDT 2004
Joel Hammer wrote:
> Good idea.
> which `gcc` returns:
> /usr/local/bin/gcc
> and
> file `which gcc`
> shows a binary file.
> strings `which gcc` shows version 2.95.3, which is what I think I
> am using.
>
> I went the extra step and recompiled my modules and make'd
> modules_install. However, depmod wouldn't work, never has on this
> machine.
>
> I still get the same error when I try to compile the NV kernel module,
> the NV install script complaining about the compiler version being
> different from the one used to compile the running kernel.
> uname -a show the newly compiled kernel is running.
>
> I would put this card into another computer (one of my lindows boxes,
> for example) but those kernels come precompiled and there is little
> chance the compiler I have downloaded was used to compile those kernels.
>
> So, until I can find which Makefile into which I have to insert the
> IGNORE_CC_MISMATCH directive, I appear to be stuck.
>
> Joel
>
> On Sun, Aug 31, 2003 at 07:20:14PM -0700, Ken Moffat wrote:
>
>>joel wrote:
>>
>>
>>>Yes, I wouldn't lie about something like this.
>>>The nvidia install script has its own ideas about which compiler it is
>>>using.
>>>Are there any other names for the compiler except gcc?
>>>I have searched my box for gcc and cc and all I get is /usr/bin/gcc.
>>>Nothing else.
>>>Joel
>>>
>>
>>Generally gcc is a link to gcc-2.95 or gcc-3.2 or 3.3. If you
>>ls -l /usr/bin/gcc*
>>you'll see what's there to choose from. You can change the link to point
>>to a different version.
>>
I'm sorry for jumping in late, but maybe you
installed and mixed files, binaries, and libraries
for all your GCC stuff?
I always check for gcc version like this;
$ gcc --version
Here is what I've done in my case. KURT and DAVID
BANDEL, Andrew Mathews, and Net Llama pointed me in
the right direction, although it took awhile to for
me comprehend and understand their advice. ;)
I wanted to upgrade the compilers, be able to quickly
dump them when necessary, but still retain the
original compiler intact;
installed gcc version 2.95, 3.1, 3.2, 3.2.2 in the
following manner;
/usr/local/share/gcc/<version_number>/
When I built all my installation files for the compiler,
I placed them all under that particular directory, so say for
instance 2.95.3, which I learned was the wrong thing to
do, but it worked...It makes deleting them very easy now,
since I merely dump that particular directory.
So, for instance, 2.95.3 looked like and had all the
compiler files in the following locations.
/usr/local/share/gcc/2.95.3/bin
/usr/local/share/gcc/2.95.3/lib
/usr/local/share/gcc/2.95.3/include
/usr/local/share/gcc/2.95.3/info
/usr/local/share/gcc/2.95.3/man
/usr/local/share/gcc/2.95.3/i686-pc-linux
Then I edited my /etc/.bashrc file for the root
account, and then add a export for the particular
compiler I want to use. I merely had to specify the
/bin directory of that particular compiler.
When I tried the first time, I was using the
Caldera 3.1.1 distro, and the compiler I wanted
to use was for all users, so I copied and saved,
then changed the /etc/.bashrc file to
something like this...
You may want to save and then alter your root .bashrc file,
and have a statment order that specify the compiler you
wish to use first, pointing to that particular binary.
[ typically, /usr/local/bin ]
What my setup looked like, what I did.
The Original /etc/.bashrc statement;
<tab> means insert tab here...
# try to generate an elaborate PATH ...
_p="$HOME/bin"
[ "$UID" = 0 ]<tab>&& _p="$_p /usr/local/bin /sbin /usr/sbin"
===========
My modified /etc/.bashrc statement;
I exchange /usr/local/bin for
/usr/local/share/gcc/2.95.3/bin
NOTE:
the last line is all one line...
<tab> means insert tab here...
# try to generate an elaborate PATH ...
_p="$HOME/bin"
[ "$UID" = 0 ]<tab>&& _p="$_p usr/local/share/gcc/2.95.3/bin
/sbin /usr/sbin"
========
Next,
The compiler specific included libraries.
I had to include them for the particular compiler.
I had to modify the /etc/ld.so.conf file to see them,
so I had to edit that file.
The original /etc/ld.so.conf;
/usr/X11R6/lib
/opt/kde/lib
/opt/kde2/lib
/usr/lib/qt2/lib
The modified version of /etc/ld.so.conf;
/usr/X11R6/lib
/opt/kde/lib
/opt/kde2/lib
/usr/lib/qt2/lib
/usr/local/share/gcc/2.95.3/lib
/usr/local/share/gcc/2.95.3/lib/gcc-lib/i686-pc-linux/2.95.3/
Then load the cache, as root,
$ ldconfig -v
I confirm the cache contents by doing this...
$ ldconfig -p
Done.
====
I have yet to figure out how to reload the current
libraries loaded on boot up by Linux. If I knew, it
would be a matter of simply stopping and restarted or
rather, reloading the libraries required.
I was stuck with rebooting the computer, but
since I was the only user, it didn't matter.
HTH.
More information about the Linux-users
mailing list