Bug 278062 - devel/xtensa-esp32-elf: Update port and toolchain to v2022.01.29
Summary: devel/xtensa-esp32-elf: Update port and toolchain to v2022.01.29
Status: Closed Not Accepted
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Craig Leres
URL:
Keywords:
Depends on: 278061
Blocks:
  Show dependency treegraph
 
Reported: 2024-03-31 09:30 UTC by O. Hartmann
Modified: 2024-09-24 10:23 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (leres)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2024-03-31 09:30:49 UTC
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
Comment 1 O. Hartmann 2024-03-31 09:48:30 UTC
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.
Comment 2 Craig Leres freebsd_committer freebsd_triage 2024-04-03 21:34:45 UTC
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.
Comment 3 O. Hartmann 2024-04-09 19:43:01 UTC
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.
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-09-23 19:45:38 UTC
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(-)
Comment 5 O. Hartmann 2024-09-24 10:23:36 UTC
Thank you very much.
Kind regards,
o.h.