[fpc-devel] Xtensa build for ESP32 - Error: unknown opcode or format name 'dpfr'

Christo Crause christo.crause at gmail.com
Sun Feb 15 16:40:15 CET 2026


On Sun, Feb 15, 2026 at 11:45 AM iopen devel via fpc-devel <
fpc-devel at lists.freepascal.org> wrote:

> > chm/units/xtensa-freertos/chmsitemap.s:927: Error: unknown opcode or
> format name 'dpfr'


Some checking shows that xtensa-esp32-elf-as does not recognise the DPFR
instruction.

The DPFR instruction is only used in one location in the compiler:
https://gitlab.com/freepascal.org/fpc/source/-/blob/main/compiler/xtensa/ncpuinl.pas?ref_type=heads#L277
One potential fix would be to define a feature flag for the xtensa
controllers to indicate whether the prefetch functionality should be
skipped.

Please log an issue to ensure this is not forgotten (
https://gitlab.com/freepascal.org/fpc/source/-/issues).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20260215/e1b6f19b/attachment.htm>


More information about the fpc-devel mailing list