Hi I follow your posts regularly. I am interested in converting some of my gcc projects to clang. This article is a great starting point. However, I am stuck early on in the scan-build
step. I am getting the following errors:
~/.../example/freertos-example-llvm >>> scan-build make
scan-build: Using '/usr/bin/clang-10' for static analysis
/usr/bin/../lib/clang/ccc-analyzer
===GCC Compiler Detected===
Compiling src/builtin_scanbuild_examples.c
gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
gcc: error: unrecognized command line option ‘-mthumb’
gcc: error: unrecognized command line option ‘-mfloat-abi=hard’
gcc: error: unrecognized command line option ‘-mfpu=fpv4-sp-d16’
make: *** [Makefile:167: /home/rajah/workspace/interrupt/example/freertos-example- llvm/build/src/builtin_scanbuild_examples.o] Error 1
scan-build: Removing directory '/tmp/scan-build-2020-05-28-170744-12711-1' because it contains no reports.
scan-build: No bugs found.
~/.../example/freertos-example-llvm >>>
I have installed clang 10 on arch and I also have arm-none-eabi-gcc installed. What am I missing? Thanks in advance for any pointers.
Rajah