Hello,
Years ago I came across an issue where I'd try to build the main library and it deadlocks (spinning icon and cpu by codeblocks at 100%). I'd have to open codeblocks, open the project, then wait a while, then build and it would work, if I did it too fast it could deadlock. So at some point that cleared up, and updated versions, and now even updated to 17.12 for debugging (a lot of times the stack frame goes away, still does that too, just not as much, much more stable). Anyway, all of a sudden that deadlock is back. I think I know what it's related to. If I do it too fast and the drop downs (code completion) at the top that have to do with showing the classes and items. If I wait until after that populates, there never seems to be a lock, if I start before then, unless <none> would show up, it dead locks at the point where it would populate it (via about the same timing) - it stays blank. I have to end the process, then go back in and wait, and it shows up with some classes/structures in the list, then compile and it works.
Hope that helps!!