slbuild function fails due to "Code generation information file does not exists."

29 views (last 30 days)
Does any one have any tips on how to debug errors due to slbuild? This occurs as I execute slbuild on a simulink model.
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 30228 invalid struct field declarations
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 30228 syntax error; found `nt3' expecting '}'
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 30228 skipping `nt3'Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 30228 missing '
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 30228 missing '
'' `real_T' `noise_val' `[' `52' `]'
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 30682 missing '
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 30682 missing '
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 30682 Syntax error; missing semicolon before ''
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 30682 unrecognized declaration
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 31101 missing '
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 31101 missing identifier
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 31101 Syntax error; missing semicolon before '<S12540>/Direc'
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 31101 unrecognized declaration
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 31520 missing '
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 31520 unrecognized declaration
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 32355 missing '
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 32355 unrecognized declaration
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 34040 missing '
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 34040 missing identifier
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 34040 Syntax error; missing semicolon before '<S11626>/C'
Error c:\git\stockFind\dev\simulation_model_rsim_rtw\simulation_model.c: simulation_model.h: 34040 too many errors
gmake: *** [simulation_model.obj] Error 1
### Build procedure for simulation_model aborted due to an error.
Build Summary
Top model targets built:
Model Action Rebuild Reason
======================================================================================
simulation_model Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 1h 21m 51.748s
Error using RTW.genMakefileAndBuild>i_runMakefile (line 1884)
Error(s) encountered while building "simulation_model"
Error in RTW.genMakefileAndBuild (line 494)
i_runMakefile(lBuildName, lBuildLogger, lTMFProperties, lWrappedMakeCmd, ...
Error in codebuild (line 229)
lMakeResult = RTW.genMakefileAndBuild...
Error in coder.internal.ModelBuilder>i_buildProcedure (line 1431)
compileResult = codebuild(lBuildInfoUpdated, compileBuildOptsUpdated);
Error in coder.internal.ModelBuilder.make_rtw (line 132)
[buildResult, mainObjFolder] = i_buildProcedure...
Error in build_target
Error in build_target
Error in build_standalone_rtw_target
Error in slbuild_private
Error in slbuild_private
Error in sl
Error in slbuild
Error in slbuild
Error in sim_parallel_allCh_main (line 84)
slbuild(mdl);
IdleTimeout has been reached.
Parallel pool using the 'local' profile is shutting down.

Answers (1)

Piyush Dubey
Piyush Dubey on 1 Jun 2023
Hi Victor,
Usually, this error arises when the path is too long or contains whitespaces. The error may resolve when the path length has lesser than or equal to 260 characters (including drive letter and colon). Apart from these there seems to have occurred certain syntax errors that might have resulted in this issue.
Enabling “Generate Code only or Create Code Generation Report” options may act as a possible workaround.
Hope this helps.

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!