Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Oct 2024 19:21:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 282206] devel/xtensa-esp-elf: [ESP-IDF] Tool doesn't match supported version from list
Message-ID:  <bug-282206-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282206

            Bug ID: 282206
           Summary: devel/xtensa-esp-elf: [ESP-IDF] Tool doesn't match
                    supported version from list
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: leres@freebsd.org
          Reporter: ohartmann@walstatt.org
          Assignee: leres@freebsd.org
             Flags: maintainer-feedback?(leres@freebsd.org)

Using the most recent port and toolchain devel/xtensa-esp-elf with ESP-IDF
v5.3, gives me an error shown below.

When checking the binarie's version, i.e.

[...]
[esp-idf]: /usr/local/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc --version
xtensa-esp-elf-gcc (crosstool-NG UNKNOWN) 13.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[...]

The error mentioned above from the IDF is:

[...]

CMake Error at
/pool/home/ohartmann/Projects/esp-idf/tools/cmake/tool_version_check.cmake:=
36
(message):


  Tool doesn't match supported version from list ['esp-13.2.0_20240530']:
  /usr/local/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc

  Please try to run 'idf.py fullclean' to solve it.

Call Stack (most recent call first):
=20
/pool/home/ohartmann/Projects/esp-idf/components/esp_common/project_include=
.cmake:10
(check_expected_tool_version)
  /pool/home/ohartmann/Projects/esp-idf/tools/cmake/build.cmake:437 (includ=
e)
  /pool/home/ohartmann/Projects/esp-idf/tools/cmake/build.cmake:669
(__build_process_project_includes)
  /home/ohartmann/Projects/esp-idf/tools/cmake/project.cmake:710
(idf_build_process)
  CMakeLists.txt:8 (project)


-- Configuring incomplete, errors occurred!
[...]


I'm able to avoid this error by patching

${WRKSRC}/maintainer/git-version-gen

via substituting
[...]
--- maintainer/git-version-gen.orig 2024-09-06 13:44:29 UTC
+++ maintainer/git-version-gen
@@ -216,7 +216,7 @@ fi
 fi

 # Omit the trailing newline, so that m4_esyscmd can use the result directl=
y.
-printf %s "$v"
+printf %s "%%ESPRESSIF_VER%%"

 # Local variables:
 # eval: (add-hook 'before-save-hook 'time-stamp)
[...]

After that, the binary tagging seems right:

[...]
[esp-idf]: /usr/local/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc --version
xtensa-esp-elf-gcc (crosstool-NG esp-13.2.0_20240530) 13.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[...]

This nails down the toolchain by the ESP-IDF version used, I suppose. I hav=
e no
idea whether this issue can be mitigated by a knob/switch from within
cmake/ESP-IDF.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-282206-7788>