This is part of my build.yml file content,
-name: Run build-wrapper
run: |
make clean
build-wrapper-linux-x86-64 --out-dir build_wrapper_output_directory ./build.sh
-name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.NEW_SONAR_TOKEN }}
run: |
export SONAR_SCANNER_JAVA_OPTS="-Xmx512m"
sonar-scanner -X --define sonar.cfamily.build-wrapper-output="/build_wrapper_output_directory"
I could see build wrapper compiles the code based on my build.sh
When the sonar scanner runs , it throws compiler not compatible error ,below is the error details ,
cc1plus: error: '-mfloat-abi=hard': selected architecture lacks an FPU
[1094](https://github.com/**/-app/actions/runs/9760671029/job/26940038061#step:15:1095)12:14:09.493 WARN: Provided compiler is not compatible.
[1095](https://github.com/*/*/actions/runs/9760671029/job/26940038061#step:15:1096)Invalid probe found, skip analysis of files: [/home/runner/work*.o, /home/runner/work/**/hello.cpp]
I recently changed my toolchain , the same yml code was working fine for my old toolchain ,
Question here is , when the build wrapper and build job can able to successfully compile the code , what’s happening with the sonar scanner ?