Failed to build model using LCC in rapid accelerator mode
38 ビュー (過去 30 日間)
古いコメントを表示
i got the following errors when i try to run the model in Matlab.
it seems to be problem with compiler. can somebody help?
### Building the rapid accelerator target for model: model
Warning: File 'codedescriptor.dmr' not found.
Warning: File 'codedescriptor.dmr' not found.
Warning: File 'codedescriptor.dmr' not found.
Warning: File 'codedescriptor.dmr' not found.
Warning model_capi_host.c: 13 Missing prototype for 'getRootMappingInfo'
### Build procedure for model aborted due to an error.
Build Summary
Top model rapid accelerator targets built:
Model Action Rebuild Reason
=================================================================================
model Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 33.381s
Error using init_model
Failed to build model 'model' using LCC in rapid accelerator mode, please consider
using a different compiler instead. For details on supported compiler versions, see
https://www.mathworks.com/support/compilers/current_release
Caused by:
Error using init_model
Building host-based CAPI for 'model' failed.
Error using init_model
cpp: "d:\model\slprj\raccel\model\model_capi.c":426 compiler limit:
line too long (more than 20290 chars)
>>
3 件のコメント
Umar
2024 年 7 月 23 日
Hi Abdullah,
To address the missing files issue, you can try the following steps:
Check if the 'codedescriptor.dmr' files are present in the expected directories.
Ensure that the paths to these files are correctly specified in your Matlab project settings.
If the files are missing, you may need to regenerate them by rebuilding the model or updating the code generation settings.
Regarding the compiler limit error, you can consider the following solutions:
Check the line in the 'model_capi.c' file that exceeds the compiler limit (more than 20290 characters) and try to refactor the code to reduce its length.
If refactoring the code is not feasible, you may need to adjust the compiler settings or use a different compiler that can handle longer lines.
I hope this answers your question.
回答 (1 件)
Jatin
2024 年 8 月 27 日
The warning message you are receiving appears if an unrelated 'codedescriptor.dmr' file is found on the search path during the model build stage.
You can ignore these warnings, or you can also update your release as this is fixed in R2023a.
This is answered by MathWorks Support Team in the following answer:
The error message about “compiler limit: line too long” occur if you do not have a configured supported compiler.
You can check the configured compiler on your MATLAB by using the following command:
mex -setup
You can go through the relevant MATLAB Answer and the "Supported and Compatible Compilers" documentation through the following links:
Hope this helps!
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!