Am Samstag, den 19.07.2008, 22:26 +0100 schrieb Vadim Axel: > Hi, > I encountred infamous "Bad image handle dimensions" error. According to: > http://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Linux#Linux_Distributions_for_x86-64 > I ran make && make install from spm5/src/. > > It failed on mex compillation (gcc lines were succesfull and this was > the first mex line) > > mex COPTIMFLAGS='-O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse' -c > spm_mapping.c > mex: -funroll-loops not a valid option. > > My gcc version is 3.4.6. If I remember correctly, MATLAB 2008a mex requires gcc versions between 4.0 and 4.2.0. If you can't upgrade, you may try to find out whether switching off the optimisation options (-O3 -funroll-loops) helps. They are either in the SPM Makefile or in MATLABs compiler options (mexopts.sh). Volkmar > I downloaded the latest updates from the SPM site. > > Any suggestions? May be I need to install newer version of gcc? On > matlab site they are saying that they are using 4.1.1 > (http://www.mathworks.com/support/compilers/current_release/linux.html). > However, how it is related to mex... > > On matlab 2006A version it looks like the build succeeded and SPM5 is > running. > > Thanks for your help, > Vadim > > -- Volkmar Glauche - Department of Neurology [log in to unmask] Universitaetsklinikum Freiburg Phone 49(0)761-270-5331 Breisacher Str. 64 Fax 49(0)761-270-5416 79106 Freiburg http://fbi.uniklinik-freiburg.de/