cc takes forever to parse dependencies

Ben Hymers
  • Ben Hymers

    Ben Hymers - 2008-07-06

    Hi, I've just started using cpptasks-1.0b5 and am finding that the cc task takes absolutely forever to parse my files and those of my project's dependencies. I thought it was hanging, but calling ant with -verbose shows that it actually is working, albeit very, very slowly. It starts off quickly, but after a while grinds almost to a halt. I've had it going for an hour (usually takes 2 mins) and it's about 5 mins between logging that it's parsing each file.

    Is this a known bug?

    Compiled on XP SP3, latest JDK, latest cpptasks.

    • Mathieu Champlon


      I believe there has been a problem with this for years now, you can find some discussion here :
      And the corresponding patch there :
      Maybe applying the patch would solve your problem (you might have to apply the changes manually since the files have been modified since), it did for me a couple of years back and I have been applying it when building cpptasks ever since.

      I hope this helps.


    • Ben Hymers

      Ben Hymers - 2008-07-07

      Thanks, that does indeed help. It helped fix the problem, but it also helped convince me not to use Ant to build my C++ projects any more. Having to apply a patch from half a decade ago to make my build times even slightly realistic is frankly ridiculous. It's back to platform-specific build scripts for me.

      Thanks very much Mat :)


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks