Re: wrong compiler

On 01/27/05 17:13, Nick Iorio wrote:
> I'm using Fedora Core 2 and I've had to install a gcc 3.2.3 compiler so 
> my Matlab compiler works.  However, it appears that comedi needs the 
> 3.3.3 compiler.  When I did configure I added CC=/usr/bin/gcc to use the 
> compiler but when I do modprobe I get the following errors.  Is there a 
> way:
> 1) I can force comedi to use 3.3.3?  But, then will I have a problem 
> compiling and linking Matlab 3.2.3 code with comedi 3.3.3 code?
> 2) Can I use an older version of comedi that uses 3.2.3?  I need 
> external clock and external trigger for PCI DAS 4020/12.

The Comedi drivers need to be built with the same compiler version (or 
at least a similar compiler version as the Linux kernel; this is the 
cause of the modprobe errors you are getting.  It shouldn't matter as 
much which compiler you use to build Comedilib.

One solution would be to rebuild (and install) the kernel with the gcc 
3.2.3 compiler, but I think a better solution is to leave Core 2's 
default compiler (gcc 3.3.3) installed and install a separate copy of 
gcc 3.2.3 for use with Matlab.  There shouldn't be a problem linking 
Matlab 3.2.3 code with Comedilib 3.3.3 code.  You just need to persuade 
Matlab to use gcc 3.2.3 with some twiddling of the PATH, CC or other 
environment variable.

I don't know how Fedora's RPM system copes with installing multiple 
versions of gcc.  If all else fails, you could build gcc from source and 
install it at some obscure path not normally present in your PATH. 
Maybe symlink it to /usr/bin/gcc-matlab or something.

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2005-01-28Z11:05:56