So I removed all my index entries that had /path/names or add a $ dollar sign.
I added just one /path/name index entry and it worked. Then I added a index entry for $ORIGIN and the error was for the /path/name index entry I added. So the $ index entry made problem with the next entry. I escaped the \$ORIGIN and that fixed it. I guess my problem was caused by missing an \ escaped $ dollar sign and the LaTeX error message misleading me. I guess something like this oculd be in the FAQ to help others. Jeremy C. Reed