no, currently there is no way to get rid of this nor to match it to a different arch. The only way to match it to another arch is to build for another arch.
That message doesn’t mean that files are not analyzed, however some rules related to size of types may raise some false positives.
Hi Massimo,
thanks for the details. Is there a list of supported architectures? I’m not sure if, and how I can build with different target - but I will check.
Hi @mpaladin,
thanks for the feedback - no hurry. Thanks for your support!
I’ve added the the verbose option and it showed that some include files from external libraries had not been found. It was due to the sed modifications in the build-wrapper-dump.json. Now I do
sed -i 's|OpenBikeSensorFirmware/bin|OpenBikeSensorFirmware|g' \
sonarqube-out/build-wrapper-dump.json
sed -i 's|\.pio/|bin/.pio/|g' \
sonarqube-out/build-wrapper-dump.json
and the header file is found - at least there are no complaints any more in the verbose log. And the strange false positives vanished.
I also tried to replace xtensa-esp32-elf with le32-unknown-nacl in the build-wrapper-dump.json but with no luck - I assume the target arch is not detected via information from the build-wrapper-dump.json?
# replace gcc with our script that reports the fake arch "le32-unknown-nacl"
sed -i "s|/github/home/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g..|`pwd`/.github/fake-cc|g" \
sonarqube-out/build-wrapper-dump.json
Yes it helped. Warnings are gone, results look, like the size of the types is now detected correctly.
There is now one complaint remaining in the logs, about one file missing: stdbool.h. I can not find it either - it seems all OK anyway.