This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc-2.95 matlab mex cross-compiler (to libc5 from libc6)



Thanks everyone for all your great efforts in the gcc-2.95 work.

I have a very specific question that I thought I might raise with you all.
As I understand it, it's *not* easy having a Red Hat Linux 6.0/Intel system
and compile a gcc-2.95 for that system. I'm thinking of the latest gcc-2.95
rpm issues mainly...

However, this subject of mine is slightly different. The background comes 
from the fact that matlab for linux is still libc-5 based, the matlab
binary uses these libraries (in the matlab R11 distrib):

[chj@arnljot paper]$ ls -laG /opt/matlab/sys/os/lnx86/
totalt 3784
drwxrwxr-x   2 106           512 May 24 20:22 ./
drwxrwxr-x   4 106           512 May 24 19:58 ../
-rw-r--r--   1 106           156 Sep 27  1998 .LINKLIST
lrwxrwxrwx   1 root           13 May 24 20:22 libXpm.so.4 -> libXpm.so.4.9*
-rwxr-xr-x   1 106         62748 Oct 15  1998 libXpm.so.4.9*
lrwxrwxrwx   1 root           14 May 24 20:22 libc.so.5 -> libc.so.5.4.38*
-rwxr-xr-x   1 106       1849257 Sep 27  1998 libc.so.5.4.38*
lrwxrwxrwx   1 root           16 May 24 20:22 libg++.so.27 -> libg++.so.27.2.8*
-rwxr-xr-x   1 106        969891 Sep 27  1998 libg++.so.27.2.8*
lrwxrwxrwx   1 root           13 May 24 20:22 libm.so.5 -> libm.so.5.0.9*
-rwxr-xr-x   1 106         75717 Sep 27  1998 libm.so.5.0.9*
lrwxrwxrwx   1 root           19 May 24 20:22 libstdc++.so.27 -> libstdc++.so.27.2.8*
-rwxr-xr-x   1 106        875636 Sep 27  1998 libstdc++.so.27.2.8*
[chj@arnljot paper]$ 

Now, I don't know if you're familiar with matlab but there's an important 
feature of matlab and that is mex. This means that one can compile
C/C++/F77 source code into a dynamically loaded (by the matlab exe) code.
But, this means that when compiling and linking that mex code, one has to
use some kind of cross-compiler/linker under a glibc based linux system.

The subject is a little explained at

http://www.mathworks.com/support/solutions/v5/11129.shtml

but...

OK, there are some rpm's available for that as

ftp://ftp.redhat.com/contrib/libc6/i386/gcc-libc5-2.7.2.3-1.i386.rpm
ftp://ftp.redhat.com/contrib/libc6/i386/gcc-libc5-c++-2.7.2.3-1.i386.rpm
ftp://ftp.redhat.com/contrib/libc6/i386/libc5-5.4.38-3.i386.rpm
ftp://ftp.redhat.com/contrib/libc6/i386/libc5-devel-5.4.38-3.i386.rpm
but I can't find any src rpm for gcc-libc5...

Now, I would very much like to see a gcc-2.95 based system for this, ie, 
build replacements for gcc-libc5-2.7.2.3, gcc-libc5-c++-2.7.2.3, and also 
add in gcc-libc5-g77-2.95 that are all based on gcc-2.95 (as cross-compiler/
linker)...

So, do you have any hints on how to proceed? Would you perhaps help me in 
doing so? Do you have any pointers to useful information in this subjetc?

I need plenty of guidance on both gcc-2.95/RHL 6.0 and 
cross-compiler/linker of gcc-libc5-2.95. I can test compile the gcc-libc 
stuff and then test to compile some linux matlab mex examples.

TIA for any comments,

/ChJ







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]