Tested with today's 5172 version. Still fails or doesn't finish with -j5 on a 4-core system. But running make -j5 a few times seems to complete the build.
Hmm. I just tried exactly that (on a 4-core box; I usually do -j4) and it built just as it should.
One thing that doesn't usually work, at least after a 'make clean', is the "Done, please run sudo make install" message: it's now common for it to appear much too soon, and so is invisible at the end of 'make'. Could this be making you think that the build failed, or do you get an actual error message?
Yeah, it looks you are right. There are no make errors (except compilation warnings) during make -j4. The message "Done, please run sudo make install." is indeed buried in output from other build jobs and not easily visible.
On my 6-core AMD64 machine I've seen similar build errors with -j6. This was many months ago though. I fixed it with a workaround to -j2 I believe. I also always assumed this was an error with the GNU toolchain, and not Codelite, btw.
Note: I've been using -j6 recently and it's working again. I can only assume it was a GCC issue, or possibly an issue with Ubuntu's version of GCC as I've since switched to Trisquel and am using GCC 4.5.2.