An error occurred ('RTW:buildProcess:fatalBuildError') when calling 'sim': error while running SIL Simulation in Test manager
26 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am running SIL in test manager enviornment and my test cases are failing randomly with the error saying,
An error occurred ('RTW:buildProcess:fatalBuildError') when calling 'sim':
Error(s) encountered while building "XXX_rtwlib"
While the code for model is getting generated without any issues.
Could you please assist me in resolving the issue
2 Kommentare
Antworten (1)
Shivani
am 10 Jun. 2024
Hello,
I was also facing a similar issue while running SIL from Test Manager. Here are some of the workarounds that I tried to resolve this issue:
Initially, I changed the Shared code placement to Auto. You can refer to the following steps for more information on how to modify this setting:
- In the top model, on the Modeling tab, click Model Settings to open the Configuration Parameters dialog box.
- Go to Code Generation -> Interface.
- Change Shared code placement to Auto. This way, the problematic shared utility function will be directly generated inside "model.c", and no separate file will be generated for it in the shared utilities folder.
I was previously using the ‘LCC’ compiler and came across the following MATLAB Answer thread where it is mentioned that the ‘LCC’ compiler is deprecated: https://www.mathworks.com/matlabcentral/answers/2061017-lcc-compiler-will-be-removed-from-matlab-simulink-in-a-future-release. Therefore, I updated my C++ compiler to MinGW.
Additionally, you can also try updating your MATLAB instance to the latest release as a possible workaround.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Test Execution finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!