As you said, I tried compilation for both build-wrapper and sonar scanning in same environment,the sonar-scanner -X command executed successful , But still no luck, i found another issue ,Please find that issues screen-shots attached with this mail
It’s hard to tell what’s wrong with two screenshots.
It seems that no file has been found to be analyzed. Can you confirm the build-wrapper was called with a clean build command?
If so, please share the following: build-wrapper-dump.json, build-wrapper.log as well as the output of the sonar-scanner command