Strange complilation issues with CLA bock in Matlab 2021b using F28379D

1 次查看(过去 30 天)
Dear Mathwork community,
Recently after switching to Matlab2021b for the past 3 weeks, we are getting very strange compilation errors while the CLA block is included, before anything I should say:
  1. The code works perferctly on matlab 2019b
  2. All the memory assignements in CLA ( the inputs and all the delay functions and so on) are done based on the guides on CLA based on this, the cmd file and the rest are also fully compliying
  3. We are using CLA block and not the inlined function for CLA (BTW, the error appears in both)
  4. I can't share the code here as it's huge and many other concerns.
  5. Once we comment the CLA block the code compiles ( no change in project settings)
  6. by putting an Empty CLA block in the same place the code shows the same compilation errors, so the problem is not the code within the CLA
The error is and to me it's impossilbe to track down where it's happeneing ( of course I checked the TLC files that it refers but it's not feasible to undrestand what is the cause od this error)
I belive this error should be due to some project settings, but what can be the cause is unknown and we appriciate your help for that.

Invoking Target Language Compiler on SLP.rtw ### Using System Target File: C:\Program Files\MATLAB\R2021b\rtw\c\ert\ert.tlc ### Loading TLC function libraries ### Generating TLC interface API for custom data ### Initial pass through model to cache user defined code Error: File: C:\ProgramData\MATLAB\SupportPackages\R2021b\toolbox\target\supportpackages\tic2000\blocks\mex\tlc_c\c2000cla.tlc Line: 78 Column: 27 The == and != operators can only be used to compare values of the same type Main program: ==> [00] C:\ProgramData\MATLAB\SupportPackages\R2021b\toolbox\target\supportpackages\tic2000\blocks\mex\tlc_c\c2000cla.tlc:BlockInstanceSetup(78) [01] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\blocks\gensfun.tlc:BlockInstanceSetup(378) [02] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\private_api\blocksetuplib.tlc:BlockSetupAndCompatibilityCheck(134) [03] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonpass.tlc:<NONE>(53) Error: File: C:\ProgramData\MATLAB\SupportPackages\R2021b\toolbox\target\supportpackages\tic2000\blocks\mex\tlc_c\c2000cla.tlc Line: 130 Column: 26 The left-hand side of a . operator must be a valid scope identifier Main program: ==> [00] C:\ProgramData\MATLAB\SupportPackages\R2021b\toolbox\target\supportpackages\tic2000\blocks\mex\tlc_c\c2000cla.tlc:BlockInstanceSetup(130) [01] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\blocks\gensfun.tlc:BlockInstanceSetup(378) [02] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\private_api\blocksetuplib.tlc:BlockSetupAndCompatibilityCheck(134) [03] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonpass.tlc:<NONE>(53) ### Caching model source code Error: File: C:\ProgramData\MATLAB\SupportPackages\R2021b\toolbox\target\supportpackages\tic2000\blocks\mex\tlc_c\c2000cla.tlc Line: 350 Column: 58 The left-hand side of a . operator must be a valid scope identifier Main program: ==> [00] C:\ProgramData\MATLAB\SupportPackages\R2021b\toolbox\target\supportpackages\tic2000\blocks\mex\tlc_c\c2000cla.tlc:Start(350) [01] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\blocks\gensfun.tlc:Start(778) [02] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:OpaqueTLCBlockFcn(5031) [03] C:\company\MatlabDev\F28388D_testings\SLP\SLP_ert_rtw\tlc\s742_b0_ok9vc_25_Start.tlc:Start(22) [04] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenRateGroupedCodeFromModule(5928) [05] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenerateCodeFromModule(5841) [06] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcn(292) [07] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodyFcnCache(558) [08] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcnEntry(667) [09] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonbodlib.tlc:FcnGenBodySysCache(1820) [10] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonbodlib.tlc:SLibGenBodyCache(6480) [11] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\formatwide.tlc:<NONE>(76) Error: File: C:\ProgramData\MATLAB\SupportPackages\R2021b\toolbox\target\supportpackages\tic2000\blocks\mex\tlc_c\c2000cla.tlc Line: 351 Column: 41 The left-hand side of a . operator must be a valid scope identifier Main program: ==> [00] C:\ProgramData\MATLAB\SupportPackages\R2021b\toolbox\target\supportpackages\tic2000\blocks\mex\tlc_c\c2000cla.tlc:Start(351) [01] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\blocks\gensfun.tlc:Start(778) [02] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:OpaqueTLCBlockFcn(5031) [03] C:\company\MatlabDev\F28388D_testings\SLP\SLP_ert_rtw\tlc\s742_b0_ok9vc_25_Start.tlc:Start(22) [04] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenRateGroupedCodeFromModule(5928) [05] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:FcnGenerateCodeFromModule(5841) [06] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcn(292) [07] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodyFcnCache(558) [08] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\opaquelib.tlc:SLibFcnGenBodySysFcnEntry(667) [09] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonbodlib.tlc:FcnGenBodySysCache(1820) [10] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\commonbodlib.tlc:SLibGenBodyCache(6480) [11] C:\Program Files\MATLAB\R2021b\rtw\c\tlc\mw\formatwide.tlc:<NONE>(76)

Regards

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by