by rfranolic » Wed Jan 27, 2010 8:25 am
Hi,
I have exactly the same problem described by Thiago previously in the post. I downloaded Dynare 4.1 for Mac on Tuesday 26th Jan 2010, after Sebastien's uploaded the new package. Full output below, any help greatly appreciated.
Thanks,
Rob
EDU>> build_matlab
Delete old mex files.
Compiling mjdgges...
-> mexopts.sh sourced from directory (DIR = $MATLAB/bin)
FILE = /Applications/MATLAB_R2009aSV.app/bin/mexopts.sh
----------------------------------------------------------------
-> MATLAB = /Applications/MATLAB_R2009aSV.app
-> CC = gcc-4.0
-> CC flags:
CFLAGS = -fno-common -no-cpp-precomp -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -fexceptions
CDEBUGFLAGS =
COPTIMFLAGS = -O3
CLIBS = -L/Applications/MATLAB_R2009aSV.app/bin/maci -lmx -lmex -lmat -lstdc++
arguments = -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0708 -DMX_COMPAT_32
-> CXX = g++-4.0
-> CXX flags:
CXXFLAGS = -fno-common -no-cpp-precomp -fexceptions -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
CXXDEBUGFLAGS =
CXXOPTIMFLAGS = -O3
CXXLIBS = -L/Applications/MATLAB_R2009aSV.app/bin/maci -lmx -lmex -lmat -lstdc++
arguments = -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0708 -DMX_COMPAT_32
-> FC = gfortran
-> FC flags:
FFLAGS = -fexceptions -fbackslash
FDEBUGFLAGS = -gdwarf-2
FOPTIMFLAGS = -O
FLIBS = -L/Applications/MATLAB_R2009aSV.app/bin/maci -lmx -lmex -lmat -L -lgfortran -L -lgfortranbegin
arguments = -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0708 -DMX_COMPAT_32
-> LD = gcc-4.0
-> Link flags:
LDFLAGS = -Wl,-twolevel_namespace -undefined error -arch i386 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -bundle -Wl,-exported_symbols_list,/Applications/MATLAB_R2009aSV.app/extern/lib/maci/mexFunction.map
LDDEBUGFLAGS =
LDOPTIMFLAGS = -O3
LDEXTENSION = .mexmaci
arguments = -lmwlapack
-> LDCXX =
-> Link flags:
LDCXXFLAGS =
LDCXXDEBUGFLAGS =
LDCXXOPTIMFLAGS =
LDCXXEXTENSION =
arguments = -lmwlapack
----------------------------------------------------------------
/Applications/MATLAB_R2009aSV.app/bin/mex: line 1102: gcc-4.0: command not found
/Applications/MATLAB_R2009aSV.app/bin/mex: line 1081: gcc-4.0: command not found
-> gcc-4.0 -c -I. -I/Applications/MATLAB_R2009aSV.app/extern/include -I/Applications/MATLAB_R2009aSV.app/simulink/include -DMATLAB_MEX_FILE -fno-common -no-cpp-precomp -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -fexceptions -DHAVE_PTHREAD -DMATLAB_MEX_FILE -DMATLAB_VERSION=0x0708 -DMX_COMPAT_32 -O3 "mjdgges/mjdgges.c" -o ../../../mex/matlab//mjdgges.o
/Applications/MATLAB_R2009aSV.app/bin/mex: line 992: gcc-4.0: command not found
mex: compile of ' "mjdgges/mjdgges.c"' failed.
??? Error using ==> mex at 218
Unable to complete successfully.
Error in ==> build_matlab at 96
eval([ COMPILE_COMMAND ' -I. mjdgges/mjdgges.c ' LAPACK_PATH ]);