Build procedure error; CGIR assertion failed. What does it mean?
43 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I try to build a model with R2011b for Generic Real-Time target(grt).
This is the error message I received:
### Starting build procedure for model: my_model
### Generating code into build folder: C:\Users\my_path\my_model\my_model_grt_rtw
CGIR assertion 'fLength == selRegions.getLength()' failed in '.\dom_core\lowering\ScalarizeVcat.cpp:920'
[ 0] 0x572a5017 C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\cgir_xform.dll+01789975 ( CG::isVcatScalSuppAutoVerifierCheckExpr+004247 )
[ 1] 0x572a5b87 C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\cgir_xform.dll+01792903 ( CG::isVcatScalSuppAutoVerifierCheckExpr+007175 )
[ 2] 0x572a5ec5 C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\cgir_xform.dll+01793733 ( CG::isVcatScalSuppAutoVerifierCheckExpr+008005 )
[ 3] 0x5715b46c C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\cgir_xform.dll+00439404 ( CG::transform::ScalVcat::processFcn+000012 )
[ 4] 0x571547e6 C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\cgir_xform.dll+00411622 ( CG::FcnTransform::apply+000086 )
[ 5] 0x5715488a C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\cgir_xform.dll+00411786 ( CG::FcnTransform::processScopeWithService+000074 )
[ 6] 0x5715b915 C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\cgir_xform.dll+00440597 ( CG::ScopeTransform::apply+000053 )
[ 7] 0x575fd01a C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\rtwcg.dll+00708634 ( RTWCG::RTWFcnConst::CommonTransformsToOptimizeAndEmitCode+003530 )
[ 8] 0x575ff4ad C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\rtwcg.dll+00717997 ( RTWCG::RTWFcnConst::OptimizeAndEmitCode+003101 )
[ 9] 0x575c085d C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\rtwcg.dll+00460893 ( RTWCG::RTWCGModule::OptimizeAndEmitCode+000125 )
[ 10] 0x59b99ecd C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\libmwsimulink.dll+08298189 ( BlockSetCheckVarDimsInputEmpty+066381 )
[ 11] 0x59b96f97 C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\libmwsimulink.dll+08286103 ( BlockSetCheckVarDimsInputEmpty+054295 )
[ 12] 0x59beaa02 C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\libmwsimulink.dll+08628738 ( sleGetRTWBlockForSLBlock+262210 )
[ 13] 0x59beaf9f C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\libmwsimulink.dll+08630175 ( sleGetRTWBlockForSLBlock+263647 )
[ 14] 0x596db9c5 C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\libmwsimulink.dll+03324357 ( ArrayToSLObject+481685 )
[ 15] 0x025fea8c C:\Program Files (x86)\MATLAB\R2011bSP1\bin\win32\m_dispatcher.dll+00060044 ( mdLogging::log_function_exit+000108 )
### Build procedure for model: 'my_model' aborted due to an error.
Error using tlc_c (line 174)
Unexpected or internal error encountered in "in CGIR: .\dom_core\lowering\ScalarizeVcat.cpp line 920: fLength == selRegions.getLength()
". Please report this to MathWorks if you can cause it to recur
Error in RTW.makertw/make_rtw (line 281)
buildResult = tlc_c(h,...
Error in make_rtw (line 22)
buildResult = h.make_rtw(varargin{:});
Error in C:\Program Files (x86)\MATLAB\R2011bSP1\toolbox\simulink\simulink\private\build_target.p>RunBuildCmd (line 94)
Error in C:\Program Files (x86)\MATLAB\R2011bSP1\toolbox\simulink\simulink\private\build_target.p>build_target (line 6)
Error in C:\Program Files (x86)\MATLAB\R2011bSP1\toolbox\simulink\simulink\private\build_standalone_rtw_target.p>build_standalone_rtw_target (line
56)
Error in C:\Program Files (x86)\MATLAB\R2011bSP1\toolbox\simulink\simulink\private\slbuild_private.p>loc_codegenentry (line 591)
Error in C:\Program Files (x86)\MATLAB\R2011bSP1\toolbox\simulink\simulink\private\slbuild_private.p>slbuild_private (line 335)
Error in sl (line 16)
[varargout{1:nargout}]=feval(varargin{:});
Error in slbuild (line 62)
sl('slbuild_private', mdl, varargin{:});
0 comentarios
Respuestas (2)
Suneesh
el 10 de Feb. de 2014
CGIR assertions indicate an issue/bug with the code generation engine used. If this is NOT a custom block and if the issue is reproducible then this indicates a bug. Please contact MathWorks Tech Support.
0 comentarios
RaviTeja
el 21 de Mayo de 2023
I faced a similar issue, I'm using 2010B SP1.
I was able to run the model,but when I try for code generation(ctrl+B)
This can be happening because of
- Global Tags: Some times when we use Global Tags, some signals might not be able to travel from source to destination.But, this issue was cleared in later versions of MATLAB.
- Resolved signals: If you have resolved a signal name, same as source name.
- Don't leave any white spaces in naming or at anypart of model, It'll also make you to struggle during code generation.
0 comentarios
Ver también
Categorías
Más información sobre Simulink Coder en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!