This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

coverity usage

Hi expert,

My customer wants to use coverity to analyze code, but they meet many obstacles.

I want to know whether CCS 6.1 support coverity or not.

they can not test build successful. and they want to know how to write the command line.

another try

BR

Emma

  • Hello Emma,

    It appears you are not specifying the makefile to build (-f option)

    Please refer to the gmake documentation for more information:

    https://linux.die.net/man/1/gmake

    Thanks

    ki

  • I have checked your link ,you suggest we use the make [-f makefile][option]…[target] ,I have found the makefile which is generated automatically while building the project ,but when I put the make command to COVERITY, it trig fault and tips :make is not recognized as an internal or external command" 

  • What is the exact command that is specified? Can I see a screenshot like Emma provided in the original post?

  • when I Test Build  it trigs fault

  • Hello,

    You have specified the incorrect command.

    Please take a look at the screenshot from Emma above. It should look similar to that command. The only thing missing in Emma's command is the -f option to specify the full path to the makefile.

    Example:

    <CCS INSTALL DIR>/ccs/utils/bin/gmake -k -f C:/path/to/generated/makefile

    Note that the generated makefile will likely have dependencies on the working directory being the same location as the generated makefile. In such cases, I suggest specifying the working directory as such to avoid any build errors.

    Thanks

    ki

  • Thanks for your reply , I have fixed my command followed by your suggestion C:\ti\ccsv6\utils\bin\gmake -k  -f  "C:\DG1_DSP\Project\Debug\makefile" I like this command should be put on the Build ,can you suggest what command should I put on the clear, I am thinking, there is  a slightly difference between the clean and build command for input  I have added the "-f" into my command ,and try to build test ,this time ,although I have error ,but it look like I am moving on the right way, after click "test build"   , why I have specified a makefile ,and i build it successfully with ccs ,but as tips show: so many files still can not be found,  

  • I have make progress like the below    After "test build"     I can pass the build test, but my question is why was only one file "Control_Loop_Tcur.c"  build ,what about the other files? the makefile is generated automatically while building .

  • Hello,

    Note that the generated makefile will likely have dependencies on the working directory being the same location as the generated makefile. In such cases, I suggest specifying the working directory as such to avoid any build errors.

    As mentioned earlier, I suggest setting the working/intermediate directory to the same location as the makefile location.

    I'm not sure how coverty defines working vs intermediate. But basically you want to run the command from the same location as the makefile.

    Please try that.

    Thanks

    ki

  • thanks for your reply, I have changed my working directory  ,and specified the same location as the generated makefile   after the "Test build "  the result is the same, the clear command look more normal than the build command, still only one file be build ,and then the build paused and report finished , so strange ,I have tried changed both my working directory and intermediate directory the same location as the generated makefile ,but the result is still the same,    And your thoughts?

  • I don't see any build errors so it is hard to say what the issue is. If the project builds fine in CCS, then the generated makefile should be good.

    I have not tried using Coverity myself so I have very little experience with it. You may want to contact Coverity support directly.

    Also note that CCSv6 is very old and unsupported. I'm not sure if you have an option to upgrade CCS versions. If you do, I recommend it (though you should check with Coverity to see which CCS versions are supported).

  • thanks for your information ,you are helpful, I will contact the Coverity 

  • Good luck. After they help you resolve your issue, if you don't mind maybe you can also update this thread. I'm sure it will be helpful for others on this forum.