An error occurred ('RTW:buildProcess:fatalBuildError') when calling 'sim': error while running SIL Simulation in Test manager
27 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Shivani
el 10 de Jun. de 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 comentarios
Ver también
Categorías
Más información sobre Test Execution en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!