[fpc-devel] Error building xtensa rtl

Christo Crause christo.crause at gmail.com
Sun Mar 29 08:38:01 CEST 2020


On Sat, Mar 28, 2020 at 11:04 PM Florian Klämpfl <florian at freepascal.org>
wrote:

> Am 28.03.20 um 21:33 schrieb Christo Crause via fpc-devel:
> > When building the xtensa rtl with
> >
> > make rtl FPC=~/fpc/3.3.1/compiler/ppcrossxtensa CROSSOPT=-Cacall0
> > CPU_TARGET=xtensa OS_TARGET=embedded SUBARCH=esp8266
> > BINUTILSPREFIX=xtensa-lx106-elf-
> >
> > the following errors are returned by as:
> > /home/christo/fpc/3.3.1/rtl/units/xtensa-embedded/system.s: Assembler
> > messages:
> > /home/christo/fpc/3.3.1/rtl/units/xtensa-embedded/system.s:203: Error:
> > unknown opcode or format name 'sext'
> > /home/christo/fpc/3.3.1/rtl/units/xtensa-embedded/system.s:204: Error:
> > unknown opcode or format name 'sext'
> >
> > When building with CROSSOPT=-Cawindowed as complains about other errors:
> > /home/christo/fpc/3.3.1/rtl/units/xtensa-embedded/system.s: Assembler
> > messages:
> > /home/christo/fpc/3.3.1/rtl/units/xtensa-embedded/system.s:11: Error:
> > unknown opcode or format name 'retw'
> >
> > Any tips on how to build the xtensa rtl?
>
> I didn't care about the call0 abi yet. Is it used by the esp8266?
>

Inspecting some C examples I've compiled with PlatformIO for ESP8266 shows
use of callx0 for the non-rtos SDK. My goal was just to test the cross
compiler, but the RTL failed with error 2020031404 (in
tcpuparamanager.init_values) which seems to suggest an ABI must be
specified.  Neither of the options I tried satisfied the assembler however.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20200329/9169e9b4/attachment.html>


More information about the fpc-devel mailing list