This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/MSP432P401R: What does gmake[1]: Circular Fuel warning mean?

Part Number: MSP432P401R

Tool/software: TI C/C++ Compiler

Hello! Sometimes, when building the project, I get the following warnings:

<Linking>
gmake[1]: Circular Fuel <- Fuel dependency dropped.
gmake[1]: Circular Fuel <- Fuel dependency dropped.

What do they mean and how can I avoid them?

  • Those messages do not come from the TI compiler.  And I highly doubt they come from gmake.  It is likely some echo statement in the make file issues these messages.  If that is right, then you can search the makefile(s) for the text of the message.

    Thanks and regards,

    -George

  • Cristian Monea said:
    Hello! Sometimes, when building the project, I get the following warnings:

    Are the warnings from a hand edited makefile, or from a makefile automatically generated by CCS?

    From a quick search think the warnings are due to gmake detecting a circular dependency, e.g. see  Why is make complaining about circular dependencies?

  • I've searched the makefiles (in project root/Debug) for the text of the message, but I did not find anything.

  • The warnings are from the makefile automatically generated by CCS. How can I identify the circular dependency and should I correct it? If so, how?
  • Cristian Monea said:
    How can I identify the circular dependency and should I correct it?

    The warning from gmake about the circular dependency on a file name "Fuel" which doesn't have any file extension.

    Based just upon the gmake warning not sure what is causing the circular dependency as without a file extension not sure at what point in the build process the circular dependency is occurring.

    Can you post the project, or failing that the complete build output from the CCS Console?

    Also, what type of file is "Fuel" supposed to be?

  • I cannot post the project. I do not have any file named Fuel. Instead I have a folder named "BQ27441 Fuel Gauge", composed of two files (BQ27441.c and BQ27441.h).

    Also, it is curious that I do not get this warning every time I build the project.

  • Which version of CCS are you using? Even though the warning appears, does the build complete successfully each time?

    The error is coming from gmake and is likely getting triggered by something in the project configuration.  I suspect we may need your project to understand what is triggering a circular dependency. Would you be willing to share the project privately?

    In the meantime, could you attach the CCS generated makefile that generates this warning, and also the full output in the CCS build console (you can save this off a text file and attach it here)?

  • I'm using CCS 7.1.0.00016. The build completes successfully every time. I've attached a simplified version of the project that gives the warning.

    3782.test.zip

    It the warning disappears Clean and then Build the project again.

  • Thank you for providing the test project. This is a warning coming from gmake and seems to be triggered by the directory name "BQ27441 Fuel Gauge". It seems that having spaces as well as having three words in the directory name triggers the warning (for instance, "BQ27441 Fuel" is ok).

    I will check with the experts if this is something we can address in the CCS generated makefile, or if its purely a gmake thing. Until then, I would recommend avoiding spaces in directory/file names, whenever possible, and use underscores instead.