Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

cc takes forever to parse dependencies

Help
Ben Hymers
2008-07-06
2013-04-24
  • 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.

     
    • Hello,

      I believe there has been a problem with this for years now, you can find some discussion here : https://sourceforge.net/mailarchive/message.php?msg_id=Pine.LNX.4.51.0308262342040.4702%40helno.schulz.priv
      And the corresponding patch there : https://sourceforge.net/tracker/index.php?func=detail&aid=795683&group_id=36177&atid=416922
      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.

      MAT.

       
    • 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 :)