Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Issue with Dependency Checker

MM613
Beginner
775 Views

Hello:

 

I am having a problem with the dependency checker, which I think may be a bug in it.  It seems as though when there is an "include" file, and the file being included is in a separate directory than the source file that is including it, then the source file is not picked up as being dependent on the included file.

 

This results in a problem when there is a change in the included file, but the source code doesn't get recompiled when doing a basic "build".  This came up in program we use, but is too complicated to include here.  Instead, I have attached a zip file of a very simplified skeleton program that replicates the error.

 

The "included" file is called "Parameter.par".  There is a variable/parameter in there called "MY_YEAR", which is set to 2023.  If you build the program and run it, it correctly prints out the value of "MY_YEAR, which is 2023.  However, if you change the value of "MY_YEAR" to something else, say 2022, and then build the program, not all the correct source files get recompiled, and the program ends up printing out 2023 instead of 2022.  If you then do a "rebuild" (instead of a regular build), then all source files get recompiled, and the program correctly prints out the new value of "MY_YEAR", i.e., 2022.

 

But, of course, the problem is that a rebuild should not be necessary.

 

Can anyone help me verify that this is a bug?  Or perhaps I am just misunderstanding something about the way the dependency checker is supposed to work.

 

Thank you.
Michael

 

0 Kudos
6 Replies
MM613
Beginner
632 Views

Hello:

Would anyone be able to tell me how I can report this as a bug?

 

Thank you.

Michael

0 Kudos
Steve_Lionel
Honored Contributor III
623 Views

Reporting it here should be sufficient. I could reproduce the behavior you noted.

0 Kudos
MM613
Beginner
612 Views

Thank you.  So is it safe then to assume that you have (or will) report it?  How would I find out the status of this report?  Do you post it here?

 

Thank you again for your help.

Michael

0 Kudos
Steve_Lionel
Honored Contributor III
593 Views

No, I wasn't going to report it. There are several Intel support people who follow this forum and they should do so.

0 Kudos
MM613
Beginner
583 Views

Thank you.  Is there an easy way for me to keep up-to-date as to the status of the bug report?

 

Thanks.

Michael

0 Kudos
Devorah_H_Intel
Moderator
559 Views

Thanks for the report. The case is now escalated to engineering.  We will update the status here.

 

If you have a Priority Support then you can submit a service request. 

0 Kudos
Reply