You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v5.2.1
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
Building with CONFIG_APP_REPRODUCIBLE_BUILD should build the same binary regardless of the machine it's built on, provided the same IDF version is used.
What is the actual behavior?
Full paths are removed from the .bin file, but the .elf file contains the full toolchain path—something like /Users/mia/.espressif/tools/xtensa-esp-elf rather than /ESPRESSIF_TOOLS_DIR/xtensa-esp-elf. Paths for the project file and IDF components are correctly replaced; it's just the xtensa-esp-elf files in the tools dir that keep the full path. This means that the elf files will differ when built on different machines, and so the app.bin file will have a different elf SHA.
Steps to reproduce.
idf.py build
sha256sum build/app.bin build/app.elf
Example sdkconfig: sdkconfig.txt. Built with a clean IDF 5.2.1 on MacOS.
Build or installation Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered:
There might be a workaround for you (I haven't tried it): to install the tools under the same directory in each machine, e.g. a global /opt/espressif/ directory.
Answers checklist.
IDF version.
v5.2.1
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
Building with
CONFIG_APP_REPRODUCIBLE_BUILD
should build the same binary regardless of the machine it's built on, provided the same IDF version is used.What is the actual behavior?
Full paths are removed from the .bin file, but the .elf file contains the full toolchain path—something like
/Users/mia/.espressif/tools/xtensa-esp-elf
rather than/ESPRESSIF_TOOLS_DIR/xtensa-esp-elf
. Paths for the project file and IDF components are correctly replaced; it's just thextensa-esp-elf
files in the tools dir that keep the full path. This means that the elf files will differ when built on different machines, and so the app.bin file will have a different elf SHA.Steps to reproduce.
idf.py build
sha256sum build/app.bin build/app.elf
Example sdkconfig: sdkconfig.txt. Built with a clean IDF 5.2.1 on MacOS.
Build or installation Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: