Coverity and ESP32-projects

permal
Posts: 384
Joined: Sun May 14, 2017 5:36 pm

Coverity and ESP32-projects

Postby permal » Fri Feb 02, 2018 5:59 pm

Hi,

Anyone managed to get Coverity to accept your project? When running cov-build all I get is:

Code: Select all

[WARNING] No files were emitted. This may be due to a problem with your configuration
The build process completes like it always do.

I ran Coverity as follows:

Code: Select all

make clean
cov-configure --compiler /home/permal/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc --gcc
cov-build --dir cov-int make -j8

meowsqueak
Posts: 151
Joined: Thu Jun 15, 2017 4:54 am
Location: New Zealand

Re: Coverity and ESP32-projects

Postby meowsqueak » Thu Feb 08, 2018 9:32 am

I am interested in using Coverity at some stage, so if you find a solution please return and let us know.

permal
Posts: 384
Joined: Sun May 14, 2017 5:36 pm

Re: Coverity and ESP32-projects

Postby permal » Thu Feb 08, 2018 10:52 am

I've not tried again since my initial post so no status change on my end.

alekseid
Posts: 1
Joined: Thu Apr 15, 2021 10:40 am

Re: Coverity and ESP32-projects

Postby alekseid » Thu Apr 15, 2021 10:46 am

I've faced similar issue and found solution. In my case I've found some hints in coverity logs:
[Codebox]This /home/xxxx/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc compiler command specifies the following arguments which should be marked as required in your configuration:
-mlongcalls -std=gnu99
Please reconfigure this compiler as follows:
cov-configure -co /home/xxxx/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- -mlongcalls -std=gnu99
or create a template configuration for it (recommended).
compiler[/Codebox]
So I've configured compiler as recommended
[Codebox]cov-configure -co /home/xxxx/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- -mlongcalls -std=gnu99[/Codebox]
And there is not different message at the end of compilation:
[Codebox]974 C/C++ compilation units (100%) are ready for analysis
The cov-build utility completed successfully.[/Codebox]
Hope that helps

Who is online

Users browsing this forum: No registered users and 100 guests