On armhf the solution may be to disable optimisations on the first build, when running 2.6.4. See http://lists.freepascal.org/pipermail/fpc-devel/2015-October/036017.html http://lists.freepascal.org/pipermail/fpc-pascal/2015-June/044565.html and the rest of those threads.