I was hoping to be able to infer the underlying CMake Generator (as seen on this answer ), but instead I was blocked by the following error : java.lang.IllegalStateException: The “build-wrapper-dump.json” file was found empty. Please make sure that: […]
So, I tried not infering the Generator with the following command
build-wrapper-linux-x86-64 --out-dir . ninja
and I have been surprised : It works and my pipeline finishes without any issues.
BUT I will still need to infer the CMake Generator at one point, so my question : does some one already encounter a similar case and found what was the problem with the cmake --build . statement ?
should lead to the same result. Could you share the build-wrapper.log and build-wrapper-dump.json files of both runs? I can send you a pm if you prefer to share privately.
Hi @mpaladin
Thanks for taking interest in this small problem (probably).
Here are the files you requested.
I looked into them, but I am clearly not used to, so maybe you will be able to find something strange. sonar_issue.zip (16.0 KB)
the reason is because of snap, you are invoking a cmake which has been installed through https://snapcraft.io/. build-wrapper is using dynamic library concept to observe created processes, in this case it is not able to follow snap children because snap statically link exec* family calls.
If you run which cmake you are going to see /snap/bin/cmake which is a link to /usr/bin/snap.