Page 1 of 1

Coverity and ESP32-projects

Posted: Fri Feb 02, 2018 5:59 pm
by permal
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

Re: Coverity and ESP32-projects

Posted: Thu Feb 08, 2018 9:32 am
by meowsqueak
I am interested in using Coverity at some stage, so if you find a solution please return and let us know.

Re: Coverity and ESP32-projects

Posted: Thu Feb 08, 2018 10:52 am
by permal
I've not tried again since my initial post so no status change on my end.

Re: Coverity and ESP32-projects

Posted: Thu Apr 15, 2021 10:46 am
by alekseid
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