How to fix "Failed to generate all binary outputs"
37 views (last 30 days)
Show older comments
Hector Manuel Berrones Dimas
on 4 Jul 2018
Edited: Diego Ramirez Vela
on 11 Apr 2020
### Generating code into build folder: C:\Users\Dell\Desktop\hh\untitled_ert_rtw
ans =
logical
### Invoking Target Language Compiler on untitled.rtw
### Using System Target File: C:\Program Files\MATLAB\R2017a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
......
### Initial pass through model to cache user defined code
.
### Caching model source code
.........................
### Writing header file untitled.h
### Writing header file untitled_types.h
.
### Writing source file untitled.c
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing header file untitled_private.h
### Writing header file rtmodel.h
### Writing source file ert_main.c
.
### TLC code generation complete.
### Generating TLC interface API.
..
### Creating data type transition file untitled_dt.h
Warning: Name is nonexistent or not a directory: C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\arduinoide.instrset\arduino-1.6.13\hardware\arduino\avr\libraries\Wire\utility
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino AVR v1.6.13 | gmake (64-bit Windows)
### 'C:\Users\Dell\Desktop\hh\untitled_ert_rtw\untitled.mk' is up to date
### Building 'untitled': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f untitled.mk all
C:\Users\Dell\Desktop\hh\untitled_ert_rtw>cd .
C:\Users\Dell\Desktop\hh\untitled_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f untitled.mk all ) else ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f untitled.mk )
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/bin/avr-gcc -std=gnu11 -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10613 -MMD -MP -MF"untitled.dep" -MT"untitled.o" -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=1 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DMW_TIMERID=1 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=62411 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Dell/Desktop/hh -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/libraries/Wire -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/libraries/Wire/utility -IC:/Users/Dell/DOCUME~1/MATLAB/Add-Ons/Collections/Rensselaer Arduino Support Package Library (RASPLib)/code/hurstj01-RASPLib-63c29b7/RASPlib/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Dell/Desktop/hh/untitled_ert_rtw -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2017a/toolbox/coder/rtiostream/src/utils -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/arduino/avr/variants/standard -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/libraries/Servo/src -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinotarget/scheduler/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/arduinoide.instrset/arduino-1.6.13/hardware/tools/avr/avr/include/avr -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/shared/externalmode_daemon/include -o untitled.o untitled.c
avr-gcc: error: Arduino: No such file or directory
avr-gcc: error: Support: No such file or directory
avr-gcc: error: Package: No such file or directory
avr-gcc: error: Library: No such file or directory
avr-gcc: error: (RASPLib)/code/hurstj01-RASPLib-63c29b7/RASPlib/include: No such file or directory
gmake: *** [untitled.o] Error 1
C:\Users\Dell\Desktop\hh\untitled_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\Dell\Desktop\hh\untitled_ert_rtw>An_error_occurred_during_the_call_to_make
"An_error_occurred_during_the_call_to_make" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
### Creating HTML report file untitled_codegen_rpt.html
### Build procedure for model: 'untitled' aborted due to an error.
Error(s) encountered while building "untitled":
### Failed to generate all binary outputs.
0 Comments
Accepted Answer
Ryan Livingston
on 17 Jul 2018
It looks like things are getting confused because of the spaces in the path:
-IC:/Users/Dell/DOCUME~1/MATLAB/Add-Ons/Collections/Rensselaer Arduino Support Package Library (RASPLib)/code/hurstj01-RASPLib-63c29b7/RASPlib/include
Can you install that and other libraries you're linking against in a directory without spaces in the name?
0 Comments
More Answers (2)
Omar Maaroof
on 15 Aug 2018
It's happening because of the spaces in the path, to solve it: First, delete spaces in folder's name Second, enter pathtool > in command window Third, click Add with Subfolders, select the path of the unzipped package, then save and close the window. you are ready to go>>
1 Comment
Diego Ramirez Vela
on 11 Apr 2020
Edited: Diego Ramirez Vela
on 11 Apr 2020
Thanks. This fixed the problem. The spaces are the problem
yerson mauricio
on 11 May 2019
Como se soluciona ese error? no puede poder con el
1 Comment
jhair barreto
on 10 Aug 2019
try to change the path in a new folder located in the desktop, and save your simulink file on this, it works fine!!
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!