Tomoyuki Sakurai maintains a far more recent variant of this toolchain for Arduino/ESP32 develeopment based on a more recent toolchain (gcc 12 instead of gcc 5 in the recent FreeBSD port). See here: https://github.com/trombik/xtensa-esp32-elf
The toochain builds well in poudriere for CURRENT and 14-STABLE. Some minor changes have to be made according to some issue regarding make (SETENV/SETENVI), I'll check with upstream before posting patches here.
This PR is essentially a duplicate of 251659 from 2020. As previously stated: devel/xtensa-esp32-elf supports a project that can't yet upgrade from gcc 5.2.0 to 8.2.0. I propose a new xtensa-esp32-elf-devel port that tracks the latest esp-2020 tag. Does that work for you? As previously offered, please propose a name for a v2022.01.29 version of a port and I'll work on adding it.
It is not up to me to decide for a name for the modernized port proposed by "Trombik" as referenced. I find it disturbing that a much more modern toolchain is blocked because of your project relying on this port. Maybe the list is the proper place to discuss. Thanks for consideration, anyway.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=771e57d671d9c859005e32f5eba6abc75bee5dd5 commit 771e57d671d9c859005e32f5eba6abc75bee5dd5 Author: Craig Leres <leres@FreeBSD.org> AuthorDate: 2024-09-23 19:44:29 +0000 Commit: Craig Leres <leres@FreeBSD.org> CommitDate: 2024-09-23 19:44:29 +0000 devel/xtensa-esp32-elf: Update to 13.2.0_20240530, rename to xtensa-esp-elf This updates the toolchain to gcc 13.2.0 as used by versions 5.2.2, 5.3.0, and 5.3.1 of the Espressif esp-idf. The crosstool.config for xtensa-esp32-esp is invalid for this version (and is removed in esp-14.2.0_20240906 via 6269489 -- "samples: remove obsolete xtensa-esp32XX-elf targets") so switch to xtensa-esp-esp and rename port to match. This update removes the final dependency on gcc10. PR: 278061 278062 MOVED | 1 + devel/xtensa-esp-elf/Makefile (new) | 116 ++ devel/xtensa-esp-elf/distinfo (new) | 21 + devel/xtensa-esp-elf/files/crosstool.config (new) | 57 + devel/xtensa-esp-elf/pkg-descr (new) | 4 + devel/xtensa-esp-elf/pkg-plist (new) | 2111 ++++++++++++++++++++ devel/xtensa-esp32-elf/Makefile (gone) | 108 - devel/xtensa-esp32-elf/distinfo (gone) | 23 - .../files/0001-gdb-7.12.1.patch (gone) | 46 - devel/xtensa-esp32-elf/pkg-descr (gone) | 4 - devel/xtensa-esp32-elf/pkg-plist (gone) | 1555 -------------- 11 files changed, 2310 insertions(+), 1736 deletions(-)
Thank you very much. Kind regards, o.h.