<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hi Craig,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I understand that you're trying to
setup the toolchain, but I'm wondering it you're doing it the way
ESP-IDF "wants" you to (
<a class="moz-txt-link-freetext" href="https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#get-started-set-up-tools">https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#get-started-set-up-tools</a>
).<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">There is a relationship between
ESP-IDF's version, and the toolchain. And during the install of a
specific ESP-IDF version it will (locally) install the proper
toolchain. (Note: I don't think they deliver a FreeBSD version...
and I don't have an Ubuntu box to test. But at least on my macos
setup it works like this - and the env variable IDF_TOOLS_PATH
points to the toolchain).</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">You can find the proper versions here :
<a class="moz-txt-link-freetext" href="https://github.com/espressif/esp-idf/blob/master/tools/tools.json">https://github.com/espressif/esp-idf/blob/master/tools/tools.json</a>
(change `master` with the ESP-IDF version you need) - Only Linux,
MacOS, Windows.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Maybe you could start with a proper
Linux install with the `<code class="docutils literal notranslate"><span
class="pre">install.sh`</span></code> command, then replicate
the version on FreeBSD.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Oh, and I encourage you to isolate your
multiple builds / versions so that you do not mixup crosstool
version and non-corresponding ESP-IDF version.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Now to strictly answer your question
:-) , here are the version I'm using:</div>
<div class="moz-cite-prefix"><br>
</div>
<blockquote>
<div class="moz-cite-prefix"><font face="monospace">$ switch-idf
3.3<br>
$ xtensa-esp32-elf-cc --version<br>
xtensa-esp32-elf-cc (crosstool-NG
crosstool-ng-1.22.0-97-gc752ad5) 5.2.0<br>
Copyright (C) 2015 Free Software Foundation, Inc.<br>
<br>
$ switch-idf 5.0<br>
$ xtensa-esp32-elf-cc --version<br>
xtensa-esp32-elf-cc (crosstool-NG esp-2022r1) 11.2.0<br>
Copyright (C) 2021 Free Software Foundation, Inc.<br>
<br>
$ switch-idf 5.0.1<br>
$ xtensa-esp32-elf-cc --version<br>
xtensa-esp32-elf-cc (crosstool-NG esp-2022r1) 11.2.0<br>
Copyright (C) 2021 Free Software Foundation, Inc.<br>
<br>
$ switch-idf 5.0.2<br>
$ xtensa-esp32-elf-cc --version<br>
xtensa-esp32-elf-cc (crosstool-NG esp-2022r1) 11.2.0<br>
Copyright (C) 2021 Free Software Foundation, Inc.<br>
<br>
$ switch-idf 5.0.6<br>
$ xtensa-esp32-elf-cc --version<br>
xtensa-esp32-elf-cc (crosstool-NG esp-2022r1) 11.2.0<br>
Copyright (C) 2021 Free Software Foundation, Inc.<br>
<br>
$ switch-idf 5.1.4<br>
$ xtensa-esp32-elf-cc --version<br>
xtensa-esp32-elf-cc (crosstool-NG esp-12.2.0_20230208) 12.2.0<br>
Copyright (C) 2022 Free Software Foundation, Inc.<br>
<br>
$ switch-idf 5.2.2<br>
$ xtensa-esp32-elf-cc --version<br>
xtensa-esp-elf-cc (crosstool-NG esp-13.2.0_20230928) 13.2.0<br>
Copyright (C) 2023 Free Software Foundation, Inc.<br>
<br>
$ switch-idf 5.3.0<br>
$ xtensa-esp32-elf-cc --version<br>
xtensa-esp-elf-cc (crosstool-NG esp-13.2.0_20240530) 13.2.0<br>
Copyright (C) 2023 Free Software Foundation, Inc.<br>
</font></div>
</blockquote>
<div class="moz-cite-prefix">Let me know if it helps.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Regards,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Le 21/09/2024 à 21:34, Craig Leres via
OvmsDev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:d58ae997-b09d-400e-8e1b-b56033ff0401@xse.com">On 9/21/24
02:26, Michael Geddes via OvmsDev wrote:
<br>
<blockquote type="cite">I'm using esp-idf from
<a class="moz-txt-link-freetext" href="https://github.com/espressif/esp-idf.git">https://github.com/espressif/esp-idf.git</a>
<a class="moz-txt-link-rfc2396E" href="https://github.com/espressif/esp-idf.git"><https://github.com/espressif/esp-idf.git></a>
<br>
The previous was some months ago on release/v5.2 a36d8bc742
which ran on an ovms unit not connected to a car.
<br>
<br>
I've just done a compile off v5.3 .. with a series of patches
that I've got from Ludovic and some extras from myself.
<br>
<br>
I've also used the latest mongoose which is annoyingly
problematic as they re-did the whole way it was put together
making it impossible just to apply patches. I've re-implemented
some of the good things they used to have wrt defines and there
are a couple of things that ovms team added that would be
required. One of those is that the 'certificate' is meant to be
a filename and there was a patch to the ovms version that
allowed that filename string to be the certificate itself.
<br>
</blockquote>
<br>
The work on supporting the latest version of esp-idf sounds great.
However I'm working on a earlier step -- the toolchain.
crosstool-ng-1.22.0-97-gc752ad5 is based around gcc 5.2.0, I'd
like to move to esp-13.2.0_20240530 (gcc 13.2.0) or
esp-14.2.0_20240906 (gcc 14.2.0).
<br>
<br>
What does "xtensa-esp32-elf-cc --version" say for you?
<br>
<br>
Craig
<br>
<br>
[On my FreeBSD system]
<br>
ice 10 % xtensa-esp32-elf-cc --version
<br>
xtensa-esp32-elf-cc (crosstool-NG crosstool-ng-1.22.0-97-gc752ad5)
5.2.0
<br>
Copyright (C) 2015 Free Software Foundation, Inc.
<br>
This is free software; see the source for copying conditions.
There is NO
<br>
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
<br>
<br>
[On my ubuntu test box]
<br>
sea 15 % bin/xtensa-esp32-elf-cc --version
<br>
xtensa-esp-elf-cc (crosstool-NG esp-13.2.0_20240530) 13.2.0
<br>
Copyright (C) 2023 Free Software Foundation, Inc.
<br>
This is free software; see the source for copying conditions.
There is NO
<br>
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
<br>
<br>
_______________________________________________
<br>
OvmsDev mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
<br>
<br>
</blockquote>
<p><br>
</p>
<div id="grammalecte_menu_main_button_shadow_host"
style="width: 0px; height: 0px;"></div>
</body>
</html>