-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake build gets stuck on ProGraML bazel step #566
Comments
cc @sogartar have you run into this before? |
@ChrisCummins, I have noticed that sometimes if CMake need to do a reconfiguration before doing the build in the same execution it may get suck after the configuration. When you run the build again it would do only the build step, which points to that the config step has completed successfully. I have not figured out why this happens. The strange thing here is that in your case it got stuck during configuration, when thirdparty stuff are getting built. Internally ProGraML is build in an proxy/wrapper CMake process. It is possible, that this same thing happens there. The difference there is that the configure command is invoked separately. In this use-case I have not seen CMake get stuck. To debug this it is helpful to call CMake with the
If we are unable to fix this we may resort to putting a generous timeout and retry. |
Thanks for the debugging tips! It is definitely getting stuck during the configuration stage. It's not a particularly large problem for now, and may be a total non-issue if we end up porting ProGraML's build to CMake to achieve #568. Cheers, |
According to this, the frequency of hanging might reduce tenfold by upgrading to bazel 5.1.0: |
Maybe, but that bug doesn't look like its quite the same symptoms. In our case, bazel reports that everything has finished building. Cheers, |
Continuing the discussion from the PR: #697 (comment) Yes, I can easily reproduce the problem on my Linux VM. I am trying to get a more verbose log or debug CMake but without success. I tried:
|
then I tried to look at the CMake generated files in |
In this PR #703, I removed the CompilerGym/external/programl/CMakeLists.txt Lines 31 to 48 in 45fb0a0
|
Ah amazing, well done!! |
🐛 Bug
I have encountered a strange error where the CMake build appears to get "stuck" after the bazel build step of ProGraML. The build appears to hang indefinitely. Cancelling and re-running the CMake build works fine.
To Reproduce
Steps to reproduce the behavior:
Cancel, re-run CMake and the build proceeds as normal:
Environment
Please fill in this checklist:
cmake -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_EXE_LINKER_FLAGS_INIT="-fuse-ld=lld" -DCMAKE_MODULE_LINKER_FLAGS_INIT="-fuse-ld=lld" -DCMAKE_SHARED_LINKER_FLAGS_INIT="-fuse-ld=lld" -DPython3_FIND_VIRTUALENV=FIRST -DCMAKE_BUILD_WITH_INSTALL_RPATH=true -S . -B build
The text was updated successfully, but these errors were encountered: