Unhelpful MSI error message and behaviour
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
New
|
Undecided
|
Unassigned |
Bug Description
msi was acting up on a new application I was developing. When I ran make in my support module Db source directory I got:
wenorum@xildev4 488> make
perl -CSD /eda/epics/
mkdir O.Common
make -C O.linux-x86_64 -f ../Makefile TOP=../../.. \
T_A=
make[1]: Entering directory `/home/
/eda/epics/
msi: No template file
Usage: msi [options] [template]
stdin is used if neither template nor substitution file is given
options:
-h Print this help message
-D Output file dependencies, not substitutions
-V Undefined macros generate an error
-g All macros have global scope
-o<FILE> Send output to <FILE>
-I<DIR> Add <DIR> to include file search path
-M<SUBST> Add <SUBST> to (global) macro definitions
-S<FILE> Expand the substitutions in FILE
Inflating database from ../powerSupplyP
/eda/epics/
msi: No template file
Usage: msi [options] [template]
stdin is used if neither template nor substitution file is given
options:
-h Print this help message
-D Output file dependencies, not substitutions
-V Undefined macros generate an error
-g All macros have global scope
-o<FILE> Send output to <FILE>
-I<DIR> Add <DIR> to include file search path
-M<SUBST> Add <SUBST> to (global) macro definitions
-S<FILE> Expand the substitutions in FILE
make[1]: *** [../O.Common/
make[1]: Leaving directory `/home/
make: *** [install.
wenorum@xildev4 489>
But the msi runs seemed to have succeeded:
wenorum@xildev4 489> ls O.linux-x86_64/
Makefile powerSupplyPWMS
Running msi again produced a .db file in the support module <TOP>/db/ directory.
The problem was an extra closing brace in the substitutions file:
wenorum@xildev4 491> cat powerSupplyPWMS
file "perFPGA.template"
{ pattern
{ P, R, PORT }
{"\$(P)
}
file "perBridge.
{ pattern
{ P, R, PORT, C }
{"\$(P)
}
So the error was in my code, but the error message produced by msi was pretty unhelpful. Something like “powerSupplyPWM