make_seagrid_mex

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
onken
Posts: 13
Joined: Thu Feb 15, 2007 12:19 pm
Location: Helmholtz Zentrum Geesthacht

make_seagrid_mex

#1 Unread post by onken »

I try to generate the mex files for SEAGRID with >>make_seagrid_mex but I did not succeed. I have Ubuntu 11.04 and MATLAB R2010b.
I have hacked the mexopts.sh in the following ways:
# change g77 with ifort
# installed gcc-4.4 and gfortran-4.4
# try different FFLAGS
and
# change links in .../MATLAB/..../glnax64
but nothing works.
The best attempt so far ends with the error message

Warning: You are using gcc version "4.4.5-15ubuntu1)". The version
currently supported with MEX is "4.3.4".
For a list of currently supported compilers see:
http://www.mathworks.com/support/compil ... t_release/

wait for the figure to finish plotting, then hit any key to continue
----------------------------------------------------------------
-> options file specified on command line:
FILE = ./mexopts.sh
----------------------------------------------------------------
-> MATLAB = /usr/local/MATLAB/R2010b
-> CC = gcc-4.4
-> CC flags:
CFLAGS = -fPIC -fno-omit-frame-pointer -ansi -D_GNU_SOURCE -pthread -fexceptions
CDEBUGFLAGS = -g
COPTIMFLAGS = -O -DNDEBUG
CLIBS = -Wl,-rpath-link,/usr/local/MATLAB/R2010b/bin/glnxa64 -L/usr/local/MATLAB/R2010b/bin/glnxa64 -lmx -lmex -lmat -lm -lstdc++
arguments = -DMX_COMPAT_32
-> CXX = g++-4.4
-> CXX flags:
CXXFLAGS = -fPIC -fno-omit-frame-pointer -ansi -D_GNU_SOURCE -pthread
CXXDEBUGFLAGS = -g
CXXOPTIMFLAGS = -O -DNDEBUG
CXXLIBS = -Wl,-rpath-link,/usr/local/MATLAB/R2010b/bin/glnxa64 -L/usr/local/MATLAB/R2010b/bin/glnxa64 -lmx -lmex -lmat -lm
arguments = -DMX_COMPAT_32
-> FC = gfortran
-> FC flags:
FFLAGS = -fPIC -fno-omit-frame-pointer -fexceptions
FDEBUGFLAGS = -g
FOPTIMFLAGS = -O
FLIBS = -Wl,-rpath-link,/usr/local/MATLAB/R2010b/bin/glnxa64 -L/usr/local/MATLAB/R2010b/bin/glnxa64 -lmx -lmex -lmat -lm /usr/lib64/libstdc++.so.5
arguments = -DMX_COMPAT_32
-> LD = gfortran
-> Link flags:
LDFLAGS = -shared -Wl,--version-script,/usr/local/MATLAB/R2010b/extern/lib/glnxa64/fexport.map
LDDEBUGFLAGS = -g
LDOPTIMFLAGS = -O
LDEXTENSION = .mexa64
arguments =
-> LDCXX =
-> Link flags:
LDCXXFLAGS =
LDCXXDEBUGFLAGS =
LDCXXOPTIMFLAGS =
LDCXXEXTENSION =
arguments =
----------------------------------------------------------------


Warning: You are using gcc version "4.4.5-15ubuntu1)". The version
currently supported with MEX is "4.3.4".
For a list of currently supported compilers see:
http://www.mathworks.com/support/compil ... t_release/

-> gfortran -c -I/usr/local/MATLAB/R2010b/extern/include -fPIC -fno-omit-frame-pointer -fexceptions -DMX_COMPAT_32 -O "mexrect.F"

/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/f951: /usr/local/MATLAB/R2010b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/lib/libppl_c.so.2)
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/f951: /usr/local/MATLAB/R2010b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libppl_c.so.2)
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/f951: /usr/local/MATLAB/R2010b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/lib/libppl.so.7)
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/f951: /usr/local/MATLAB/R2010b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libppl.so.7)
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/f951: /usr/local/MATLAB/R2010b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libgmpxx.so.4)

mex: compile of ' "mexrect.F"' failed.

??? Error using ==> mex at 208
Unable to complete successfully.

Error in ==> make_seagrid_mex at 15
mex -f ./mexopts.sh -v mexrect.F

Anybody an idea how to proceed?

Cheers,
Reiner

Post Reply