msi -D reports errors if template file is not found

Bug #1821075 reported by Ben Franksen
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

This results in non-fatal but ugly and confusing error messages during generation of the dependency files (e.g. xxx.db.d), if a substitution file depends on a template file that is generated. Typical output:

msi: Can't open file 'ErrHistBufString.template'
input: '' at
make[2]: *** Deleting file 'MachineProtectionDebug.MPSCX33GF.db.d'

In this case ErrHistBufString.template is a generated file. The error message only appears after a make clean.

I think msi -D should behave similar to gcc -M -MG. Quoting from the man page,

  -MG In conjunction with an option such as -M requesting dependency generation, -MG assumes
      missing header files are generated files and adds them to the dependency list without
      raising an error. The dependency filename is taken directly from the "#include" directive
      without prepending any path.

Tags: codeathon
Revision history for this message
mdavidsaver (mdavidsaver) wrote :

With -D, non-existent input files are not written to the .d file. This can cause confusing failures in some complex situations where one substitution is pulled into a second substitution.

Changed in epics-base:
status: New → Confirmed
importance: Undecided → Low
tags: added: codeathon
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.