How to solve the porblem "Failed to generate all binary outputs"
24 ビュー (過去 30 日間)
古いコメントを表示
I have copyed my model to another Computer, but when I build the model, it always occurs:
Error(s) encountered while building "rtwshared": ### Failed to generate all binary outputs
The total Diagnost Viewer like this:
Building flightController
2
Elapsed: 3 sec
### Checking the status of model reference code generation target for model 'flightController' used in 'flightControlSystem' ### Checking for structural changes in flightController because the model reference rebuild option is set to 'If any changes detected'. Structural changes cause the model reference code generation target to be rebuilt. ### Starting build procedure for model: flightController ### Generating code and artifacts to 'Model specific' folder structure
Code Generation
1
Elapsed: 1 sec
### Code for the model reference code generation target for model flightController is up to date because no functional changes were found in the referenced model.
Building stateEstimator
2
Elapsed: 4 sec
### Checking the status of model reference code generation target for model 'stateEstimator' used in 'flightControlSystem' ### Checking for structural changes in stateEstimator because the model reference rebuild option is set to 'If any changes detected'. Structural changes cause the model reference code generation target to be rebuilt. ### Starting build procedure for model: stateEstimator ### Generating code and artifacts to 'Model specific' folder structure
Code Generation
1
Elapsed: 3 sec
### Code for the model reference code generation target for model stateEstimator is up to date because no functional changes were found in the referenced model.
### Starting build procedure for model: flightControlSystem ### Generating code and artifacts to 'Model specific' folder structure
Code Generation
1
Elapsed: 23 sec
### Generating code into build folder: C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\work\flightControlSystem_ert_rtw ### Invoking Target Language Compiler on flightControlSystem.rtw ### Using System Target File: D:\Matlab\rtw\c\ert\ert.tlc ### Loading TLC function libraries ### Generating TLC interface API for custom data . ### Initial pass through model to cache user defined code ### Caching model source code ............................................................................... ....................................... ### Writing header file flightControlSystem_types.h ### Writing header file flightControlSystem.h ### Writing source file flightControlSystem.c ### Writing header file flightControlSystem_private.h ### Writing source file flightControlSystem_data.c . ### Writing header file rtmodel.h ### Writing source file ert_main.c ### TLC code generation complete. ### Evaluating PostCodeGenCommand specified in the model ### Using toolchain: Sourcery G++ Lite GNU Toolchain for Drones ### 'C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\work\slprj\ert\_sharedutils\rtwshared.mk' is up to date ### Building 'rtwshared': "D:\Matlab\bin\win64\gmake" -f rtwshared.mk all C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\work\slprj\ert\_sharedutils>cd . C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\work\slprj\ert\_sharedutils>if "" == "" ("D:\Matlab\bin\win64\gmake" -f rtwshared.mk all ) else ("D:\Matlab\bin\win64\gmake" -f rtwshared.mk ) gmake: *** No rule to make target `C:/Users/ys1909s/MATLAB/Projects/examples/asbQuadcopter(SHAO)/work/slprj/ert/_sharedutils/rtGetInf.c', needed by `rtGetInf.o'. Stop. C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\work\slprj\ert\_sharedutils>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\work\slprj\ert\_sharedutils>exit 1 ### Creating HTML report file flightControlSystem_codegen_rpt.html
### Build procedure for model: 'flightControlSystem' aborted due to an error.
Error(s) encountered while building "rtwshared": ### Failed to generate all binary outputs.
Can anyone solve this porblem?? Thanks
2 件のコメント
vinay gurram
2020 年 5 月 29 日
What solution it solved the issue of "Error(s) encountered while building "rtwshared":### Failed to generate all binary outputs."? Can help me out.
回答 (2 件)
Jonas Franz
2020 年 11 月 13 日
Hello,
I had the error:
Error(s) encountered while building "conversionYUV_rtwlib":
### Failed to generate all binary outputs.
Before the error occurred I changed the name of folder. I guess you have the same problem with your path.
Because your old path was:
C:/Users/ys1909s/MATLAB/Projects/examples/asbQuadcopter(SHAO)/
as you can see in the error log after *** No rule to make target
but your new path is:
C:\Users\Charlotte\MATLAB\Projects\asbQuadcopter(SHAO)\
It seems this causes an error.
Changing the path back solved the problem for me.
1 件のコメント
Mohsen Abdolahi
2021 年 12 月 15 日
Hello. i have the same problem. I'm trying to build my controller for a converter using the Simulink code generation. but every time I try to build the code, I get the following error, adn it doesn't fix with the solution that yuo suggest. If it's possible, please check this error for me. Thank you
### Starting build procedure for: testdsp
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: C:\Users\Mohsen\Desktop\mmm\testdsp_ert_rtw
### Invoking Target Language Compiler on testdsp.rtw
### Using System Target File: C:\Program Files\MATLAB\R2021b\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Generating TLC interface API for custom data
.
### Initial pass through model to cache user defined code
### Caching model source code
### Writing header file testdsp_types.h
### Writing source file testdsp.c
.
### Writing header file testdsp_private.h
### Writing header file testdsp.h
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\xnrm2_blBNbZ7b.c
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\xnrm2_blBNbZ7b.h
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rt_hypotd_snf.c
.
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rt_hypotd_snf.h
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\qrFactor_X1uWt5E6.c
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\qrFactor_X1uWt5E6.h
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\trisolve_9AdprvLJ.c
.
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\trisolve_9AdprvLJ.h
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rt_urand_Upu32_Yd_f_pw_snf.c
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rt_urand_Upu32_Yd_f_pw_snf.h
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rt_nrand_Upu32_Yd_f_pw_snf.c
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rt_nrand_Upu32_Yd_f_pw_snf.h
.
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\look1_pbinlxpw.c
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\look1_pbinlxpw.h
### Writing header file rtwtypes.h
### Writing header file zero_crossing_types.h
### Writing header file rt_zcfcn.h
.
### Writing source file rt_zcfcn.c
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
.
### Writing source file rtGetNaN.c
### Writing source file stateTransitionFcn.c
### Writing header file stateTransitionFcn_private.h
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\stateTransitionFcn.h
### Writing source file testdsp_data.c
.
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Saving binary information cache.
Code Composer Studio Project
### Creating CCS Project at : C:\Users\Mohsen\Desktop\mmm\testdsp_ert_rtw\CCS_Project
### CCS project created successfully Open project in Code Composer Studio.
### Using toolchain: Texas Instruments Code Composer Studio (C2000)
### Creating 'C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rtwshared.mk' ...
### Building 'rtwshared': "C:\PROGRA~1\MATLAB\R2021b\bin\win64\gmake" -f rtwshared.mk all
...
C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils>cd .
C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils>if "all" == "" ("C:\PROGRA~1\MATLAB\R2021b\bin\win64\gmake" -f rtwshared.mk all ) else ("C:\PROGRA~1\MATLAB\R2021b\bin\win64\gmake" -f rtwshared.mk all )
"C:/PROGRA~3/MATLAB/SUPPOR~1/3P778C~1.INS/TIC28X~1.INS/TI-CGT~1.LTS/bin/cl2000" --abi=coffabi --compile_only --preproc_dependency="look1_pbinlxpw.dep" --preproc_with_compile --large_memory_model --silicon_version=28 --define="LARGE_MODEL" -I"/~SupportFiles/DSP280x_headers" -I"/~SupportFiles/DSP280x_headers/include" -I"C:/PROGRA~3/MATLAB/SUPPOR~1/3P778C~1.INS/TIC28X~1.INS/TI-CGT~1.LTS/include" -v28 --float_support=fpu32 -ml -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DINTEGER_CODE=0 -DNRT -DUSE_RTMODEL -DERT -DDAEMON_MODE=1 -DXCP_CUSTOM_PLATFORM -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DMW_PIL_SCIFIFOLEN=16 -DMW_F2833X -DSTACK_SIZE=512 -IC:/Users/Mohsen/Desktop/mmm -IC:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils -IC:/PROGRA~1/MATLAB/R2021b/extern/include -IC:/PROGRA~1/MATLAB/R2021b/simulink/include -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2021b/toolbox/physmod/powersys/facts/facts -IC:/PROGRA~1/MATLAB/R2021b/toolbox/physmod/powersys/DR/DR -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/target/SUPPOR~1/tic2000/inc -IC:/PROGRA~1/MATLAB/R2021b/toolbox/shared/can/src/scanutil -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/target/SUPPOR~1/tic2000/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/shared/SUPPOR~1/tic2000/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/shared/SUPPOR~1/tic2000/inc -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/target/shared/EXTERN~1/include -IC:/PROGRA~1/MATLAB/R2021b/toolbox/rtw/targets/common/can/blocks/tlc_c --output_file="look1_pbinlxpw.obj" "C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/look1_pbinlxpw.c"
"C:/PROGRA~3/MATLAB/SUPPOR~1/3P778C~1.INS/TIC28X~1.INS/TI-CGT~1.LTS/bin/cl2000" --abi=coffabi --compile_only --preproc_dependency="qrFactor_X1uWt5E6.dep" --preproc_with_compile --large_memory_model --silicon_version=28 --define="LARGE_MODEL" -I"/~SupportFiles/DSP280x_headers" -I"/~SupportFiles/DSP280x_headers/include" -I"C:/PROGRA~3/MATLAB/SUPPOR~1/3P778C~1.INS/TIC28X~1.INS/TI-CGT~1.LTS/include" -v28 --float_support=fpu32 -ml -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DINTEGER_CODE=0 -DNRT -DUSE_RTMODEL -DERT -DDAEMON_MODE=1 -DXCP_CUSTOM_PLATFORM -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DMW_PIL_SCIFIFOLEN=16 -DMW_F2833X -DSTACK_SIZE=512 -IC:/Users/Mohsen/Desktop/mmm -IC:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils -IC:/PROGRA~1/MATLAB/R2021b/extern/include -IC:/PROGRA~1/MATLAB/R2021b/simulink/include -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2021b/toolbox/physmod/powersys/facts/facts -IC:/PROGRA~1/MATLAB/R2021b/toolbox/physmod/powersys/DR/DR -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/target/SUPPOR~1/tic2000/inc -IC:/PROGRA~1/MATLAB/R2021b/toolbox/shared/can/src/scanutil -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/target/SUPPOR~1/tic2000/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/shared/SUPPOR~1/tic2000/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/shared/SUPPOR~1/tic2000/inc -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/target/shared/EXTERN~1/include -IC:/PROGRA~1/MATLAB/R2021b/toolbox/rtw/targets/common/can/blocks/tlc_c --output_file="qrFactor_X1uWt5E6.obj" "C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c"
"C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c", line 35: error: floating constant is out of range
"C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c", line 39: error: floating constant is out of range
"C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c", line 40: error: floating constant is out of range
"C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c", line 41: error: floating constant is out of range
"C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c", line 42: error: floating constant is out of range
"C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c", line 50: error: floating constant is out of range
6 errors detected in the compilation of "C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c".
>> Compilation failure
gmake: *** [qrFactor_X1uWt5E6.obj] Error 1
C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils>exit /B 1
### Creating HTML report file index.html
### Build procedure for testdsp aborted due to an error.
Build Summary
Top model targets built:
Model Action Rebuild Reason
===================================================================
testdsp Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 48.352s
Error(s) encountered while building "rtwshared"
Urmila Rajpurohith
2021 年 3 月 31 日
Hi
It might be happening because of the spaces in the path.To solve this refer to the steps mentioned in the below link :
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Processor Software についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!