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

20 visualizaciones (últimos 30 días)
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)
[varargout{1:nargout}]=feval(varargin{:});
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 comentario
Bhavanithya Thiraviaraja
Bhavanithya Thiraviaraja el 8 de Mayo de 2018
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?

Iniciar sesión para comentar.

Respuestas (1)

Nick Sarnie
Nick Sarnie el 30 de Jun. de 2018
Editada: Nick Sarnie el 30 de Jun. de 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.

Categorías

Más información sobre Deployment, Integration, and Supported Hardware 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!

Translated by