Have you tried adding the -MDelpi switch to the command? It sometimes helps. What version of fpc are you using? 2.4.0 perhaps?