'Error using mex' on macOS Catalina, MATLAB R2020a
hengkp opened this issue · 2 comments
hengkp commented
Hello D2D-team,
I'm getting the following error when trying to run the Beckmann model (from example folder Bachmann_MSB2011) on macOS Catalina (Version 10.15.5) using MATLAB R2020a Update 2 (Version 9.8.0.1380330):
Data 2 Dynamics Software
(arFramework3, def-version 3, c-version code_190517c)
Website & bug report: http://www.data2dynamics.org
Copyright 2016 D2D Development Team. All rights reserved.
Clearing old D2D mex files from memory [OK]
.
.
.
Building with 'Xcode with Clang'.
Error using mex
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:43:3:
error: use of undeclared identifier 't1'
t1 = (p[10]*x_tmp[1]*x_tmp[7])/p[24];
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:44:3:
error: use of undeclared identifier 't2'
t2 = (p[6]*x_tmp[1])/((p[14]*x_tmp[24])/p[13]+1.0);
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:45:3:
error: use of undeclared identifier 't3'
t3 = (p[6]*x_tmp[1]*3.0)/((p[7]*x_tmp[5]+1.0)*((p[14]*x_tmp[24])/p[13]+1.0));
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:46:3:
error: use of undeclared identifier 't4'
t4 = (p[6]*x_tmp[2]*3.0)/((p[7]*x_tmp[5]+1.0)*((p[14]*x_tmp[24])/p[13]+1.0));
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:47:3:
error: use of undeclared identifier 't5'
t5 = (p[6]*x_tmp[3])/((p[14]*x_tmp[24])/p[13]+1.0);
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:48:3:
error: use of undeclared identifier 't6'
t6 = (p[10]*x_tmp[2]*x_tmp[7])/p[24];
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:49:3:
error: use of undeclared identifier 't7'
t7 = (p[10]*x_tmp[3]*x_tmp[7])/p[24];
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:50:3:
error: use of undeclared identifier 't8'
t8 = (p[10]*x_tmp[4]*x_tmp[7])/p[24];
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:51:3:
error: use of undeclared identifier 't9'
t9 = ((x_tmp[2]+x_tmp[4])*p[8]*x_tmp[5])/p[23];
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:52:3:
error: use of undeclared identifier 't10'
t10 = (p[11]*x_tmp[6]*(x_tmp[1]+x_tmp[2]+x_tmp[3]+x_tmp[4]))/p[23];
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:53:3:
error: use of undeclared identifier 't11'
t11 = p[12]*x_tmp[7];
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:54:3:
error: use of undeclared identifier 't12'
t12 = (p[20]*x_tmp[8]*(x_tmp[1]+x_tmp[2]+x_tmp[3]+x_tmp[4]))/(((p[14]*x_tmp[24])/p[13]+1.0)*p[23]);
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:55:3:
error: use of undeclared identifier 't13'
t13 = (pow(x_tmp[2]+x_tmp[4],2.0)*p[19]*1.0/(p[23]*p[23])*x_tmp[8])/(((p[1]*x_tmp[17])/p[0]+1.0)*((p[14]*x_tmp[24])/p[13]+1.0));
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:56:3:
error: use of undeclared identifier 't14'
t14 = p[22]*x_tmp[9];
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:57:3:
error: use of undeclared identifier 't15'
t15 = p[21]*x_tmp[10];
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:58:3:
error: use of undeclared identifier 't16'
t16 = (p[3]*p[4]*x_tmp[10])/p[25];
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:59:3:
error: use of undeclared identifier 't17'
t17 = p[2]*x_tmp[11];
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:60:3:
error: use of undeclared identifier 't18'
t18 = p[2]*x_tmp[12];
^
/Users/heng/Documents/MATLAB/Function/d2d-master/arFramework3/Examples/Bachmann_MSB2011/Compiled/code_190517c/jak2_stat5_feedbacks_C2FDCA99A5CD7B922B6E986EFF13F3C4.c:61:3:
error: use of undeclared identifier 't19'
t19 = p[2]*x_tmp[13];
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Error in arCompile (line 468)
mex('-c',verbose{:},mexopt{:},'-outdir',['./Compiled/' c_version_code '/' mexext '/'], ...
Error in arCompileAll (line 586)
arCompile(forcedCompile, false, false, source_dir);
Error in Setup (line 21)
arCompileAll;
Could you please help to suggest how to fix this problem?
Best regards,
Heng
mhyamani commented
I am checking the issue and write back in a few days.
bartekli commented
Hello,
same here - would be grateful for any feedback!
With kindest regards,
Bartek