Parallel build make not working as expected [message #1859427] |
Wed, 07 June 2023 07:27  |
Eclipse User |
|
|
|
Hi
I am currently using Eclipse CDT version 2023-03 on Windows, with several "C Managed Build" projects.
At the moment, in the C/C++ Build > Behavior tab I have "Enable parallel build" checked, with "Use optimal jobs" selected. But the actual build operation is sequential and a complete build takes over one minute. If I select the "unlimited jobs" option the parallel build is done in a few seconds.
I have no issue on Linux platform, nor on an older eclipse version, CDT 8.3.0, where some of the projects were created.
I may migrate all the projects to "unlimited jobs" setting, but I'm hoping there is a most efficient way to solve this issue.
|
|
|
|
[SOLVED] Re: Parallel build make not working as expected [message #1859505 is a reply to message #1859501] |
Mon, 12 June 2023 16:06  |
Eclipse User |
|
|
|
Hi Kabiru
Unfortunately I read the forum alert regarding the migration on Github after posting here.
Thinking the message would be discarded, I posted on Github too, my fault.
Anyways, the discussion took place on Github Discussions.
Briefly, the solution was to update make from version 3.81, which was provided by the toolchain environment, to a newer version.
Version 4.4.90 works well, I have to try with stable 4.4.1.
The different behavior between older and newer CDT is due to how makefiles are generated. With CDT 2023-03 there is a nested make call. make v3.81 can't inherit -j option between nested calls while newer one can.
CDT 8.3.0 works well because no nested calls are involved in generated makefiles.
Thank you all for the support
|
|
|
Powered by
FUDForum. Page generated in 0.03114 seconds