Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lgadina opened this issue May 24, 2024 · 3 comments

Comments

@lgadina
Copy link

lgadina commented May 24, 2024

messages.txt

@ccrause
Copy link
Contributor

ccrause commented May 24, 2024

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
Copy link
Author

lgadina commented May 24, 2024

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
Copy link
Contributor

ccrause commented May 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants