Jerome,
Since this is just a compiler optimization switch, you may want to try
removing it from the list of options for your hardware in the src/Makefile
and then see if your MEX functions will compile.
If you type "uname" or "uname -m" on your Linux system, that should tell you
which PLATFORM/HARDWARE values are being used in the Makefile. For example,
my returned values are "Linux" and "x86_64." If yours are the same, you
could look for this line in the Makefile:
ifeq (x86_64,$(HARDWARE))
and then remove "-funroll-loops" from the definitions that directly follow
for one or both of these:
CFLAGS
MEXOPTS
Kathy Pearson
UAB Psychology
-----Original Message-----
From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On
Behalf Of Jérôme Redouté
Sent: Wednesday, October 15, 2008 9:54 AM
To: [log in to unmask]
Subject: [SPM] Mex files
Dear all,
Is anybone know which problem causes the following error:
mex: -funroll-loops in not a valid option
when trying to compile Mex files for SPM5 on linux 64b (Redhat)?
I use Matlab 7.3.0 and gcc v 4.1.2.
Thanks for your help
Jerome
--
===============================================================
Jérôme Redouté
CERMEP - Imagerie du vivant
Centre d'étude et de recherche multimodal et pluridisciplinaire
59 Bd Pinel
69667 Bron - FRANCE
tel : 33 (0)4 72 68 86 13 (bureau)
tel : 33 (0)4 72 68 86 00 (standard)
fax : 33 (0)4 72 68 86 10
===============================================================
|