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 ?
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.