[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-users] matlab interface and the infamous "libgcc_s.so.1: version
From: |
julien pommier |
Subject: |
[Getfem-users] matlab interface and the infamous "libgcc_s.so.1: version `GCC_3.4' not found" |
Date: |
Tue, 20 Mar 2007 12:56:13 +0100 |
User-agent: |
Thunderbird 1.5.0.10 (X11/20070307) |
There is a very common problem with the getfem interface on matlab. This
occurs as soon as one uses a g++ version that is higher than the one
used to build matlab.
For example, on a x86_64 host, using matlab R14 and a custom compiled
g++-4.2, configured with:
../configure CXX=g++-4.2 --enable-matlab --with-pic BLAS_LIBS=builtin
I get:
> matlab -nojvm
>> gf_asm
??? Invalid MEX-file
'/home/jpommier/getfem/getfem++/gcc-4.2/interface/src/matlab/gf_matlab.mexa64':
/usr/local/matlab14-SP3/bin/glnxa64/../../sys/os/glnxa64/libgcc_s.so.1:
version `GCC_3.4' not found (required by
/home/jpommier/getfem/getfem++/gcc-4.2/interface/src/matlab/gf_matlab.mexa64).
The fix to this problem is to remove the useless libgcc_s.so.1 of
matlab. If you cannot because you have no administrator priviledges, you
can use LD_PRELOAD to load a more recent libgcc_s before matlab:
LD_PRELOAD=/home/jpommier/local/gcc-4.2/lib64/libgcc_s.so matlab -nojvm
A similar problem may occur with libstdc++... For example, on a 32bits
x86 host, I get:
>> gf_asm
??? Invalid MEX-file
'/home-local/pommier/getfem/getfem++/gcc-4.1/interface/src/matlab/gf_matlab.mexglx':
/opt/matlab-2006b/bin/glnx86/../../sys/os/glnx86/libstdc++.so.6: version
`CXXABI_1.3.1' not found (required by
/home-local/pommier/getfem/getfem++/gcc-4.1/interface/src/matlab/gf_matlab.mexglx).
Once again, using LD_PRELOAD fixes that problem:
LD_PRELOAD=/home-local/pommier/local/gcc-4.1/lib/libstdc++.so.6 matlab
-nojvm
--
Julien Pommier
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Getfem-users] matlab interface and the infamous "libgcc_s.so.1: version `GCC_3.4' not found",
julien pommier <=