News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

code blocks dragging down the cpu when building makefile project

Started by mingkoonkat, August 28, 2014, 04:49:17 PM

Previous topic - Next topic

mingkoonkat


Since our project has its own build system then I use the makefile project feature of code blocks on Ubuntu.

I observer (using top) that code blocks is using 100% of the cpu during builds and that the compiler runs only intermittently and is allowed somewhere between 4 and 30 % of the CPU. This really slows down the build, and so lacking any clear idea on what to do to fix the situation I just build the code outside the IDE, when I am using code blocks.

stahta01

I suggest disabling all CB Plugins except for the Compiler Plugin and see if the problem has gone away.

If it still has the problem, I also suggest using the tool or toolplus plugin to run the makefile instead of the CB Compiler Plugin.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

mingkoonkat


Thanks for that suggestion.

I just finished disabling all plugins with the one exception being the compiler plugin, and after restarting C::B, I continue to see the same behaviour.

It looks like I don't have either of the tool or toolplus plugins, so perhaps I will need to find a source and install them.

oBFusCATed

Do you have many warnings produced by your build?
If not then the problem is caused by wxExecute/wxProcess calls :(
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]