필터 지우기
필터 지우기

Failed compilation in Polyspace using R2022b

조회 수: 7 (최근 30일)
Suman
Suman 2023년 5월 23일
답변: Anirban 2023년 5월 23일
Hello All,
Great Day.
I am working on static code analysis using Polyspace R2022b to check the MISRA C:2012 coding standards.
While running the "Run Code Prover" for BugFinder report, it is showing some warnings and error messages like below:
  1. Some errors related to identifier XYZ is undefined
  2. some source files are not compilng (ie. Failed compilation)
  3. some showing could not find inlcude file "abc/xyz.h"
After generation of "Polyspace Code Verification Developer Report" for the project, I can see the source files which are having comilation errors.
No clue to solve this issue. It would be helpful if i get info to solve the issue and get the report succesfully.
Configurationn setting info:
Source ocde language: C
Compiler: greenhils
Target: arm
You can also find the screenshor regarding the compilation error and "files with compilation errors" in Generated report
Thank you in advance..

답변 (1개)

Anirban
Anirban 2023년 5월 23일
Errors such as this indicate that perhaps the project is not set up correctly. In particular, all the include folders have not been specified.
You can find some troubleshooting for the Undefined Identifier error in the documentation. In general, manually setting up the project can take some time. If you have working build command, you can use polyspace-configure to create a project from your build command and add all the right include folders automatically.
For more help with project setup, you can contact Technical Support. For more information on what Technical Support might need from you for diagnosing the problem, see Contact Technical Support.

카테고리

Help CenterFile Exchange에서 Generate Report에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by