Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

两台电脑ESP-IDF编译出来的程序bin文件不一样。 (IDFGH-14211) #15008

Open
2 of 3 tasks
wangutian opened this issue Dec 10, 2024 · 5 comments
Open
2 of 3 tasks
Labels
Awaiting Response awaiting a response from the author Status: Opened Issue is new

Comments

@wangutian
Copy link

wangutian commented Dec 10, 2024

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • 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.

General issue report

两台电脑上的ESP-IDF版本一样,都是5.2,是用同一个离线下载器安装的。我已经把sdkconfig中编译时的时间戳去掉了,经过对比软件比较,两台电脑编译出来的程序bin文件有两处,分别在bin文件的开头和结尾。我还需要什么操作,才能让两台电脑编译出来的程序bin文件一样?

@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 10, 2024
@github-actions github-actions bot changed the title 两台电脑ESP-IDF编译出来的程序bin文件不一样。 两台电脑ESP-IDF编译出来的程序bin文件不一样。 (IDFGH-14211) Dec 10, 2024
@wangutian
Copy link
Author

使用的是ESP32C3

@dobairoland
Copy link
Collaborator

Hi @wangutian. You can read about this here: https://docs.espressif.com/projects/esp-idf/zh_CN/release-v5.2/esp32/api-guides/reproducible-builds.html Please try to enable reproducible build based on that page.

@wangutian
Copy link
Author

你好@dobairoland

您好。您可以在此处阅读相关内容:https://docs.espressif.com/projects/esp-idf/zh_CN/release-v5.2/esp32/api-guides/reproducible-builds.html 请尝试基于该页面启用可重现的构建。

您好,我试过了在ESP-IDF中将sdkconfig把可重现构建勾选上了,但是两台电脑编译出来的还是不一样,并且每一次都是bin文件的下边这个位置不同:
1

@suda-morris
Copy link
Collaborator

是不是因为两台电脑上的toolchain路径不同? @wangutian 这个问题应该已经在master上被修复了:

bef4cb0

@dobairoland
Copy link
Collaborator

The diff of the BINs doesn't tell us too much. But you could diff the MAP files placed into the same directory with the BINs to see the difference. This could confirm the assumption of suda-morris.

@Alvin1Zhang Alvin1Zhang added the Awaiting Response awaiting a response from the author label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Response awaiting a response from the author Status: Opened Issue is new
Projects
None yet
Development

No branches or pull requests

5 participants