MATLAB Answers

Simulink Coder Error : Unable to find build success text "### Successfully generated all binary outputs." in build log

조회 수: 22(최근 30일)
Bhavanithya Thiraviaraja
편집: Nick Sarnie 30 Jun 2018
I am trying to generate code for a sample model which implements concurrent execution. I have attached the model. When trying to build the model through the "Profiler Report" in concurrent execution window or by using "rtwbuild(mdl)", I am getting the same error,
### Unable to find build success text: "### Successfully generated all binary outputs." in build log.
Error in coder.make.Builder/coder_build
Error in coder.make.Builder/run
Error in coder.make.invokeBuilder
Error in RTW/genMakefileAndBuild
Error in RTW/genMakefileAndBuildWrapper
Error in coder.internal.compileStage
Error in coder.internal.ModelBuilder/buildProcedure (line 1107)
compileResult = coder.internal.compileStage...
Error in coder.internal.ModelBuilder/make_rtw (line 197)
buildResult = buildProcedure...
Error in coder.internal.ModelCodegenMgr/make_rtw (line 8)
buildResult = obj.make_rtw(varargin);
Error in make_rtw (line 20)
buildResult = h.make_rtw(buildArgs, varargin{:});
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 (line 15)
Error in slbuild (line 72)
sl('slbuild_private', mdl, target, varargin{2:end});
Error in rtwbuild (line 217)
slbuild(sys, 'StandaloneRTWTarget', ...
I tried searching but I couldn't find any solutions on the internet. I found one similar question in this Forum here but there is no solution.
What is the reason for this error?
MATLAB : 2017b

  댓글 수: 1

Bhavanithya Thiraviaraja
I observed there is another error.
C:/PROGRA~1/MATLAB/R2017b/bin/win64/createResponseFile.exe 1 data_parallel_model.rsp data_parallel_model.obj data_parallel_model_data.obj
"### Creating standalone executable "../data_parallel_model.exe" ..."
"C:/PROGRA~1/MATLAB/R2017b/sys/lcc64/lcc64/bin/lcclnk64" -s -LC:/PROGRA~1/MATLAB/R2017b/sys/lcc64/lcc64/lib64 -o ../data_parallel_model.exe @data_parallel_model.rsp rt_main.obj @data_parallel_model_ref.rsp
rt_main.obj .text: undefined reference to '_InterlockedIncrement'
gmake: *** [../data_parallel_model.exe] Error 1
I guess this error is main error. Any idea what this error means?

댓글을 달려면 로그인하십시오.


Nick Sarnie
Nick Sarnie 30 Jun 2018
편집: Nick Sarnie 30 Jun 2018
It looks the root cause is that the LCC compiler does not support the neccessary Windows APIs required to compile the code generated from this model. Can you try downloading MinGW, and try again?
If you run into the same issue, please contact Technical Support.

  댓글 수: 0

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by