All the "primary energy" necessary to drive the process comes from the energy contained in the coal itself.
For vehicular usage, I actually prefer methanol, which is far more flexible than hydrogen (i.e. it can be used in fuel cells AND be burned in existing internal-combustion engines). The storage problems are also much reduced. Methanol can also be produced from that carbon-monoxide/hydrogen gas that is coal syngas.
So you're not using an external source (primary energy) to drive the gasification process? Its just combusting the coal and capturing the products of that? If so, could one retrofit existing coal burners and use them to produce these products? Or is a slower process?
Yep, that's called "energy conversion inefficiencies".