LongDirtyAnimAlf / fpcupdeluxe

A GUI based installer for FPC and Lazarus
490 stars 89 forks source link

v2.4.0c x86_64 windows xtensa compiler error xtensa-esp32-elf-ld.exe: unrecognized option '--abi-windowed' #683

Open lgadina opened 4 months ago

lgadina commented 4 months ago

messages.txt

ccrause commented 4 months ago

Is the xtensa bintools actually installed? I don't think a Windows build of the libraries and tools for esp-idf exist (in the espidf4fpc repository which is used by fpcupdeluxe to source the required tools and libraries), notice lack of Windows archives here: https://github.com/michael-ring/espsdk4fpc/releases

What output do you get when executing the following: F:\Work2\fpc-esp32\cross\bin\xtensa-freertos\bin\xtensa-esp32-elf-ld.exe --version

lgadina commented 4 months ago

Xtensa bintools installed by fpcdeluxe automatically

GNU ld (crosstool-NG esp-2019r2) 2.31.1 Copyright (C) 2018 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty.

ccrause commented 4 months ago

OK, then fpcupdeluxe now has a workaround for Windows. Good to know.

GNU ld (crosstool-NG esp-2019r2) 2.31.1

This is a very old version, I would rather expect a toolchain from at least 2021.

Not sure how fpcupdeluxe decides which toolchain to install for Windows unfortunately...

Edit: It seems that support for --abi-windowed was only introduced in binutils version 2.35, which corresponds to Espressif's version starting from esp-2021r1-5-8.4.0.