Hi,
I am working on a 64 bit machine (lubuntu 11.04) with matlab 7.12.0.635 (R2011a). If I type computer in the matlab desktop it answers with GLNX86. So I assume it is a 32 bit matlab. My goal is to setup spm5 in order to use the powerful spmregister. If I perform the steps found at http://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Linux the following is received after typing make:
_____________________________________________________________
Linux compilation (x86-64) - using gcc
_____________________________________________________________
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_uchar.mexa64.o spm_vol_utils.c -DSPM_UNSIGNED_CHAR
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_short.mexa64.o spm_vol_utils.c -DSPM_SIGNED_SHORT
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_int.mexa64.o spm_vol_utils.c -DSPM_SIGNED_INT
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_schar.mexa64.o spm_vol_utils.c -DSPM_SIGNED_CHAR
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_ushort.mexa64.o spm_vol_utils.c -DSPM_UNSIGNED_SHORT
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_uint.mexa64.o spm_vol_utils.c -DSPM_UNSIGNED_INT
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_float.mexa64.o spm_vol_utils.c -DSPM_FLOAT
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_double.mexa64.o spm_vol_utils.c -DSPM_DOUBLE
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_short_s.mexa64.o spm_vol_utils.c -DSPM_SIGNED_SHORT -DSPM_BYTESWAP
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_int_s.mexa64.o spm_vol_utils.c -DSPM_SIGNED_INT -DSPM_BYTESWAP
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_ushort_s.mexa64.o spm_vol_utils.c -DSPM_UNSIGNED_SHORT -DSPM_BYTESWAP
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_uint_s.mexa64.o spm_vol_utils.c -DSPM_UNSIGNED_INT -DSPM_BYTESWAP
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_float_s.mexa64.o spm_vol_utils.c -DSPM_FLOAT -DSPM_BYTESWAP
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o utils_double_s.mexa64.o spm_vol_utils.c -DSPM_DOUBLE -DSPM_BYTESWAP
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o spm_make_lookup.mexa64.o spm_make_lookup.c
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o spm_getdata.mexa64.o spm_getdata.c
gcc -c -O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse -o spm_vol_access.mexa64.o spm_vol_access.c
mex COPTIMFLAGS='-O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse' -c spm_mapping.c
Warning: You are using gcc version "4.5.2-8ubuntu4)". The version
currently supported with MEX is "4.3.4".
For a list of currently supported compilers see:
http://www.mathworks.com/support/compilers/current_release/
mv -f spm_mapping.o spm_mapping.mexa64.o
rm -f spm_vol_utils.mexa64.a
ar rcs spm_vol_utils.mexa64.a utils_uchar.mexa64.o utils_short.mexa64.o utils_int.mexa64.o utils_schar.mexa64.o utils_ushort.mexa64.o utils_uint.mexa64.o utils_float.mexa64.o utils_double.mexa64.o utils_short_s.mexa64.o utils_int_s.mexa64.o utils_ushort_s.mexa64.o utils_uint_s.mexa64.o utils_float_s.mexa64.o utils_double_s.mexa64.o spm_make_lookup.mexa64.o spm_getdata.mexa64.o spm_vol_access.mexa64.o spm_mapping.mexa64.o
mex COPTIMFLAGS='-O3 -funroll-loops -fPIC -march=x86-64 -mfpmath=sse' spm_sample_vol.c spm_vol_utils.mexa64.a
Warning: You are using gcc version "4.5.2-8ubuntu4)". The version
currently supported with MEX is "4.3.4".
For a list of currently supported compilers see:
http://www.mathworks.com/support/compilers/current_release/
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(spm_vol_access.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_uchar.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_short.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_int.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_schar.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_ushort.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_uint.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_float.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_double.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_short_s.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_int_s.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_ushort_s.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_uint_s.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_float_s.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(utils_double_s.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(spm_make_lookup.mexa64.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `spm_vol_utils.mexa64.a(spm_getdata.mexa64.o)' is incompatible with i386 output
collect2: ld returned 1 exit status
mex: link of ' "spm_sample_vol.mexglx"' failed.
make: *** [spm_sample_vol.mexa64] Error 1
I do not know how to remove this error. Can somebody give me an advice?
Cheers pfannmoe
|