Hi Craig,

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 ( https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#get-started-set-up-tools ).

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).

You can find the proper versions here : https://github.com/espressif/esp-idf/blob/master/tools/tools.json (change `master` with the ESP-IDF version you need) - Only Linux, MacOS, Windows.

Maybe you could start with a proper Linux install with the `install.sh` command, then replicate the version on FreeBSD.

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.

Now to strictly answer your question :-) , here are the version I'm using:

$ switch-idf 3.3
$ xtensa-esp32-elf-cc --version
xtensa-esp32-elf-cc (crosstool-NG crosstool-ng-1.22.0-97-gc752ad5) 5.2.0
Copyright (C) 2015 Free Software Foundation, Inc.

$ switch-idf 5.0
$ xtensa-esp32-elf-cc --version
xtensa-esp32-elf-cc (crosstool-NG esp-2022r1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.

$ switch-idf 5.0.1
$ xtensa-esp32-elf-cc --version
xtensa-esp32-elf-cc (crosstool-NG esp-2022r1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.

$ switch-idf 5.0.2
$ xtensa-esp32-elf-cc --version
xtensa-esp32-elf-cc (crosstool-NG esp-2022r1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.

$ switch-idf 5.0.6
$ xtensa-esp32-elf-cc --version
xtensa-esp32-elf-cc (crosstool-NG esp-2022r1) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.

$ switch-idf 5.1.4
$ xtensa-esp32-elf-cc --version
xtensa-esp32-elf-cc (crosstool-NG esp-12.2.0_20230208) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.

$ switch-idf 5.2.2
$ xtensa-esp32-elf-cc --version
xtensa-esp-elf-cc (crosstool-NG esp-13.2.0_20230928) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.

$ switch-idf 5.3.0
$ xtensa-esp32-elf-cc --version
xtensa-esp-elf-cc (crosstool-NG esp-13.2.0_20240530) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
Let me know if it helps.

Regards,


Le 21/09/2024 à 21:34, Craig Leres via OvmsDev a écrit :
On 9/21/24 02:26, Michael Geddes via OvmsDev wrote:
I'm using esp-idf from https://github.com/espressif/esp-idf.git <https://github.com/espressif/esp-idf.git>
The previous was some months ago on release/v5.2 a36d8bc742 which ran on an ovms unit not connected to a car.

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.

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.

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).

What does "xtensa-esp32-elf-cc --version" say for you?

        Craig

[On my FreeBSD system]
ice 10 % xtensa-esp32-elf-cc --version
xtensa-esp32-elf-cc (crosstool-NG crosstool-ng-1.22.0-97-gc752ad5) 5.2.0
Copyright (C) 2015 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.

[On my ubuntu test box]
sea 15 % bin/xtensa-esp32-elf-cc --version
xtensa-esp-elf-cc (crosstool-NG esp-13.2.0_20240530) 13.2.0
Copyright (C) 2023 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.

_______________________________________________
OvmsDev mailing list
OvmsDev@lists.openvehicles.com
http://lists.openvehicles.com/mailman/listinfo/ovmsdev